public class SetColumnTypeToModel extends AbstractToModelToken
MergerToken
that modifies one original DbAttribute
to match another
new DbAttribute
s 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, toString
public SetColumnTypeToModel(DbEntity entity, DbAttribute columnOriginal, DbAttribute columnNew)
public MergerToken createReverse(MergerFactory factory)
MergerToken
Not all tokens are reversible.
public void execute(MergerContext mergerContext)
public String getTokenName()
public String getTokenValue()
getTokenValue
in interface MergerToken
public DbAttribute getColumnOriginal()
public DbAttribute getColumnNew()
public DbEntity getEntity()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.