|
Oracle Application Server TopLink API Reference 10g (9.0.4.3) B10491-02 | |||||||||
| 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.AggregateMapping
oracle.toplink.sdk.SDKAggregateCollectionMapping
Chunks of data from non-relational data sources can have embedded collections of component objects. These can be mapped using this mapping. The format of the embedded data is determined by the reference descriptor.
SDKDescriptor, SDKFieldValue, SDKCollectionMappingHelper, SDKCollectionChangeRecord, SDKOrderedCollectionChangeRecord, Serialized Form| Constructor Summary | |
SDKAggregateCollectionMapping()Default constructor. | |
| Method Summary | |
java.lang.Object |
buildAddedElementFromChangeSet(java.lang.Object changeSet, oracle.toplink.internal.sessions.MergeManager mergeManager)INTERNAL: Build and return a new element based on the change set. |
java.lang.Object |
buildChangeSet(java.lang.Object element, oracle.toplink.internal.sessions.ObjectChangeSet owner, oracle.toplink.publicinterface.Session session)INTERNAL: Build and return a change set for the specified element. |
java.lang.Object |
buildElementFromElement(java.lang.Object element, oracle.toplink.internal.sessions.MergeManager mergeManager)INTERNAL: Build and return a new element based on the specified element. |
java.lang.Object |
buildRemovedElementFromChangeSet(java.lang.Object changeSet, oracle.toplink.internal.sessions.MergeManager mergeManager)INTERNAL: Build and return a new element based on the change set. |
boolean |
compareElements(java.lang.Object element1, java.lang.Object element2, oracle.toplink.publicinterface.Session session)INTERNAL: Compare the non-null elements and return true if they are alike. |
boolean |
compareElementsForChange(java.lang.Object element1, java.lang.Object element2, oracle.toplink.publicinterface.Session session)INTERNAL: Compare the non-null elements and return true if they are alike. |
oracle.toplink.internal.sessions.ChangeRecord |
compareForChange(java.lang.Object clone, java.lang.Object backup, oracle.toplink.internal.sessions.ObjectChangeSet owner, oracle.toplink.publicinterface.Session session)INTERNAL: Build and return the change record that results from comparing the two aggregate collection attributes. |
boolean |
compareObjects(java.lang.Object object1, java.lang.Object object2, oracle.toplink.publicinterface.Session session)INTERNAL: Compare the attributes belonging to this mapping for the objects. |
oracle.toplink.internal.queryframework.ContainerPolicy |
getContainerPolicy()INTERNAL: Return the mapping's containerPolicy. |
oracle.toplink.internal.helper.DatabaseField |
getField()INTERNAL: Return the field mapped by this mapping. |
java.lang.String |
getFieldName()PUBLIC: Return the mapping's field name. |
java.lang.Object |
getRealCollectionAttributeValueFromObject(java.lang.Object object, oracle.toplink.publicinterface.Session session)INTERNAL: Convenience method. |
void |
initialize(oracle.toplink.publicinterface.Session session)INTERNAL: The mapping is initialized with the given session. |
boolean |
mapKeyHasChanged(java.lang.Object element, oracle.toplink.publicinterface.Session session)INTERNAL: Return whether the element's user-defined Map key has changed since it was cloned from the original version. |
void |
mergeChangesIntoObject(java.lang.Object target, oracle.toplink.internal.sessions.ChangeRecord changeRecord, java.lang.Object source, oracle.toplink.internal.sessions.MergeManager mergeManager)INTERNAL: Merge changes from the source to the target object. |
void |
mergeIntoObject(java.lang.Object target, boolean isTargetUnInitialized, java.lang.Object source, oracle.toplink.internal.sessions.MergeManager mergeManager)INTERNAL: Merge changes from the source to the target object. |
void |
setContainerPolicy(oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy)ADVANCED: Set the mapping's containerPolicy. |
void |
setFieldName(java.lang.String fieldName)PUBLIC: Set the mapping's field name. |
void |
simpleAddToCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToAdd, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.publicinterface.Session session)ADVANCED: This method is used to have an object add to a collection once the changeSet is applied The referenceKey parameter should only be used for direct Maps. |
void |
simpleRemoveFromCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToRemove, oracle.toplink.internal.sessions.ObjectChangeSet changeSet, oracle.toplink.publicinterface.Session session)ADVANCED: This method is used to have an object removed from a collection once the changeSet is applied The referenceKey parameter should only be used for direct Maps. |
void |
useCollectionClass(java.lang.Class concreteContainerClass)PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects. |
void |
useMapClass(java.lang.Class concreteContainerClass, java.lang.String methodName)PUBLIC: Configure the mapping to use an instance of the specified container class to hold the target objects. |
java.lang.Object |
valueFromRow(DatabaseRow row, ObjectLevelReadQuery query)INTERNAL: Build and return an aggregate collection from the specified row. |
void |
writeFromObjectIntoRow(java.lang.Object object, DatabaseRow row, oracle.toplink.publicinterface.Session session)INTERNAL: Get the attribute value from the object and add the appropriate values to the specified database row. |
void |
writeFromObjectIntoRowForUpdate(WriteObjectQuery writeQuery, DatabaseRow row)INTERNAL: Get the attribute value from the object and add the changed values to the specified database row. |
void |
writeFromObjectIntoRowWithChangeRecord(oracle.toplink.internal.sessions.ChangeRecord changeRecord, DatabaseRow row, oracle.toplink.publicinterface.Session session)INTERNAL: Get the attribute value from the object and add the appropriate values to the specified database row. |
void |
writeInsertFieldsIntoRow(DatabaseRow databaseRow, oracle.toplink.publicinterface.Session session)INTERNAL: Write fields needed for insert into the template with null values. |
| Methods inherited from class oracle.toplink.mappings.AggregateMapping |
buildBackupClone, buildClone, buildCopy, buildExpression, fixObjectReferences, getReferenceClass, getReferenceDescriptor, isAggregateMapping, iterate, postDelete, postInsert, postUpdate, preDelete, preInsert, preUpdate, remoteInitialization, setReferenceClass, verifyDelete |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.toplink.sdk.SDKCollectionMapping |
getAttributeName, setRealAttributeValueInObject |
| Constructor Detail |
public SDKAggregateCollectionMapping()
| Method Detail |
public java.lang.Object buildAddedElementFromChangeSet(java.lang.Object changeSet,
oracle.toplink.internal.sessions.MergeManager mergeManager)
buildAddedElementFromChangeSet in interface SDKCollectionMapping
public java.lang.Object buildChangeSet(java.lang.Object element,
oracle.toplink.internal.sessions.ObjectChangeSet owner,
oracle.toplink.publicinterface.Session session)
buildChangeSet in interface SDKCollectionMapping
public java.lang.Object buildElementFromElement(java.lang.Object element,
oracle.toplink.internal.sessions.MergeManager mergeManager)
buildElementFromElement in interface SDKCollectionMapping
public java.lang.Object buildRemovedElementFromChangeSet(java.lang.Object changeSet,
oracle.toplink.internal.sessions.MergeManager mergeManager)
buildRemovedElementFromChangeSet in interface SDKCollectionMapping
public boolean compareElements(java.lang.Object element1,
java.lang.Object element2,
oracle.toplink.publicinterface.Session session)
compareElements in interface SDKCollectionMapping
public boolean compareElementsForChange(java.lang.Object element1,
java.lang.Object element2,
oracle.toplink.publicinterface.Session session)
compareElementsForChange in interface SDKCollectionMapping
public oracle.toplink.internal.sessions.ChangeRecord compareForChange(java.lang.Object clone,
java.lang.Object backup,
oracle.toplink.internal.sessions.ObjectChangeSet owner,
oracle.toplink.publicinterface.Session session)
compareForChange in class AggregateMapping
public boolean compareObjects(java.lang.Object object1,
java.lang.Object object2,
oracle.toplink.publicinterface.Session session)
compareObjects in class AggregateMappingpublic oracle.toplink.internal.queryframework.ContainerPolicy getContainerPolicy()
getContainerPolicy in interface ContainerMappinggetContainerPolicy in class DatabaseMappingpublic oracle.toplink.internal.helper.DatabaseField getField()
getField in class DatabaseMappingpublic java.lang.String getFieldName()
public java.lang.Object getRealCollectionAttributeValueFromObject(java.lang.Object object,
oracle.toplink.publicinterface.Session session)
throws DescriptorException
getRealCollectionAttributeValueFromObject in interface SDKCollectionMappinggetRealCollectionAttributeValueFromObject in class DatabaseMappingDescriptorException
public void initialize(oracle.toplink.publicinterface.Session session)
throws DescriptorException
initialize in class AggregateMappingDescriptorException
public boolean mapKeyHasChanged(java.lang.Object element,
oracle.toplink.publicinterface.Session session)
mapKeyHasChanged in interface SDKCollectionMapping
public void mergeChangesIntoObject(java.lang.Object target,
oracle.toplink.internal.sessions.ChangeRecord changeRecord,
java.lang.Object source,
oracle.toplink.internal.sessions.MergeManager mergeManager)
mergeChangesIntoObject in class AggregateMapping
public void mergeIntoObject(java.lang.Object target,
boolean isTargetUnInitialized,
java.lang.Object source,
oracle.toplink.internal.sessions.MergeManager mergeManager)
mergeIntoObject in class AggregateMappingpublic void setContainerPolicy(oracle.toplink.internal.queryframework.ContainerPolicy containerPolicy)
setContainerPolicy in interface ContainerMappingpublic void setFieldName(java.lang.String fieldName)
public void simpleAddToCollectionChangeRecord(java.lang.Object referenceKey,
java.lang.Object changeSetToAdd,
oracle.toplink.internal.sessions.ObjectChangeSet changeSet,
oracle.toplink.publicinterface.Session session)
simpleAddToCollectionChangeRecord in class DatabaseMapping
public void simpleRemoveFromCollectionChangeRecord(java.lang.Object referenceKey,
java.lang.Object changeSetToRemove,
oracle.toplink.internal.sessions.ObjectChangeSet changeSet,
oracle.toplink.publicinterface.Session session)
simpleRemoveFromCollectionChangeRecord in class DatabaseMappingpublic void useCollectionClass(java.lang.Class concreteContainerClass)
jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface.
jdk1.1.x: The container class must be a subclass of Vector.
useCollectionClass in interface ContainerMapping
public void useMapClass(java.lang.Class concreteContainerClass,
java.lang.String methodName)
jdk1.2.x: The container class must implement (directly or indirectly) the Map interface.
jdk1.1.x: The container class must be a subclass of Hashtable.
The referenceClass must be set before calling this method.
useMapClass in interface ContainerMapping
public java.lang.Object valueFromRow(DatabaseRow row,
ObjectLevelReadQuery query)
throws DatabaseException
valueFromRow in class DatabaseMappingDatabaseException
public void writeFromObjectIntoRow(java.lang.Object object,
DatabaseRow row,
oracle.toplink.publicinterface.Session session)
throws DescriptorException
writeFromObjectIntoRow in class DatabaseMappingDescriptorException
public void writeFromObjectIntoRowForUpdate(WriteObjectQuery writeQuery,
DatabaseRow row)
throws DescriptorException
writeFromObjectIntoRowForUpdate in class DatabaseMappingDescriptorException
public void writeFromObjectIntoRowWithChangeRecord(oracle.toplink.internal.sessions.ChangeRecord changeRecord,
DatabaseRow row,
oracle.toplink.publicinterface.Session session)
throws DescriptorException
writeFromObjectIntoRowWithChangeRecord in class DatabaseMappingDescriptorException
public void writeInsertFieldsIntoRow(DatabaseRow databaseRow,
oracle.toplink.publicinterface.Session session)
writeInsertFieldsIntoRow in class DatabaseMapping
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||