|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.mappings.DatabaseMapping
oracle.toplink.mappings.ForeignReferenceMapping
oracle.toplink.mappings.CollectionMapping
oracle.toplink.mappings.ManyToManyMapping
Purpose: Many to many mappings ae used to represent the relationships between a collection of source objects and a collection of target objects. The mapping require the creation of an intermediate table for manageing the associations between the source and target records.
Constructor Summary | |
ManyToManyMapping() PUBLIC: Default constructor. |
Method Summary | |
void |
addSourceRelationKeyFieldName(java.lang.String sourceRelationKeyFieldName, java.lang.String sourcePrimaryKeyFieldName) PUBLIC: Add the fields in the intermediate table that corresponds to the primary key in the source table. |
void |
addTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName, java.lang.String targetPrimaryKeyFieldName) PUBLIC: Add the fields in the intermediate table that corresponds to the primary key in the target table. |
java.lang.String |
getRelationTableName() PUBLIC: Return the relation table name associated with the mapping. |
java.lang.String |
getRelationTableQualifiedName() PUBLIC: Return the relation table qualified name associated with the mapping. |
java.util.Vector |
getSourceKeyFieldNames() PUBLIC: Return the source key field names associated with the mapping. |
java.util.Vector |
getSourceRelationKeyFieldNames() PUBLIC: Return the source relation key field names associated with the mapping. |
java.util.Vector |
getTargetKeyFieldNames() PUBLIC: Return the target key field names associated with the mapping. |
java.util.Vector |
getTargetRelationKeyFieldNames() PUBLIC: Return the target relation key field names associated with the mapping. |
void |
setCustomDeleteQuery(DataModifyQuery query) PUBLIC: The default insert query for mapping can be overridden by specifying the new query. |
void |
setCustomInsertQuery(DataModifyQuery query) PUBLIC: The default insert query for mapping can be overridden by specifying the new query. |
void |
setDeleteSQLString(java.lang.String sqlString) PUBLIC: Set the receiver's delete SQL string. |
void |
setInsertSQLString(java.lang.String sqlString) PUBLIC: Set the receiver's insert SQL string. |
void |
setRelationTableName(java.lang.String tableName) PUBLIC: Set the name of the relational table. |
void |
setSessionName(java.lang.String name) PUBLIC: Set the name of the session to execute the mapping's queries under. |
void |
setSourceKeyFieldNames(java.util.Vector fieldNames) PUBLIC: Set the source key field names associated with the mapping. |
void |
setSourceRelationKeyFieldName(java.lang.String sourceRelationKeyFieldName) PUBLIC: Set the source key field in the relation table. |
void |
setSourceRelationKeyFieldNames(java.util.Vector fieldNames) PUBLIC: Set the source relation key field names associated with the mapping. |
void |
setTargetKeyFieldNames(java.util.Vector fieldNames) PUBLIC: Set the target key field names associated with the mapping. |
void |
setTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName) PUBLIC: Set the target key field in the relation table. |
void |
setTargetRelationKeyFieldNames(java.util.Vector fieldNames) PUBLIC: Set the target relation key field names associated with the mapping. |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
getAttributeClassification, getAttributeName, getGetMethodName, getSetMethodName, readOnly, readWrite, setAttributeName, setGetMethodName, setIsReadOnly, setSetMethodName, setWeight |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ManyToManyMapping()
Method Detail |
public void addSourceRelationKeyFieldName(java.lang.String sourceRelationKeyFieldName, java.lang.String sourcePrimaryKeyFieldName)
public void addTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName, java.lang.String targetPrimaryKeyFieldName)
public java.lang.String getRelationTableName()
public java.lang.String getRelationTableQualifiedName()
public java.util.Vector getSourceKeyFieldNames()
public java.util.Vector getSourceRelationKeyFieldNames()
public java.util.Vector getTargetKeyFieldNames()
public java.util.Vector getTargetRelationKeyFieldNames()
public void setCustomDeleteQuery(DataModifyQuery query)
public void setCustomInsertQuery(DataModifyQuery query)
public void setDeleteSQLString(java.lang.String sqlString)
public void setInsertSQLString(java.lang.String sqlString)
public void setRelationTableName(java.lang.String tableName)
public void setSessionName(java.lang.String name)
setSessionName
in class CollectionMapping
public void setSourceKeyFieldNames(java.util.Vector fieldNames)
public void setSourceRelationKeyFieldName(java.lang.String sourceRelationKeyFieldName)
public void setSourceRelationKeyFieldNames(java.util.Vector fieldNames)
public void setTargetKeyFieldNames(java.util.Vector fieldNames)
public void setTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName)
public void setTargetRelationKeyFieldNames(java.util.Vector fieldNames)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |