public class ConstraintMetaData extends MetaData
Modifier and Type | Field and Description |
---|---|
protected List<String> |
columnNames
The column names for this constraint.
|
protected List<String> |
memberNames
The member names for this constraint.
|
protected String |
name
the constraint name
|
protected String |
table
the constraint table name.
|
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 |
---|
ConstraintMetaData()
Default constructor.
|
ConstraintMetaData(ConstraintMetaData acmd)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(String columnName)
Add a new column that is part of the constraint.
|
void |
addMember(String memberName)
Add a new member that is part of this constraint.
|
String[] |
getColumnNames() |
String[] |
getMemberNames() |
String |
getName() |
int |
getNumberOfColumns() |
int |
getNumberOfMembers() |
String |
getTable() |
void |
setName(String name) |
void |
setTable(String table) |
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected String name
protected String table
public ConstraintMetaData()
public ConstraintMetaData(ConstraintMetaData acmd)
acmd
- Metadata to copypublic String getName()
public void setName(String name)
public String getTable()
public void setTable(String table)
public void addMember(String memberName)
memberName
- member name for the field/propertypublic final String[] getMemberNames()
public int getNumberOfMembers()
public void addColumn(String columnName)
columnName
- Name for the columnpublic final String[] getColumnNames()
public int getNumberOfColumns()
Copyright © 2019. All rights reserved.