|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
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
public class ManyToManyMapping
Purpose: Many to many mappings are 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 managing the associations between the source and target records.
Field Summary |
---|
Fields inherited from class oracle.toplink.mappings.ForeignReferenceMapping |
---|
INNER_JOIN, NONE, OUTER_JOIN |
Constructor Summary | |
---|---|
ManyToManyMapping()
Default constructor. |
Method Summary | |
---|---|
void |
addSourceRelationKeyField(DatabaseField sourceRelationKeyField,
DatabaseField sourcePrimaryKeyField)
Add the fields in the intermediate table that corresponds to the primary key in the source table. |
void |
addSourceRelationKeyFieldName(java.lang.String sourceRelationKeyFieldName,
java.lang.String sourcePrimaryKeyFieldName)
Add the fields in the intermediate table that corresponds to the primary key in the source table. |
void |
addTargetRelationKeyField(DatabaseField targetRelationKeyField,
DatabaseField targetPrimaryKeyField)
Add the fields in the intermediate table that corresponds to the primary key in the target table. |
void |
addTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName,
java.lang.String targetPrimaryKeyFieldName)
Add the fields in the intermediate table that corresponds to the primary key in the target table. |
HistoryPolicy |
getHistoryPolicy()
|
java.lang.String |
getRelationTableName()
Return the relation table name associated with the mapping. |
java.lang.String |
getRelationTableQualifiedName()
Return the relation table qualified name associated with the mapping. |
java.util.Vector |
getSourceKeyFieldNames()
Return the source key field names associated with the mapping. |
java.util.Vector |
getSourceRelationKeyFieldNames()
Return the source relation key field names associated with the mapping. |
java.util.Vector |
getTargetKeyFieldNames()
Return the target key field names associated with the mapping. |
java.util.Vector |
getTargetRelationKeyFieldNames()
Return the target relation key field names associated with the mapping. |
void |
setCustomDeleteQuery(DataModifyQuery query)
The default delete query for mapping can be overridden by specifying the new query. |
void |
setCustomInsertQuery(DataModifyQuery query)
The default insert query for mapping can be overridden by specifying the new query. |
void |
setDeleteCall(Call call)
Set the receiver's delete Call. |
void |
setDeleteSQLString(java.lang.String sqlString)
Set the receiver's delete SQL string. |
void |
setHistoryPolicy(HistoryPolicy policy)
|
void |
setInsertCall(Call call)
Set the receiver's insert Call. |
void |
setInsertSQLString(java.lang.String sqlString)
Set the receiver's insert SQL string. |
void |
setRelationTable(DatabaseTable relationTable)
Set the relational table. |
void |
setRelationTableName(java.lang.String tableName)
Set the name of the relational table. |
void |
setSessionName(java.lang.String name)
Set the name of the session to execute the mapping's queries under. |
void |
setSourceKeyFieldNames(java.util.Vector fieldNames)
Set the source key field names associated with the mapping. |
void |
setSourceRelationKeyFieldName(java.lang.String sourceRelationKeyFieldName)
Set the source key field in the relation table. |
void |
setSourceRelationKeyFieldNames(java.util.Vector fieldNames)
Set the source relation key field names associated with the mapping. |
void |
setTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName)
Set the target key field in the relation table. |
Methods inherited from class oracle.toplink.mappings.DatabaseMapping |
---|
getAttributeAccessor, getAttributeClassification, getAttributeName, getGetMethodName, getProperty, getSetMethodName, isLazy, isOptional, isUsingMethodAccess, readOnly, readWrite, setAttributeAccessor, setAttributeName, setGetMethodName, setIsLazy, setIsOptional, setIsReadOnly, setProperty, 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 addSourceRelationKeyField(DatabaseField sourceRelationKeyField, DatabaseField sourcePrimaryKeyField)
public void addSourceRelationKeyFieldName(java.lang.String sourceRelationKeyFieldName, java.lang.String sourcePrimaryKeyFieldName)
public void addTargetRelationKeyField(DatabaseField targetRelationKeyField, DatabaseField targetPrimaryKeyField)
public void addTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName, java.lang.String targetPrimaryKeyFieldName)
public HistoryPolicy getHistoryPolicy()
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 setDeleteCall(Call call)
public void setInsertSQLString(java.lang.String sqlString)
public void setInsertCall(Call call)
public void setRelationTable(DatabaseTable relationTable)
public void setHistoryPolicy(HistoryPolicy policy)
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 setTargetRelationKeyFieldName(java.lang.String targetRelationKeyFieldName)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |