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
|
MergerToken |
createReverse(MergerTokenFactory factory)
Create a complimentary token with the reverse direction.
|
List<String> |
createSql(DbAdapter adapter) |
DbAttribute |
getColumnNew() |
DbAttribute |
getColumnOriginal() |
DbEntity |
getEntity() |
String |
getTokenValue() |
execute, getDirectioncompareTo, getSortingWeight, getTokenName, isEmpty, toStringpublic SetColumnTypeToDb(DbEntity entity, DbAttribute columnOriginal, DbAttribute columnNew)
protected void appendPrefix(StringBuffer sqlBuffer, QuotingStrategy context)
context - public List<String> createSql(DbAdapter adapter)
createSql in class AbstractToDbTokenpublic String getTokenValue()
getTokenValue in interface MergerTokenpublic MergerToken createReverse(MergerTokenFactory factory)
MergerTokenNot all tokens are reversible.
public DbAttribute getColumnNew()
public DbAttribute getColumnOriginal()
public DbEntity getEntity()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.