public class ForeignKeyMetaData extends ConstraintMetaData
Modifier and Type | Field and Description |
---|---|
protected List<ColumnMetaData> |
columns
The columns for this foreign key.
|
protected boolean |
deferred
The deferred attribute specifies whether the foreign key constraint is
defined to be checked only at commit time.
|
protected ForeignKeyAction |
deleteAction
Foreign keys represent a consistency constraint in the database that must
be maintained.
|
protected String |
fkDefinition
Alternative method of specifying FK where we just supply the string defining it (JPA crap).
|
protected boolean |
fkDefinitionApplies |
protected boolean |
unique
The unique attribute specifies whether the foreign key constraint is
defined to be a unique constraint as well.
|
protected ForeignKeyAction |
updateAction
Foreign keys represent a consistency constraint in the database that must
be maintained.
|
columnNames, memberNames, name, table
EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_DISABLE, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_DETACH, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_CASCADE_UPDATE, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_ENUM_GETTER_BY_VALUE, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_FETCH_FK_ONLY, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_KEY_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_RELATION_DISCRIM_COLUMN, EXTENSION_MEMBER_RELATION_DISCRIM_PK, EXTENSION_MEMBER_RELATION_DISCRIM_VALUE, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
ForeignKeyMetaData() |
ForeignKeyMetaData(ForeignKeyMetaData fkmd)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ColumnMetaData colmd) |
ColumnMetaData[] |
getColumnMetaData() |
ForeignKeyAction |
getDeleteAction() |
String |
getFkDefinition() |
boolean |
getFkDefinitionApplies() |
ForeignKeyAction |
getUpdateAction() |
boolean |
isDeferred() |
boolean |
isUnique() |
ColumnMetaData |
newColumnMetaData()
Method to create a new column, add it, and return it.
|
ForeignKeyMetaData |
setDeferred(boolean deferred) |
ForeignKeyMetaData |
setDeferred(String deferred) |
void |
setDeleteAction(ForeignKeyAction deleteAction) |
void |
setFkDefinition(String def) |
void |
setFkDefinitionApplies(boolean flag) |
ForeignKeyMetaData |
setUnique(boolean unique) |
ForeignKeyMetaData |
setUnique(String unique) |
ForeignKeyMetaData |
setUpdateAction(ForeignKeyAction updateAction) |
addColumn, addMember, getColumnNames, getMemberNames, getName, getNumberOfColumns, getNumberOfMembers, getTable, setName, setTable
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected List<ColumnMetaData> columns
protected boolean unique
protected boolean deferred
protected ForeignKeyAction deleteAction
protected ForeignKeyAction updateAction
protected String fkDefinition
protected boolean fkDefinitionApplies
public ForeignKeyMetaData()
public ForeignKeyMetaData(ForeignKeyMetaData fkmd)
fkmd
- The metadata to copypublic void addColumn(ColumnMetaData colmd)
public ColumnMetaData newColumnMetaData()
public final ColumnMetaData[] getColumnMetaData()
public final boolean isDeferred()
public ForeignKeyMetaData setDeferred(boolean deferred)
public ForeignKeyMetaData setDeferred(String deferred)
public final ForeignKeyAction getDeleteAction()
public void setDeleteAction(ForeignKeyAction deleteAction)
public final boolean isUnique()
public ForeignKeyMetaData setUnique(boolean unique)
public ForeignKeyMetaData setUnique(String unique)
public final ForeignKeyAction getUpdateAction()
public ForeignKeyMetaData setUpdateAction(ForeignKeyAction updateAction)
public void setFkDefinition(String def)
public String getFkDefinition()
public void setFkDefinitionApplies(boolean flag)
public boolean getFkDefinitionApplies()
Copyright © 2019. All rights reserved.