Module org.eclipse.persistence.core
Interface ArrayCollectionMapping
-
- All Superinterfaces:
ContainerMapping
- All Known Implementing Classes:
AbstractCompositeCollectionMapping,AbstractCompositeDirectCollectionMapping,ArrayMapping,EISCompositeCollectionMapping,EISCompositeDirectCollectionMapping,ObjectArrayMapping,XMLBinaryDataCollectionMapping,XMLCompositeCollectionMapping,XMLCompositeDirectCollectionMapping,XMLFragmentCollectionMapping,XMLVariableXPathCollectionMapping
public interface ArrayCollectionMapping extends ContainerMapping
Interface used by theArrayCollectionMappingHelperto interact with the assorted array collection mappings.- See Also:
ArrayCollectionMappingHelper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectbuildAddedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)Build and return a newly-added element based on the change set.ObjectbuildChangeSet(Object element, ObjectChangeSet owner, AbstractSession session)Build and return a change set for the specified element.ObjectbuildElementFromElement(Object element, MergeManager mergeManager, AbstractSession targetSession)Build and return a new element based on the specified element.ObjectbuildRemovedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)Build and return a recently-removed element based on the change set.booleancompareElements(Object element1, Object element2, AbstractSession session)Compare the non-null elements and return true if they are alike.booleancompareElementsForChange(Object element1, Object element2, AbstractSession session)Compare the non-null elements and return true if they are alike.StringgetAttributeName()Return the mapping's attribute name.ObjectgetRealCollectionAttributeValueFromObject(Object object, AbstractSession session)Return the attribute value from the specified object, unwrapping the value holder if necessary.booleanmapKeyHasChanged(Object element, AbstractSession session)Return whether the element's user-defined Map key has changed since it was cloned from the original version.voidsetRealAttributeValueInObject(Object object, Object attributeValue)Set the attribute value for the specified object, wrapping it in a value holder if necessary.-
Methods inherited from interface org.eclipse.persistence.mappings.ContainerMapping
getContainerPolicy, setContainerPolicy, useCollectionClass, useCollectionClassName, useListClassName, useMapClass, useMapClassName
-
-
-
-
Method Detail
-
buildAddedElementFromChangeSet
Object buildAddedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)
Build and return a newly-added element based on the change set.
-
buildChangeSet
Object buildChangeSet(Object element, ObjectChangeSet owner, AbstractSession session)
Build and return a change set for the specified element.
-
buildElementFromElement
Object buildElementFromElement(Object element, MergeManager mergeManager, AbstractSession targetSession)
Build and return a new element based on the specified element.
-
buildRemovedElementFromChangeSet
Object buildRemovedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)
Build and return a recently-removed element based on the change set.
-
compareElements
boolean compareElements(Object element1, Object element2, AbstractSession session)
Compare the non-null elements and return true if they are alike.
-
compareElementsForChange
boolean compareElementsForChange(Object element1, Object element2, AbstractSession session)
Compare the non-null elements and return true if they are alike. This is used to build a change record.
-
getAttributeName
String getAttributeName()
Return the mapping's attribute name.
-
getRealCollectionAttributeValueFromObject
Object getRealCollectionAttributeValueFromObject(Object object, AbstractSession session)
Return the attribute value from the specified object, unwrapping the value holder if necessary. If the value is null, build a new container.
-
mapKeyHasChanged
boolean mapKeyHasChanged(Object element, AbstractSession session)
Return whether the element's user-defined Map key has changed since it was cloned from the original version.
-
-