org.apache.cayenne.merge
Class DropRelationshipToDb

java.lang.Object
  extended by org.apache.cayenne.merge.AbstractToDbToken
      extended by org.apache.cayenne.merge.DropRelationshipToDb
All Implemented Interfaces:
Comparable<MergerToken>, MergerToken

public class DropRelationshipToDb
extends AbstractToDbToken


Constructor Summary
DropRelationshipToDb(DbEntity entity, DbRelationship rel)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.cayenne.merge.AbstractToDbToken
execute, executeSql, getDirection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DropRelationshipToDb

public DropRelationshipToDb(DbEntity entity,
                            DbRelationship rel)
Method Detail

getFkName

public String getFkName()

createSql

public List<String> createSql(DbAdapter adapter)
Specified by:
createSql in class AbstractToDbToken

createReverse

public MergerToken createReverse(MergerFactory factory)
Description copied from interface: MergerToken
Create a token with the reverse direction. AddColumn in one direction becomes DropColumn in the other direction.

Not all tokens are reversible.


getTokenName

public String getTokenName()

getTokenValue

public String getTokenValue()
Specified by:
getTokenValue in interface MergerToken

getRelationship

public DbRelationship getRelationship()

getEntity

public DbEntity getEntity()

getQuotingStrategy

protected QuotingStrategy getQuotingStrategy(DbAdapter adapter)

compareTo

public int compareTo(MergerToken o)


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.