Class XMLChoiceCollectionMapping
- All Implemented Interfaces:
Serializable
,Cloneable
,ChoiceCollectionMapping<AbstractSession,
,AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, XMLUnmarshaller, XMLField, XMLMapping, XMLRecord> Mapping<AbstractSession,
,AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> XMLContainerMapping
,XMLConverterMapping<XMLMarshaller,
,Session, XMLUnmarshaller> XMLMapping
Purpose:Provide a mapping that can map a single attribute to a number of different elements in an XML Document. This will be used to map to Choices or Substitution Groups in an XML Schema
Responsibilities:
- Allow the user to specify XPath -> Type mappings
- Handle reading and writing of XML Documents containing a collection of choice or substitution group elements
The XMLChoiceCollectionMapping is the collection version of the XMLChoiceMapping. This mapping allows the user to specify a number of different xpaths, and types associated with those xpaths. When any of these elements are encountered in the XML Document, they are read in as the correct type and added to the collection.
Setting up XPath mappings:Unlike other OXM Mappings, instead of setting a single xpath,
the addChoiceElement method is used to specify an xpath and the type associated with this xpath.
xmlChoiceCollectionMapping.addChoiceElement("mystring/text()", String.class);
xmlChoiceCollectionMapping.addChoiceElement("myaddress", Address.class);
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.persistence.mappings.DatabaseMapping
DatabaseMapping.WriteType
-
Field Summary
Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping
attributeAccessor, attributeName, derivedIdMapping, derivesId, descriptor, fields, isCacheable, isInSopObject, isJPAId, isLazy, isMapKeyMapping, isOptional, isPrimaryKeyMapping, isReadOnly, isRemotelyInitialized, mapsIdValue, NO_FIELDS, NO_WEIGHT, properties, unconvertedProperties, weight, WEIGHT_AGGREGATE, WEIGHT_DIRECT, WEIGHT_TO_ONE, WEIGHT_TRANSFORM
Fields inherited from interface org.eclipse.persistence.internal.oxm.mappings.XMLContainerMapping
EMPTY_CONTAINER_DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChoiceElement
(String xpath, Class<?> elementType) void
addChoiceElement
(String srcXPath, Class<?> elementType, String tgtXPath) void
addChoiceElement
(String xpath, String elementTypeName) void
addChoiceElement
(String srcXpath, String elementTypeName, String tgtXpath) void
void
void
addChoiceElement
(XMLField xmlField, Class<?> elementType) void
addChoiceElement
(XMLField sourceField, Class<?> elementType, XMLField targetField) void
addChoiceElement
(XMLField field, String elementTypeName) void
addConverter
(XMLField field, Converter converter) void
buildBackupClone
(Object clone, Object backup, UnitOfWorkImpl unitOfWork) INTERNAL: Clone the attribute from the clone and assign it to the backup.void
buildClone
(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession) INTERNAL: Clone the attribute from the original and assign it to the clone.void
buildCloneFromRow
(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession) INTERNAL: A combination of readFromRowIntoObject and buildClone.void
cascadePerformRemoveIfRequired
(Object object, UnitOfWorkImpl uow, Map visitedObjects) INTERNAL: Cascade perform delete through mappings that require the cascadevoid
cascadeRegisterNewIfRequired
(Object object, UnitOfWorkImpl uow, Map visitedObjects) INTERNAL: Cascade registerNew for Create through mappings that require the cascadeprotected Vector
<DatabaseField> This method must be overwritten in the subclasses to return a vector of all the fields this mapping represents.compareForChange
(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) INTERNAL: This method was created in VisualAge.boolean
compareObjects
(Object firstObject, Object secondObject, AbstractSession session) INTERNAL: Compare the attributes belonging to this mapping for the objects.void
convertClassNamesToClasses
(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings This method is implemented by subclasses as necessary.convertDataValueToObjectValue
(Object fieldValue, Session session, XMLUnmarshaller unmarshaller) INTERNALconvertObjectValueToDataValue
(Object value, Session session, XMLMarshaller marshaller) INTERNALvoid
fixObjectReferences
(Object object, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, DistributedSession session) INTERNAL: An object has been serialized from the server to the client.Map
<Class<?>, XMLMapping> INTERNAL: Return the mapping's containerPolicy.Return the converter on the mapping.getConverter
(XMLField field) INTERNAL: Returns a vector of all the fields this mapping represents.boolean
Return true if the original container on the object should be used if present.Get the Wrapper NullPolicy from the Mapping.void
initialize
(AbstractSession session) INTERNAL: Allow for initialization of properties and validation.boolean
isAny()
boolean
INTERNAL Return true if an empty container should be set on the object if there is no presence of the collection in the XML document.boolean
boolean
INTERNAL: Some mappings support no attribute (transformation and multitenant primary key).boolean
INTERNAL: All relational mappings should implement this method to return true.void
iterate
(DescriptorIterator iterator) INTERNAL: Iterate on the appropriate attribute value.void
mergeChangesIntoObject
(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object.void
mergeIntoObject
(Object target, boolean isTargetUninitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object.void
preInitialize
(AbstractSession session) INTERNAL: Allow for initialization of properties and validation.void
setAttributeValueInObject
(Object object, Object value) INTERNAL: Set the value of the attribute mapped by this mapping.void
setChoiceElementMappingsByClass
(Map<Class<?>, XMLMapping> choiceElementMappingsByClass) void
setChoiceFieldToClassAssociations
(ArrayList associations) void
void
setConverter
(Converter converter) Set the converter on the mapping.void
setDefaultEmptyContainer
(boolean defaultEmptyContainer) INTERNAL Indicate whether by default an empty container should be set on the field/property if the collection is not present in the XML document.void
setIsAny
(boolean b) void
setIsWriteOnly
(boolean b) void
setMixedContent
(boolean mixed) PUBLIC: Allows the user to indicate that this mapping should also allow for mixed content in addition to any of the elements in the choice.void
setMixedContent
(String groupingElement) PUBLIC: Allows the user to indicate that this mapping should also allow for mixed content in addition to any of the elements in the choice.void
setReuseContainer
(boolean reuseContainer) Specify whether the original container on the object should be used if present.void
Set the Wrapper NullPolicy on the Mapping.void
useCollectionClass
(Class<?> concreteContainerClass) void
useCollectionClassName
(String concreteContainerClassName) valueFromRow
(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) INTERNAL: A subclass should implement this method if it wants different behavior.void
writeFromObjectIntoRow
(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.WriteType writeType) INTERNAL: A subclass should implement this method if it wants different behavior.void
writeSingleValue
(Object value, Object parent, XMLRecord row, AbstractSession session) INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath.Methods inherited from class org.eclipse.persistence.mappings.DatabaseMapping
addUnconvertedProperty, buildBackupCloneForPartObject, buildChangeRecord, buildCloneForPartObject, buildContainerClone, buildCopy, buildExpression, buildObjectJoinExpression, buildObjectJoinExpression, buildShallowOriginalFromRow, calculateDeferredChanges, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemovePrivateOwnedObjectFromChangeSetIfRequired, clone, cloneFields, collectQueryParameters, convertConverterClassNamesToClasses, createCloneValueHolder, derivesId, earlyPreDelete, extractNestedExpressions, extractNestedNonAggregateExpressions, fixRealObjectReferences, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getDerivedIdMapping, getDescriptor, getField, getFieldClassification, getGetMethodName, getMapsIdValue, getObjectCorrespondingTo, getOrderByNormalizedExpressions, getProperties, getProperty, getRealAttributeValueFromAttribute, getRealAttributeValueFromObject, getRealCollectionAttributeValueFromObject, getReferenceDescriptor, getRelationshipPartner, getSelectFields, getSelectTables, getSetMethodName, getUnconvertedProperties, getValueFromRemoteValueHolder, getWeight, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, hasMapsIdValue, hasNestedIdentityReference, hasRootExpressionThatShouldUseOuterJoin, hasUnconvertedProperties, instantiateAttribute, isAbstractColumnMapping, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isAggregateCollectionMapping, isAggregateMapping, isAggregateObjectMapping, isAttributeValueFromObjectInstantiated, isCacheable, isCandidateForPrivateOwnedRemoval, isCascadedLockingSupported, isChangeTrackingSupported, isCloningRequired, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectMapMapping, isDirectToFieldMapping, isDirectToXMLTypeMapping, isEISMapping, isElementCollectionMapping, isForeignReferenceMapping, isInAndOutSopObject, isInOnlySopObject, isInSopObject, isJoiningSupported, isJPAId, isLazy, isLockableMapping, isManyToManyMapping, isManyToOneMapping, isMapKeyMapping, isMultitenantPrimaryKeyMapping, isNestedTableMapping, isObjectReferenceMapping, isOneToManyMapping, isOneToOneMapping, isOptional, isOutOnlySopObject, isOutSopObject, isOwned, isPrimaryKeyMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isRelationalMapping, isRemotelyInitialized, isStructureMapping, isTransformationMapping, isUnidirectionalOneToManyMapping, isUsingMethodAccess, isVariableOneToOneMapping, iterateOnRealAttributeValue, load, loadAll, performDataModificationEvent, postCalculateChanges, postCalculateChangesOnDeleted, postDelete, postInitialize, postInitializeSourceAndTargetExpressions, postInsert, postUpdate, preDelete, preInsert, prepareCascadeLockingPolicy, preUpdate, readFromResultSetIntoObject, readFromRowIntoObject, readOnly, readWrite, recordPrivateOwnedRemovals, rehashFieldDependancies, remoteInitialization, remotelyInitialized, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setChangeListener, setDerivedIdMapping, setDerivesId, setDescriptor, setFields, setGetMethodName, setIsCacheable, setIsInAndOutSopObject, setIsInSopObject, setIsJPAId, setIsLazy, setIsMapKeyMapping, setIsOptional, setIsOutSopObject, setIsPrimaryKeyMapping, setIsReadOnly, setMapsIdValue, setProperties, setProperty, setRealAttributeValueInObject, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, toString, updateChangeRecord, updateCollectionChangeRecord, validateAfterInitialization, validateBeforeInitialization, valueFromObject, valueFromResultSet, valueFromRow, verifyDelete, writeFromAttributeIntoRow, writeFromObjectIntoRowForShallowInsert, writeFromObjectIntoRowForShallowInsertWithChangeRecord, writeFromObjectIntoRowForUpdate, writeFromObjectIntoRowForUpdateAfterShallowInsert, writeFromObjectIntoRowForUpdateBeforeShallowDelete, writeFromObjectIntoRowForWhereClause, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRow, writeUpdateFieldsIntoRow
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.internal.oxm.mappings.Mapping
getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getDescriptor, getField, getReferenceDescriptor, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isCollectionMapping, isReadOnly, isReferenceMapping, isTransformationMapping, setAttributeAccessor, setAttributeName, setGetMethodName, setIsReadOnly, setProperties, setSetMethodName
-
Constructor Details
-
XMLChoiceCollectionMapping
public XMLChoiceCollectionMapping()
-
-
Method Details
-
getConverter
Return the converter on the mapping. A converter can be used to convert between the object's value and database value of the attribute. -
setConverter
Set the converter on the mapping. A converter can be used to convert between the object's value and database value of the attribute. -
buildBackupClone
INTERNAL: Clone the attribute from the clone and assign it to the backup.- Specified by:
buildBackupClone
in classDatabaseMapping
- Parameters:
clone
- TODObackup
- TODOunitOfWork
- TODO
-
buildClone
public void buildClone(Object original, CacheKey cacheKey, Object clone, Integer refreshCascade, AbstractSession cloningSession) INTERNAL: Clone the attribute from the original and assign it to the clone.- Specified by:
buildClone
in classDatabaseMapping
- Parameters:
original
- TODOcacheKey
- TODOclone
- TODOrefreshCascade
- TODOcloningSession
- TODO
-
buildCloneFromRow
public void buildCloneFromRow(AbstractRecord databaseRow, JoinedAttributeManager joinManager, Object clone, CacheKey sharedCacheKey, ObjectBuildingQuery sourceQuery, UnitOfWorkImpl unitOfWork, AbstractSession executionSession) Description copied from class:DatabaseMapping
INTERNAL: A combination of readFromRowIntoObject and buildClone.buildClone assumes the attribute value exists on the original and can simply be copied.
readFromRowIntoObject assumes that one is building an original.
Both of the above assumptions are false in this method, and actually attempts to do both at the same time.
Extract value from the row and set the attribute to this value in the working copy clone. In order to bypass the shared cache when in transaction a UnitOfWork must be able to populate working copies directly from the row.
- Specified by:
buildCloneFromRow
in classDatabaseMapping
- Parameters:
databaseRow
- TODOjoinManager
- TODOclone
- TODOsharedCacheKey
- TODOsourceQuery
- TODOunitOfWork
- TODOexecutionSession
- TODO
-
cascadePerformRemoveIfRequired
INTERNAL: Cascade perform delete through mappings that require the cascade- Specified by:
cascadePerformRemoveIfRequired
in classDatabaseMapping
- Parameters:
object
- TODOuow
- TODOvisitedObjects
- TODO
-
cascadeRegisterNewIfRequired
INTERNAL: Cascade registerNew for Create through mappings that require the cascade- Specified by:
cascadeRegisterNewIfRequired
in classDatabaseMapping
- Parameters:
object
- TODOuow
- TODOvisitedObjects
- TODO
-
compareForChange
public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) INTERNAL: This method was created in VisualAge.- Specified by:
compareForChange
in classDatabaseMapping
- Parameters:
clone
- TODObackup
- TODOowner
- TODOsession
- TODO- Returns:
- prototype.changeset.ChangeRecord
-
compareObjects
INTERNAL: Compare the attributes belonging to this mapping for the objects.- Specified by:
compareObjects
in classDatabaseMapping
- Parameters:
firstObject
- TODOsecondObject
- TODOsession
- TODO- Returns:
- TODO
-
fixObjectReferences
public void fixObjectReferences(Object object, Map<Object, ObjectDescriptor> objectDescriptors, Map<Object, Object> processedObjects, ObjectLevelReadQuery query, DistributedSession session) INTERNAL: An object has been serialized from the server to the client. Replace the transient attributes of the remote value holders with client-side objects.- Specified by:
fixObjectReferences
in classDatabaseMapping
- Parameters:
object
- TODOobjectDescriptors
- TODOprocessedObjects
- TODOquery
- TODOsession
- TODO
-
iterate
INTERNAL: Iterate on the appropriate attribute value.- Specified by:
iterate
in classDatabaseMapping
-
mergeChangesIntoObject
public void mergeChangesIntoObject(Object target, ChangeRecord changeRecord, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object.- Specified by:
mergeChangesIntoObject
in classDatabaseMapping
-
mergeIntoObject
public void mergeIntoObject(Object target, boolean isTargetUninitialized, Object source, MergeManager mergeManager, AbstractSession targetSession) INTERNAL: Merge changes from the source to the target object.- Specified by:
mergeIntoObject
in classDatabaseMapping
-
valueFromRow
public Object valueFromRow(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, CacheKey cacheKey, AbstractSession executionSession, boolean isTargetProtected, Boolean[] wasCacheUsed) throws DatabaseException Description copied from class:DatabaseMapping
INTERNAL: A subclass should implement this method if it wants different behavior. Returns the value for the mapping from the database row. The execution session is the session the query was executed on, and its platform should be used for data conversion.- Overrides:
valueFromRow
in classDatabaseMapping
- Throws:
DatabaseException
-
writeFromObjectIntoRow
public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.WriteType writeType) throws DescriptorException Description copied from class:DatabaseMapping
INTERNAL: A subclass should implement this method if it wants different behavior. Write the attribute value from the object to the row.- Overrides:
writeFromObjectIntoRow
in classDatabaseMapping
- Throws:
DescriptorException
-
writeSingleValue
Description copied from interface:XMLMapping
INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath. Used for Sequenced marshalling.- Specified by:
writeSingleValue
in interfaceMapping<AbstractSession,
AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> - Specified by:
writeSingleValue
in interfaceXMLMapping
- Parameters:
value
- - The value to be marshalledrow
- - The Record the value is being marshalled too.
-
isXMLMapping
public boolean isXMLMapping()Description copied from class:DatabaseMapping
INTERNAL: All relational mappings should implement this method to return true.- Overrides:
isXMLMapping
in classDatabaseMapping
-
getFields
Description copied from class:DatabaseMapping
INTERNAL: Returns a vector of all the fields this mapping represents.- Overrides:
getFields
in classDatabaseMapping
- Returns:
- TODO
-
collectFields
Description copied from class:DatabaseMapping
This method must be overwritten in the subclasses to return a vector of all the fields this mapping represents.- Overrides:
collectFields
in classDatabaseMapping
- Returns:
- TODO
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
getFieldToClassMappings
-
initialize
Description copied from class:DatabaseMapping
INTERNAL: Allow for initialization of properties and validation.- Overrides:
initialize
in classDatabaseMapping
- Throws:
DescriptorException
-
getClassToFieldMappings
-
getChoiceElementMappings
-
getContainerPolicy
Description copied from class:DatabaseMapping
INTERNAL: Return the mapping's containerPolicy.- Specified by:
getContainerPolicy
in interfaceMapping<AbstractSession,
AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> - Overrides:
getContainerPolicy
in classDatabaseMapping
- Returns:
- TODO
-
setContainerPolicy
-
useCollectionClass
-
useCollectionClassName
-
convertClassNamesToClasses
Description copied from class:DatabaseMapping
INTERNAL: Convert all the class-name-based settings in this mapping to actual class-based settings This method is implemented by subclasses as necessary.- Specified by:
convertClassNamesToClasses
in interfaceMapping<AbstractSession,
AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> - Specified by:
convertClassNamesToClasses
in interfaceXMLMapping
- Overrides:
convertClassNamesToClasses
in classDatabaseMapping
- Parameters:
classLoader
- TODO
-
addConverter
-
getConverter
-
getChoiceFieldToClassAssociations
-
setChoiceFieldToClassAssociations
-
isWriteOnly
public boolean isWriteOnly()Description copied from class:DatabaseMapping
INTERNAL: Some mappings support no attribute (transformation and multitenant primary key).- Specified by:
isWriteOnly
in interfaceXMLMapping
- Overrides:
isWriteOnly
in classDatabaseMapping
- Returns:
- TODO
-
setIsWriteOnly
public void setIsWriteOnly(boolean b) - Specified by:
setIsWriteOnly
in interfaceChoiceCollectionMapping<AbstractSession,
AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, XMLUnmarshaller, XMLField, XMLMapping, XMLRecord> - Specified by:
setIsWriteOnly
in interfaceXMLMapping
-
isAny
public boolean isAny() -
setIsAny
public void setIsAny(boolean b) -
preInitialize
Description copied from class:DatabaseMapping
INTERNAL: Allow for initialization of properties and validation.- Overrides:
preInitialize
in classDatabaseMapping
- Throws:
DescriptorException
-
setAttributeValueInObject
Description copied from class:DatabaseMapping
INTERNAL: Set the value of the attribute mapped by this mapping.- Specified by:
setAttributeValueInObject
in interfaceMapping<AbstractSession,
AttributeAccessor, ContainerPolicy, ClassDescriptor, DatabaseField, XMLRecord> - Overrides:
setAttributeValueInObject
in classDatabaseMapping
- Parameters:
object
- TODOvalue
- TODO- Throws:
DescriptorException
-
getReuseContainer
public boolean getReuseContainer()Return true if the original container on the object should be used if present. If it is not present then the container policy will be used to create the container.- Specified by:
getReuseContainer
in interfaceXMLContainerMapping
-
setReuseContainer
public void setReuseContainer(boolean reuseContainer) Specify whether the original container on the object should be used if present. If it is not present then the container policy will be used to create the container.- Specified by:
setReuseContainer
in interfaceXMLContainerMapping
-
getClassToSourceFieldsMappings
-
getClassNameToFieldMappings
-
isMixedContent
public boolean isMixedContent() -
setMixedContent
PUBLIC: Allows the user to indicate that this mapping should also allow for mixed content in addition to any of the elements in the choice. The grouping element parameter is used in the case that there is a common grouping element to all the other elements in this choice. If so, that grouping element can be specified here to allow the mixed content to be written/detected inside the wrapper element.- Specified by:
setMixedContent
in interfaceChoiceCollectionMapping<AbstractSession,
AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, XMLUnmarshaller, XMLField, XMLMapping, XMLRecord> - Since:
- EclipseLink 2.3.1
-
setMixedContent
public void setMixedContent(boolean mixed) PUBLIC: Allows the user to indicate that this mapping should also allow for mixed content in addition to any of the elements in the choice.- Specified by:
setMixedContent
in interfaceChoiceCollectionMapping<AbstractSession,
AttributeAccessor, ContainerPolicy, Converter, ClassDescriptor, DatabaseField, XMLMarshaller, Session, XMLUnmarshaller, XMLField, XMLMapping, XMLRecord> - Since:
- EclipseLink 2.3.1
-
getMixedContentMapping
-
getAnyMapping
-
isDefaultEmptyContainer
public boolean isDefaultEmptyContainer()INTERNAL Return true if an empty container should be set on the object if there is no presence of the collection in the XML document.- Specified by:
isDefaultEmptyContainer
in interfaceXMLContainerMapping
- Since:
- EclipseLink 2.3.3
-
setDefaultEmptyContainer
public void setDefaultEmptyContainer(boolean defaultEmptyContainer) INTERNAL Indicate whether by default an empty container should be set on the field/property if the collection is not present in the XML document.- Specified by:
setDefaultEmptyContainer
in interfaceXMLContainerMapping
- Since:
- EclipseLink 2.3.3
-
getWrapperNullPolicy
Description copied from interface:XMLContainerMapping
Get the Wrapper NullPolicy from the Mapping.- Specified by:
getWrapperNullPolicy
in interfaceXMLContainerMapping
-
setWrapperNullPolicy
Description copied from interface:XMLContainerMapping
Set the Wrapper NullPolicy on the Mapping.- Specified by:
setWrapperNullPolicy
in interfaceXMLContainerMapping
-
getChoiceElementMappingsByClass
-
setChoiceElementMappingsByClass
-
convertObjectValueToDataValue
public Object convertObjectValueToDataValue(Object value, Session session, XMLMarshaller marshaller) INTERNAL- Specified by:
convertObjectValueToDataValue
in interfaceXMLConverterMapping<XMLMarshaller,
Session, XMLUnmarshaller> - Since:
- EclipseLink 2.5.0
-
convertDataValueToObjectValue
public Object convertDataValueToObjectValue(Object fieldValue, Session session, XMLUnmarshaller unmarshaller) INTERNAL- Specified by:
convertDataValueToObjectValue
in interfaceXMLConverterMapping<XMLMarshaller,
Session, XMLUnmarshaller> - Since:
- EclipseLink 2.5.0
-