public class DropRelationshipToDb extends AbstractToDbToken
Constructor and Description |
---|
DropRelationshipToDb(DbEntity entity,
DbRelationship rel) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MergerToken o) |
MergerToken |
createReverse(MergerFactory factory)
Create a token with the reverse direction.
|
List<String> |
createSql(DbAdapter adapter) |
DbEntity |
getEntity() |
String |
getFkName() |
protected QuotingStrategy |
getQuotingStrategy(DbAdapter adapter) |
DbRelationship |
getRelationship() |
String |
getTokenName() |
String |
getTokenValue() |
execute, executeSql, getDirection, toString
public DropRelationshipToDb(DbEntity entity, DbRelationship rel)
public String getFkName()
public List<String> createSql(DbAdapter adapter)
createSql
in class AbstractToDbToken
public MergerToken createReverse(MergerFactory factory)
MergerToken
Not all tokens are reversible.
public String getTokenName()
public String getTokenValue()
getTokenValue
in interface MergerToken
public DbRelationship getRelationship()
public DbEntity getEntity()
protected QuotingStrategy getQuotingStrategy(DbAdapter adapter)
public int compareTo(MergerToken o)
Copyright © 2001–2018 Apache Cayenne. All rights reserved.