public class SetPrimaryKeyToModel extends AbstractToModelToken
| Constructor and Description |
|---|
SetPrimaryKeyToModel(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
| 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 SetPrimaryKeyToModel(DbEntity entity, Collection<DbAttribute> primaryKeyOriginal, Collection<DbAttribute> primaryKeyNew, String detectedPrimaryKeyName)
public MergerToken createReverse(MergerTokenFactory factory)
MergerTokenNot all tokens are reversible.
public void execute(MergerContext mergerContext)
MergerTokenmergerContext - merge operation context.public DbEntity getEntity()
public Collection<ObjEntity> getMappedObjEntities()
public String getTokenValue()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.