ArrayCollectionMappingHelper to interact
with the assorted array collection mappings.
ArrayCollectionMappingHelper
| Modifier and Type | Method 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 | |
| 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. |
| buildAddedElementFromChangeSet | back to summary |
|---|---|
| public Object buildAddedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession) Build and return a newly-added element based on the change set. | |
| buildChangeSet | back to summary |
|---|---|
| public Object buildChangeSet(Object element, ObjectChangeSet owner, AbstractSession session) Build and return a change set for the specified element. | |
| buildElementFromElement | back to summary |
|---|---|
| public Object buildElementFromElement(Object element, MergeManager mergeManager, AbstractSession targetSession) Build and return a new element based on the specified element. | |
| buildRemovedElementFromChangeSet | back to summary |
|---|---|
| public Object buildRemovedElementFromChangeSet(Object changeSet, MergeManager mergeManager, AbstractSession targetSession) Build and return a recently-removed element based on the change set. | |
| compareElements | back to summary |
|---|---|
| public boolean compareElements(Object element1, Object element2, AbstractSession session) Compare the non-null elements and return true if they are alike. | |
| compareElementsForChange | back 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. | |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() Return the mapping's attribute name. | |
| getRealCollectionAttributeValueFromObject | back 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. | |
| mapKeyHasChanged | back 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. | |
| setRealAttributeValueInObject | back 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. | |