addReferencedColumns
public void addReferencedColumns(Iterator referencedColumnsIterator)
alignColumns
public void alignColumns()
Validates that columnspan of the foreignkey and the primarykey is the same.
Furthermore it aligns the length of the underlying tables columns.
getReferencedColumns
public List getReferencedColumns()
Returns the referenced columns if the foreignkey does not refer to the primary key
getReferencedEntityName
public String getReferencedEntityName()
getReferencedTable
public Table getReferencedTable()
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
isPhysicalConstraint
public boolean isPhysicalConstraint()
isReferenceToPrimaryKey
public boolean isReferenceToPrimaryKey()
Does this foreignkey reference the primary key of the reference table
setCascadeDeleteEnabled
public void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
setReferencedEntityName
public void setReferencedEntityName(String referencedEntityName)
sqlConstraintString
public String sqlConstraintString(Dialect dialect,
String constraintName,
String defaultCatalog,
String defaultSchema)
- sqlConstraintString in interface Constraint