public class MutableRelationship extends AbstractRelationship implements Serializable, Relationship
createRelationship
method.Modifier and Type | Method and Description |
---|---|
static Relationship |
createRelationship(Column primaryColumn,
Column foreignColumn) |
static Relationship |
createRelationship(List<Column> primaryColumns,
List<Column> foreignColumns)
Factory method to create relations between two tables by specifying which
columns from the tables that enforce the relationship.
|
List<Column> |
getForeignColumns()
Gets the foreign key columns of this relationship.
|
List<Column> |
getPrimaryColumns()
Gets the primary key columns of this relationship.
|
void |
remove() |
checkSameTable, classEquals, compareTo, containsColumnPair, decorateIdentity, getForeignTable, getPrimaryTable, toString
equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
containsColumnPair, getForeignTable, getPrimaryTable
compareTo
public static Relationship createRelationship(List<Column> primaryColumns, List<Column> foreignColumns)
primaryColumns
- the columns from the primary key tableforeignColumns
- the columns from the foreign key tablepublic void remove()
public static Relationship createRelationship(Column primaryColumn, Column foreignColumn)
public List<Column> getPrimaryColumns()
Relationship
getPrimaryColumns
in interface Relationship
public List<Column> getForeignColumns()
Relationship
getForeignColumns
in interface Relationship
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.