public class ForeignKey extends KeyRecord
KeyRecord.TypeAbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_JOIN |
NAME_DELIM_CHAR, RELATIONAL_URI| Constructor and Description |
|---|
ForeignKey() |
| Modifier and Type | Method and Description |
|---|---|
KeyRecord |
getPrimaryKey()
Deprecated.
|
List<String> |
getReferenceColumns() |
KeyRecord |
getReferenceKey() |
String |
getReferenceTableName()
WARNING prior to validation this method will return a potentially fully-qualified name
after resolving it will return an unqualified name
|
String |
getUniqueKeyID() |
void |
setPrimaryKey(KeyRecord primaryKey)
Deprecated.
|
void |
setReferenceColumns(List<String> referenceColumns) |
void |
setReferenceKey(KeyRecord primaryKey)
Note: does not need to be directly called.
|
void |
setReferenceTableName(String tableName) |
void |
setUniqueKeyID(String keyID) |
addColumn, getColumnByName, getColumns, getParent, removeColumn, setColumns, setParentequals, getAnnotation, getCanonicalName, getFullName, getIncomingObjects, getName, getNameInSource, getProperties, getProperty, getSourceName, getSQLString, getSQLString, getUUID, hashCode, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID, toStringpublic static final String ALLOW_JOIN
public String getUniqueKeyID()
public void setUniqueKeyID(String keyID)
object - public KeyRecord getPrimaryKey()
getReferenceKey()public KeyRecord getReferenceKey()
public void setReferenceKey(KeyRecord primaryKey)
setReferenceColumns(List) and setReferenceTableName(String)
are used.primaryKey, - the primary key or unique key referenced by this foreign keypublic void setPrimaryKey(KeyRecord primaryKey)
primaryKey, - the primary key or unique key referenced by this foreign keysetReferenceKey(KeyRecord)public String getReferenceTableName()
public void setReferenceTableName(String tableName)
Copyright © 2018 JBoss by Red Hat. All rights reserved.