| java.lang.Object org.jpox.metadata.MetaData org.jpox.metadata.JoinMetaData
JoinMetaData | public class JoinMetaData extends MetaData implements ColumnMetaDataContainer(Code) | | Secondary tables and join tables are mapped using a join condition that
associates a column or columns in the secondary or join table with a column
or columns in the primary table, typically the primary tables primary key
columns. Column elements used for relationship mapping or join conditions
specify the column name and optionally the target column name. The target
column name is the name of the column in the associated table corresponding
to the named column. The target column name is optional when the target
column is the single primary key column of the associated table.
since: 1.1 version: $Revision: 1.24 $ |
foreignKey | String foreignKey(Code) | | the foreign-key column name.
|
outer | Boolean outer(Code) | | if is outer join. Outer joins return all elements from at least one of the sides joined.
|
uniqueConstraint | final protected boolean uniqueConstraint(Code) | | Whether to add a unique constraint.
|
JoinMetaData | public JoinMetaData(MetaData parent, JoinMetaData joinmd)(Code) | | Constructor to create a copy of the passed JoinMetaData but with the passed parent.
Parameters: parent - Parent Parameters: joinmd - Existing join metadata to copy |
JoinMetaData | public JoinMetaData(MetaData parent, String table, String catalog, String schema, String columnName, String outer, String fkDeleteAction, String indexed, String unique)(Code) | | Constructor for the Join.
Parameters: parent - The parent Parameters: table - The table name Parameters: catalog - The catalog name Parameters: schema - The schema name Parameters: columnName - The column name Parameters: outer - Whether it is an outer join Parameters: fkDeleteAction - Delete action on the FK Parameters: indexed - whether the join is indexed Parameters: unique - whether the join is unique |
addColumn | public void addColumn(ColumnMetaData colmd)(Code) | | Add a new ColumnMetaData element
Parameters: colmd - The ColumnMetaData to add |
getCatalog | final public String getCatalog()(Code) | | Accessor for the catalog name
Returns the catalog name |
getColumnMetaData | final public ColumnMetaData[] getColumnMetaData()(Code) | | Accessor for columnMetaData
Returns the columnMetaData. |
getColumnName | final public String getColumnName()(Code) | | Accessor for the column name
Returns the column. |
getPrimaryKeyMetaData | final public PrimaryKeyMetaData getPrimaryKeyMetaData()(Code) | | Accessor for primaryKeyMetaData
Returns the primaryKey MetaData. |
getSchema | final public String getSchema()(Code) | | Accessor for the schema name
Returns the schema name |
getTable | final public String getTable()(Code) | | Accessor for the table name
Returns the table name |
initialise | public void initialise()(Code) | | Method to initialise the object, creating internal convenience arrays.
Initialises all sub-objects.
|
isOuter | final public boolean isOuter()(Code) | | Returns the outer. |
setForeignKeyMetaData | final public void setForeignKeyMetaData(ForeignKeyMetaData foreignKeyMetaData)(Code) | | Parameters: foreignKeyMetaData - The foreignKeyMetaData to set. |
setIndexMetaData | final public void setIndexMetaData(IndexMetaData indexMetaData)(Code) | | Parameters: indexMetaData - The indexMetaData to set. |
setPrimaryKeyMetaData | final public void setPrimaryKeyMetaData(PrimaryKeyMetaData primaryKeyMetaData)(Code) | | Mutator for the PrimaryKey MetaData.
Parameters: primaryKeyMetaData - The PrimaryKey MetaData to set. |
setUniqueMetaData | final public void setUniqueMetaData(UniqueMetaData uniqueMetaData)(Code) | | Parameters: uniqueMetaData - The uniqueMetaData to set. |
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. |
|
|