| |
|
| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.AbstractConstraintMetaData
All known Subclasses: org.jpox.metadata.UniqueMetaData, org.jpox.metadata.ForeignKeyMetaData, org.jpox.metadata.IndexMetaData,
AbstractConstraintMetaData | public class AbstractConstraintMetaData extends MetaData (Code) | | Abstract representation of an ORM constraint.
version: $Revision: 1.6 $ |
columns | protected List columns(Code) | | The columns for this constraint.
|
members | protected List members(Code) | | The fields/properties for this constraint.
|
table | protected String table(Code) | | the constraint table name. Name of the table to which this applies (null implies the enclosing class' table).
|
AbstractConstraintMetaData | public AbstractConstraintMetaData(MetaData parent, String name, String table)(Code) | | Constructor.
Parameters: parent - Parent (if required to be set) Parameters: name - Name of the constraint Parameters: table - Name of table for the constraint |
addColumn | public void addColumn(ColumnMetaData colmd)(Code) | | Add a new ColumnMetaData element
Parameters: colmd - MetaData for the column |
addMember | public void addMember(AbstractMemberMetaData mmd)(Code) | | Add a new member that is part of this constraint.
Parameters: mmd - MetaData for the field/property |
getColumnMetaData | final public ColumnMetaData[] getColumnMetaData()(Code) | | Accessor for columnMetaData
Returns the columnMetaData. |
getMemberMetaData | final public AbstractMemberMetaData[] getMemberMetaData()(Code) | | Accessor for metadata for all fields/properties that this constraint relates to.
Returns the memberMetaData. |
getName | final public String getName()(Code) | | Accessor for the name of the constraint
Returns the name. |
getNumberOfColumns | public int getNumberOfColumns()(Code) | | Accessor for the number of columns for this constraint.
Number of columns |
getNumberOfMembers | public int getNumberOfMembers()(Code) | | Accessor for the number of fields/properties for this constraint.
Number of fields/properties |
getTable | final public String getTable()(Code) | | Accessor for the name of the table
Returns the table. |
setName | public void setName(String name)(Code) | | Mutator for the constraint name.
Parameters: name - Name of the constraint. |
|
|
|