public class DBForeignKeyConstraint extends DBConstraint implements MultiColumnObject
doc, name, objectType, owner| Constructor and Description |
|---|
DBForeignKeyConstraint(String name,
boolean nameDeterministic,
DBTable owner,
String[] fkColumnNames,
DBTable refereeTable,
String[] refereeColumnNames) |
DBForeignKeyConstraint(String name,
boolean nameDeterministic,
DBTable owner,
String fkColumnName,
DBTable refereeTable,
String refereeColumnName) |
| Modifier and Type | Method and Description |
|---|---|
String |
columnReferencedBy(String fkColumnName) |
String |
columnReferencedBy(String fkColumnName,
boolean required) |
boolean |
equals(Object other) |
String[] |
getColumnNames()
Returns the columns which constitute this constraint
|
FKChangeRule |
getDeleteRule() |
String[] |
getForeignKeyColumnNames() |
String[] |
getRefereeColumnNames() |
DBTable |
getRefereeTable() |
FKChangeRule |
getUpdateRule() |
int |
hashCode() |
boolean |
isIdentical(DBObject other)
tells if an object has the same definition as another one.
|
void |
setDeleteRule(FKChangeRule deleteRule) |
void |
setUpdateRule(FKChangeRule updateRule) |
String |
toString() |
getTable, isNameDeterministicsetTablegetDoc, getName, getObjectType, getOwner, setDoc, setName, setOwnerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDoc, getObjectType, getOwner, setOwnerpublic DBForeignKeyConstraint(String name, boolean nameDeterministic, DBTable owner, String fkColumnName, DBTable refereeTable, String refereeColumnName)
public String[] getForeignKeyColumnNames()
public DBTable getRefereeTable()
public String[] getColumnNames()
DBConstraintgetColumnNames in interface MultiColumnObjectgetColumnNames in class DBConstraintpublic String[] getRefereeColumnNames()
public boolean isIdentical(DBObject other)
DBObjectisIdentical in interface DBObjectpublic FKChangeRule getUpdateRule()
public void setUpdateRule(FKChangeRule updateRule)
public FKChangeRule getDeleteRule()
public void setDeleteRule(FKChangeRule deleteRule)
public boolean equals(Object other)
equals in class DBConstraintpublic int hashCode()
hashCode in class DBConstraintpublic String toString()
toString in class DBConstraintCopyright © 2006–2014 Volker Bergmann. All rights reserved.