| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.PrimaryKeyMetaData
PrimaryKeyMetaData | public class PrimaryKeyMetaData extends MetaData implements ColumnMetaDataContainer(Code) | | Representation of a primary key constraint.
Can also be used for specifying surrogate keys, but JPOX doesn't support this.
since: 1.1 version: $Revision$ |
columnMetaData | protected ColumnMetaData[] columnMetaData(Code) | | MetaData for columns to be used in PK.
|
columnName | protected String columnName(Code) | | Column name of PK.
|
columns | protected List columns(Code) | | the columns elements to be included in the index. Suitable to be empty
when this metadata is contained within a field, element, key, value, or join elements
|
PrimaryKeyMetaData | public PrimaryKeyMetaData(MetaData parent, String name, String columnName)(Code) | | Constructor.
Parameters: parent - The parent metadata object Parameters: name - Name of the PK constraint Parameters: columnName - Name of the column (optional) |
addColumn | public void addColumn(ColumnMetaData colmd)(Code) | | Add a new ColumnMetaData element
Parameters: colmd - The ColumnMetaData to add |
getColumnMetaData | final public ColumnMetaData[] getColumnMetaData()(Code) | | Accessor for columnMetaData
Returns the columnMetaData. |
getName | public String getName()(Code) | | Accessor for PK constraint name.
Returns the constraint name |
initialise | public void initialise()(Code) | | Initialisation method. This should be called AFTER using the populate
method if you are going to use populate. It creates the internal
convenience arrays etc needed for normal operation.
|
setName | public void setName(String name)(Code) | | Mutator for the name of the PK constraint.
Parameters: name - The name to use |
toString | public String toString(String prefix, String indent)(Code) | | Returns a string representation of the object using a prefix
Parameters: prefix - prefix string Parameters: indent - indent string a string representation of the object. |
|
|