public class MutableRelationship extends AbstractRelationship implements Serializable, Relationship
createRelationship method.| Modifier and Type | Method and Description |
|---|---|
static Relationship |
createRelationship(Column[] primaryColumns,
Column[] foreignColumns)
Factory method to create relations between two tables by specifying which
columns from the tables that enforce the relationship.
|
static Relationship |
createRelationship(Column primaryColumn,
Column foreignColumn) |
protected void |
finalize() |
Column[] |
getForeignColumns()
Gets the foreign key columns of this relationship.
|
Column[] |
getPrimaryColumns()
Gets the primary key columns of this relationship.
|
void |
remove() |
checkSameTable, classEquals, compareTo, containsColumnPair, decorateIdentity, getForeignTable, getPrimaryTable, toStringequals, hashCodecontainsColumnPair, getForeignTable, getPrimaryTablecompareTopublic static Relationship createRelationship(Column[] primaryColumns, Column[] foreignColumns)
primaryColumns - the columns from the primary key tableforeignColumns - the columns from the foreign key tablepublic void remove()
protected void finalize()
throws Throwable
public static Relationship createRelationship(Column primaryColumn, Column foreignColumn)
public Column[] getPrimaryColumns()
RelationshipgetPrimaryColumns in interface Relationshippublic Column[] getForeignColumns()
RelationshipgetForeignColumns in interface RelationshipCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.