public class SetColumnTypeToModel extends AbstractToModelToken
MergerToken that modifies one original DbAttribute to match another
new DbAttributes type, maxLength and precision. The name and mandatory fields
are not modified by this token.| Constructor and Description |
|---|
SetColumnTypeToModel(DbEntity entity,
DbAttribute columnOriginal,
DbAttribute columnNew) |
| Modifier and Type | Method and Description |
|---|---|
MergerToken |
createReverse(MergerFactory factory)
Create a token with the reverse direction.
|
void |
execute(MergerContext mergerContext) |
DbAttribute |
getColumnNew() |
DbAttribute |
getColumnOriginal() |
DbEntity |
getEntity() |
String |
getTokenName() |
String |
getTokenValue() |
getDirection, objEntitiesMappedToDbEntity, remove, remove, synchronizeWithObjEntity, toStringpublic SetColumnTypeToModel(DbEntity entity, DbAttribute columnOriginal, DbAttribute columnNew)
public MergerToken createReverse(MergerFactory factory)
MergerTokenNot all tokens are reversible.
public void execute(MergerContext mergerContext)
public String getTokenName()
public String getTokenValue()
getTokenValue in interface MergerTokenpublic DbAttribute getColumnOriginal()
public DbAttribute getColumnNew()
public DbEntity getEntity()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.