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(MergerTokenFactory factory)
Create a complimentary token with the reverse direction.
|
void |
execute(MergerContext mergerContext)
Executes synchronization operation.
|
DbEntity |
getEntity() |
Collection<ObjEntity> |
getMappedObjEntities() |
String |
getTokenValue() |
getDirection, remove, removecompareTo, getSortingWeight, getTokenName, isEmpty, toStringpublic SetColumnTypeToModel(DbEntity entity, DbAttribute columnOriginal, DbAttribute columnNew)
public MergerToken createReverse(MergerTokenFactory factory)
MergerTokenNot all tokens are reversible.
public void execute(MergerContext mergerContext)
MergerTokenmergerContext - merge operation context.public String getTokenValue()
getTokenValue in interface MergerTokenpublic DbEntity getEntity()
public Collection<ObjEntity> getMappedObjEntities()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.