Module org.eclipse.persistence.core
Interface ChoiceObjectMapping<ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,ABSTRACT_SESSION extends CoreAbstractSession,CONTAINER_POLICY extends CoreContainerPolicy,CONVERTER extends CoreConverter,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,MARSHALLER extends Marshaller,SESSION extends CoreSession,UNMARSHALLER extends Unmarshaller,XML_FIELD extends Field,XML_MAPPING extends Mapping,XML_RECORD extends XMLRecord>
- All Superinterfaces:
Mapping<ABSTRACT_SESSION,
,ATTRIBUTE_ACCESSOR, CONTAINER_POLICY, DESCRIPTOR, FIELD, XML_RECORD> XMLConverterMapping<MARSHALLER,
SESSION, UNMARSHALLER>
- All Known Implementing Classes:
XMLChoiceObjectMapping
public interface ChoiceObjectMapping<ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,ABSTRACT_SESSION extends CoreAbstractSession,CONTAINER_POLICY extends CoreContainerPolicy,CONVERTER extends CoreConverter,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,MARSHALLER extends Marshaller,SESSION extends CoreSession,UNMARSHALLER extends Unmarshaller,XML_FIELD extends Field,XML_MAPPING extends Mapping,XML_RECORD extends XMLRecord>
extends Mapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,XML_RECORD>, XMLConverterMapping<MARSHALLER,SESSION,UNMARSHALLER>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChoiceElement
(String srcXpath, String elementTypeName, String tgtXpath) void
void
addChoiceElement
(XML_FIELD field, String elementTypeName) void
addConverter
(XML_FIELD field, CONVERTER converter) Map
<Class<?>, XML_MAPPING> getConverter
(XML_FIELD field) getFieldValue
(Object object, CoreAbstractSession session, AbstractMarshalRecord marshalRecord) void
setConverter
(CONVERTER converter) Set the converter on the mapping.void
setIsWriteOnly
(boolean b) Methods inherited from interface org.eclipse.persistence.internal.oxm.mappings.Mapping
convertClassNamesToClasses, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDescriptor, getField, getReferenceDescriptor, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isCollectionMapping, isReadOnly, isReferenceMapping, isTransformationMapping, setAttributeAccessor, setAttributeName, setAttributeValueInObject, setGetMethodName, setIsReadOnly, setProperties, setSetMethodName, writeSingleValue
Methods inherited from interface org.eclipse.persistence.internal.oxm.mappings.XMLConverterMapping
convertDataValueToObjectValue, convertObjectValueToDataValue
-
Method Details
-
addChoiceElement
-
addChoiceElement
-
addChoiceElement
-
addConverter
-
getChoiceElementMappings
Map<XML_FIELD,XML_MAPPING> getChoiceElementMappings() -
getChoiceElementMappingsByClass
Map<Class<?>,XML_MAPPING> getChoiceElementMappingsByClass() -
getChoiceFieldToClassAssociations
List<XMLChoiceFieldToClassAssociation> getChoiceFieldToClassAssociations() -
getClassNameToFieldMappings
-
getClassToFieldMappings
-
getClassToSourceFieldsMappings
-
getConverter
CONVERTER getConverter() -
getConverter
-
getFields
-
getFieldToClassMappings
-
getFieldValue
Object getFieldValue(Object object, CoreAbstractSession session, AbstractMarshalRecord marshalRecord) -
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. -
setIsWriteOnly
void setIsWriteOnly(boolean b)
-