public class SetPrimaryKeyToDb extends AbstractToDbToken
| Constructor and Description |
|---|
SetPrimaryKeyToDb(DbEntity entity,
Collection<DbAttribute> primaryKeyOriginal,
Collection<DbAttribute> primaryKeyNew,
String detectedPrimaryKeyName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendAddNewPrimaryKeySQL(DbAdapter adapter,
List<String> sqls) |
protected void |
appendDropOriginalPrimaryKeySQL(DbAdapter adapter,
List<String> sqls) |
MergerToken |
createReverse(MergerTokenFactory factory)
Create a complimentary token with the reverse direction.
|
List<String> |
createSql(DbAdapter adapter) |
DbEntity |
getEntity() |
String |
getTokenValue() |
execute, getDirectioncompareTo, getSortingWeight, getTokenName, isEmpty, toStringpublic SetPrimaryKeyToDb(DbEntity entity, Collection<DbAttribute> primaryKeyOriginal, Collection<DbAttribute> primaryKeyNew, String detectedPrimaryKeyName)
public List<String> createSql(DbAdapter adapter)
createSql in class AbstractToDbTokenprotected void appendDropOriginalPrimaryKeySQL(DbAdapter adapter, List<String> sqls)
protected void appendAddNewPrimaryKeySQL(DbAdapter adapter, List<String> sqls)
public MergerToken createReverse(MergerTokenFactory factory)
MergerTokenNot all tokens are reversible.
public DbEntity getEntity()
public String getTokenValue()
Copyright © 2001–2019 Apache Cayenne. All rights reserved.