|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.mappings.DatabaseMapping
org.eclipse.persistence.mappings.AggregateMapping
org.eclipse.persistence.mappings.foundation.AbstractCompositeCollectionMapping
org.eclipse.persistence.mappings.structures.ObjectArrayMapping
public class ObjectArrayMapping
Purpose:
In an object-relational data model, structures can contain "Arrays" or collections of other data-types.
In Oracle 8i, a Varray
is typically used to represent a collection of primitive data or aggregate structures.
These arrays are stored with their parent structure in the same table.
ArrayMapping is used to map a collection of primitive data
ObjectArrayMapping is used to map a collection of Oracle data-type
NOTE: Only Oracle8i supports Varray type.
ArrayMapping
,
Serialized FormField Summary | |
---|---|
protected java.lang.String |
structureName
Arrays require a structure name, this is the ADT defined for the VARRAY. |
Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractCompositeCollectionMapping |
---|
converter, field |
Fields inherited from class org.eclipse.persistence.mappings.AggregateMapping |
---|
referenceClass, referenceClassName, referenceDescriptor |
Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
---|
attributeAccessor, attributeName, descriptor, fields, isLazy, isOptional, isReadOnly, isRemotelyInitialized, NO_FIELDS, NO_WEIGHT, primaryKeyMapping, properties, weight, WEIGHT_1 |
Constructor Summary | |
---|---|
ObjectArrayMapping()
|
Method Summary | |
---|---|
protected java.lang.Object |
buildCompositeObject(ClassDescriptor descriptor,
AbstractRecord nestedRow,
ObjectBuildingQuery query,
JoinedAttributeManager joinManager)
|
protected AbstractRecord |
buildCompositeRow(java.lang.Object attributeValue,
AbstractSession session,
AbstractRecord parentRow)
|
ChangeRecord |
compareForChange(java.lang.Object clone,
java.lang.Object backup,
ObjectChangeSet owner,
AbstractSession 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,
AbstractSession session)
INTERNAL: Compare the attributes belonging to this mapping for the objects. |
java.lang.String |
getStructureName()
PUBLIC: Return the name of the structure. |
void |
initialize(AbstractSession session)
INTERNAL: Initialize the mapping. |
void |
mergeChangesIntoObject(java.lang.Object target,
ChangeRecord changeRecord,
java.lang.Object source,
MergeManager mergeManager)
INTERNAL: Merge changes from the source to the target object. |
void |
mergeIntoObject(java.lang.Object target,
boolean isTargetUnInitialized,
java.lang.Object source,
MergeManager mergeManager)
INTERNAL: Merge changes from the source to the target object. |
void |
setFieldName(java.lang.String fieldName)
|
void |
setStructureName(java.lang.String structureName)
PUBLIC: Set the name of the structure. |
void |
simpleAddToCollectionChangeRecord(java.lang.Object referenceKey,
java.lang.Object changeSetToAdd,
ObjectChangeSet changeSet,
AbstractSession 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,
ObjectChangeSet changeSet,
AbstractSession 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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.persistence.mappings.structures.ArrayCollectionMapping |
---|
buildAddedElementFromChangeSet, buildChangeSet, buildElementFromElement, buildRemovedElementFromChangeSet, compareElements, compareElementsForChange, getAttributeName, getRealCollectionAttributeValueFromObject, mapKeyHasChanged, setRealAttributeValueInObject |
Methods inherited from interface org.eclipse.persistence.mappings.ContainerMapping |
---|
getContainerPolicy, setContainerPolicy, useCollectionClass, useMapClass |
Field Detail |
---|
protected java.lang.String structureName
Constructor Detail |
---|
public ObjectArrayMapping()
Method Detail |
---|
public java.lang.String getStructureName()
getStructureName
in class AbstractCompositeCollectionMapping
public void initialize(AbstractSession session) throws DescriptorException
initialize
in class AbstractCompositeCollectionMapping
DescriptorException
public void setFieldName(java.lang.String fieldName)
public void setStructureName(java.lang.String structureName)
protected java.lang.Object buildCompositeObject(ClassDescriptor descriptor, AbstractRecord nestedRow, ObjectBuildingQuery query, JoinedAttributeManager joinManager)
buildCompositeObject
in class AbstractCompositeCollectionMapping
protected AbstractRecord buildCompositeRow(java.lang.Object attributeValue, AbstractSession session, AbstractRecord parentRow)
buildCompositeRow
in class AbstractCompositeCollectionMapping
public ChangeRecord compareForChange(java.lang.Object clone, java.lang.Object backup, ObjectChangeSet owner, AbstractSession session)
compareForChange
in class AbstractCompositeCollectionMapping
public boolean compareObjects(java.lang.Object object1, java.lang.Object object2, AbstractSession session)
compareObjects
in class AbstractCompositeCollectionMapping
public void mergeChangesIntoObject(java.lang.Object target, ChangeRecord changeRecord, java.lang.Object source, MergeManager mergeManager)
mergeChangesIntoObject
in class AbstractCompositeCollectionMapping
public void mergeIntoObject(java.lang.Object target, boolean isTargetUnInitialized, java.lang.Object source, MergeManager mergeManager)
mergeIntoObject
in class AbstractCompositeCollectionMapping
public void simpleAddToCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session)
simpleAddToCollectionChangeRecord
in class AbstractCompositeCollectionMapping
public void simpleRemoveFromCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session)
simpleRemoveFromCollectionChangeRecord
in class AbstractCompositeCollectionMapping
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |