|
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.foundation.AbstractCompositeDirectCollectionMapping
org.eclipse.persistence.mappings.structures.ArrayMapping
public class ArrayMapping
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.
StructureMapping
,
NestedTableMapping
,
ReferenceMapping
,
Serialized FormField Summary |
---|
Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractCompositeDirectCollectionMapping |
---|
elementDataTypeName, field, valueConverter |
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 | |
---|---|
ArrayMapping()
Default constructor. |
Method Summary | |
---|---|
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 direct 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 |
getElementDataTypeName()
PUBLIC: Return the "data type" associated with each element in the nested collection. |
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 |
setElementDataTypeName(java.lang.String elementDataTypeName)
PUBLIC: Set the "data type" associated with each element in the nested collection. |
void |
setFieldName(java.lang.String fieldName)
PUBLIC: Set the name of the field that holds the nested collection. |
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 |
Constructor Detail |
---|
public ArrayMapping()
Method Detail |
---|
public void setFieldName(java.lang.String fieldName)
public java.lang.String getStructureName()
public void setStructureName(java.lang.String structureName)
public java.lang.String getElementDataTypeName()
public void setElementDataTypeName(java.lang.String elementDataTypeName)
public void initialize(AbstractSession session) throws DescriptorException
initialize
in class AbstractCompositeDirectCollectionMapping
DescriptorException
public ChangeRecord compareForChange(java.lang.Object clone, java.lang.Object backup, ObjectChangeSet owner, AbstractSession session)
compareForChange
in class AbstractCompositeDirectCollectionMapping
public boolean compareObjects(java.lang.Object object1, java.lang.Object object2, AbstractSession session)
compareObjects
in class AbstractCompositeDirectCollectionMapping
public void mergeChangesIntoObject(java.lang.Object target, ChangeRecord changeRecord, java.lang.Object source, MergeManager mergeManager)
mergeChangesIntoObject
in class AbstractCompositeDirectCollectionMapping
public void mergeIntoObject(java.lang.Object target, boolean isTargetUnInitialized, java.lang.Object source, MergeManager mergeManager)
mergeIntoObject
in class AbstractCompositeDirectCollectionMapping
public void simpleAddToCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session)
simpleAddToCollectionChangeRecord
in class AbstractCompositeDirectCollectionMapping
public void simpleRemoveFromCollectionChangeRecord(java.lang.Object referenceKey, java.lang.Object changeSetToRemove, ObjectChangeSet changeSet, AbstractSession session)
simpleRemoveFromCollectionChangeRecord
in class AbstractCompositeDirectCollectionMapping
|
EclipseLink 1.0_1.0M2 API Reference - Incubation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |