|
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.OneToManyMapping
Purpose: This mapping is used to represent the typical RDBMS relationship between a single source object and collection of target objects; where, on the database, the target objects have references (foreign keys) to the source object.
Constructor Summary | |
OneToManyMapping() PUBLIC: Default constructor. |
Method Summary | |
void |
addTargetForeignKeyFieldName(java.lang.String targetForeignKeyFieldName, java.lang.String sourceKeyFieldName) PUBLIC: Define the target foreign key relationship in the one-to-many mapping. |
Expression |
buildSelectionCriteria() This method would allow customers to get the potential selection criteria for a mapping prior to initialization. |
java.util.Vector |
getSourceKeyFieldNames() PUBLIC: Return the source key field names associated with the mapping. |
java.util.Vector |
getTargetForeignKeyFieldNames() PUBLIC: Return the target foreign key field names associated with the mapping. |
void |
setDeleteAllSQLString(java.lang.String sqlString) PUBLIC: Set the SQL string used by the mapping to delete the target objects. |
void |
setSourceKeyFieldNames(java.util.Vector fieldNames) PUBLIC: Set the source key field names associated with the mapping. |
void |
setTargetForeignKeyFieldName(java.lang.String targetForeignKeyFieldName) PUBLIC: Define the target foreign key relationship in the one-to-many mapping. |
void |
setTargetForeignKeyFieldNames(java.lang.String[] targetForeignKeyFieldNames, java.lang.String[] sourceKeyFieldNames) PUBLIC: Define the target foreign key relationship in the one-to-many mapping. |
void |
setTargetForeignKeyFieldNames(java.util.Vector fieldNames) PUBLIC: Set the target key field names associated with the mapping. |
Methods inherited from class oracle.toplink.mappings.CollectionMapping |
addAscendingOrdering, addDescendingOrdering, getRealCollectionAttributeValueFromObject, setContainerPolicy, setCustomDeleteAllQuery, setSessionName, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, useCollectionClass, useMapClass, useSortedSetClass, useTransparentCollection, useTransparentMap |
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 OneToManyMapping()
Method Detail |
public void addTargetForeignKeyFieldName(java.lang.String targetForeignKeyFieldName, java.lang.String sourceKeyFieldName)
DirectToFieldMapping
, ManyToManyMapping
, AggregateCollectionMapping
public Expression buildSelectionCriteria()
public java.util.Vector getSourceKeyFieldNames()
public java.util.Vector getTargetForeignKeyFieldNames()
public void setDeleteAllSQLString(java.lang.String sqlString)
Example: "delete from PHONE where OWNER_ID = #EMPLOYEE_ID"
setDeleteAllSQLString
in class CollectionMapping
public void setSourceKeyFieldNames(java.util.Vector fieldNames)
public void setTargetForeignKeyFieldName(java.lang.String targetForeignKeyFieldName)
DirectToFieldMapping
, ManyToManyMapping
, AggregateCollectionMapping
public void setTargetForeignKeyFieldNames(java.lang.String[] targetForeignKeyFieldNames, java.lang.String[] sourceKeyFieldNames)
public void setTargetForeignKeyFieldNames(java.util.Vector fieldNames)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |