public class SetColumnTypeToDb extends AbstractToDbToken
MergerToken
to use to set type, length and precision.Constructor and Description |
---|
SetColumnTypeToDb(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendPrefix(StringBuffer sqlBuffer,
QuotingStrategy context)
append the part of the token before the actual column data type
|
int |
compareTo(MergerToken o) |
MergerToken |
createReverse(MergerFactory factory)
Create a token with the reverse direction.
|
List<String> |
createSql(DbAdapter adapter) |
DbAttribute |
getColumnNew() |
DbAttribute |
getColumnOriginal() |
DbEntity |
getEntity() |
protected QuotingStrategy |
getQuotingStrategy(DbAdapter adapter) |
String |
getTokenName() |
String |
getTokenValue() |
execute, executeSql, getDirection, toString
public SetColumnTypeToDb(DbEntity entity, DbAttribute columnOriginal, DbAttribute columnNew)
protected void appendPrefix(StringBuffer sqlBuffer, QuotingStrategy context)
context
- public List<String> createSql(DbAdapter adapter)
createSql
in class AbstractToDbToken
public String getTokenName()
public String getTokenValue()
getTokenValue
in interface MergerToken
public MergerToken createReverse(MergerFactory factory)
MergerToken
Not all tokens are reversible.
public DbAttribute getColumnOriginal()
public DbAttribute getColumnNew()
public DbEntity getEntity()
protected QuotingStrategy getQuotingStrategy(DbAdapter adapter)
public int compareTo(MergerToken o)
Copyright © 2001–2014 Apache Cayenne. All rights reserved.