public class ForeignKey extends KeyRecord
KeyRecord.Type
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_JOIN |
NAME_DELIM_CHAR, RELATIONAL_PREFIX
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, setParent
equals, getAnnotation, getCanonicalName, getFullName, getIdentifier, getIncomingObjects, getName, getNameInSource, getProperties, getProperty, getProperty, getSourceName, getSQLString, getSQLString, getUUID, hashCode, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID, toString
public static final String ALLOW_JOIN
public String getUniqueKeyID()
public void setUniqueKeyID(String keyID)
keyID
- 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 © 2020. All rights reserved.