Top Description Methods
org.eclipse.persistence.mappings.structures

public Interface ArrayCollectionMapping

extends ContainerMapping
Known Direct Implementers
org.eclipse.persistence.mappings.foundation.AbstractCompositeCollectionMapping, org.eclipse.persistence.mappings.foundation.AbstractCompositeDirectCollectionMapping
Imports
org.eclipse.persistence.internal.sessions.AbstractSession, .MergeManager, .ObjectChangeSet, org.eclipse.persistence.mappings.ContainerMapping

Interface used by the ArrayCollectionMappingHelper to interact with the assorted array collection mappings.
See Also
ArrayCollectionMappingHelper

Method Summary

Modifier and TypeMethod and Description
public Object
buildAddedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)

Build and return a newly-added element based on the change set.

public Object
buildChangeSet(Object element, ObjectChangeSet owner, AbstractSession session)

Build and return a change set for the specified element.

public Object
buildElementFromElement(Object element, MergeManager mergeManager, AbstractSession targetSession)

Build and return a new element based on the specified element.

public Object
buildRemovedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)

Build and return a recently-removed element based on the change set.

public boolean
compareElements(Object element1, Object element2, AbstractSession session)

Compare the non-null elements and return true if they are alike.

public boolean
compareElementsForChange(Object element1, Object element2, AbstractSession session)

Compare the non-null elements and return true if they are alike.

public String
getAttributeName()

Return the mapping's attribute name.

public Object
getRealCollectionAttributeValueFromObject(Object object, AbstractSession session)

Return the attribute value from the specified object, unwrapping the value holder if necessary.

public 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.

public void
setRealAttributeValueInObject(Object object, Object attributeValue)

Set the attribute value for the specified object, wrapping it in a value holder if necessary.

Inherited from org.eclipse.persistence.mappings.ContainerMapping:
getContainerPolicysetContainerPolicyuseCollectionClassuseCollectionClassNameuseListClassNameuseMapClassuseMapClassName

Method Detail

buildAddedElementFromChangeSetback to summary
public Object buildAddedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)

Build and return a newly-added element based on the change set.

buildChangeSetback to summary
public Object buildChangeSet(Object element, ObjectChangeSet owner, AbstractSession session)

Build and return a change set for the specified element.

buildElementFromElementback to summary
public Object buildElementFromElement(Object element, MergeManager mergeManager, AbstractSession targetSession)

Build and return a new element based on the specified element.

buildRemovedElementFromChangeSetback to summary
public Object buildRemovedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession)

Build and return a recently-removed element based on the change set.

compareElementsback to summary
public boolean compareElements(Object element1, Object element2, AbstractSession session)

Compare the non-null elements and return true if they are alike.

compareElementsForChangeback to summary
public 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.

getAttributeNameback to summary
public String getAttributeName()

Return the mapping's attribute name.

getRealCollectionAttributeValueFromObjectback to summary
public 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.

mapKeyHasChangedback to summary
public 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.

setRealAttributeValueInObjectback to summary
public void setRealAttributeValueInObject(Object object, Object attributeValue)

Set the attribute value for the specified object, wrapping it in a value holder if necessary.