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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChoiceElement(java.lang.String srcXpath, java.lang.String elementTypeName, java.lang.String tgtXpath)voidaddChoiceElement(java.util.List<XML_FIELD> srcFields, java.lang.String elementTypeName, java.util.List<XML_FIELD> tgtFields)voidaddChoiceElement(XML_FIELD field, java.lang.String elementTypeName)voidaddConverter(XML_FIELD field, CONVERTER converter)java.util.Map<XML_FIELD,XML_MAPPING>getChoiceElementMappings()java.util.Map<java.lang.Class,XML_MAPPING>getChoiceElementMappingsByClass()java.util.List<XMLChoiceFieldToClassAssociation>getChoiceFieldToClassAssociations()java.util.Map<java.lang.String,XML_FIELD>getClassNameToFieldMappings()java.util.Map<java.lang.Class,XML_FIELD>getClassToFieldMappings()java.util.Map<java.lang.Class,java.util.List<XML_FIELD>>getClassToSourceFieldsMappings()CONVERTERgetConverter()CONVERTERgetConverter(XML_FIELD field)java.util.List<FIELD>getFields()java.util.Map<XML_FIELD,java.lang.Class>getFieldToClassMappings()java.lang.ObjectgetFieldValue(java.lang.Object object, CoreAbstractSession session, AbstractMarshalRecord marshalRecord)voidsetConverter(CONVERTER converter)Set the converter on the mapping.voidsetIsWriteOnly(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 Detail
-
addChoiceElement
void addChoiceElement(java.util.List<XML_FIELD> srcFields, java.lang.String elementTypeName, java.util.List<XML_FIELD> tgtFields)
-
addChoiceElement
void addChoiceElement(java.lang.String srcXpath, java.lang.String elementTypeName, java.lang.String tgtXpath)
-
addChoiceElement
void addChoiceElement(XML_FIELD field, java.lang.String elementTypeName)
-
getChoiceElementMappings
java.util.Map<XML_FIELD,XML_MAPPING> getChoiceElementMappings()
-
getChoiceElementMappingsByClass
java.util.Map<java.lang.Class,XML_MAPPING> getChoiceElementMappingsByClass()
-
getChoiceFieldToClassAssociations
java.util.List<XMLChoiceFieldToClassAssociation> getChoiceFieldToClassAssociations()
-
getClassNameToFieldMappings
java.util.Map<java.lang.String,XML_FIELD> getClassNameToFieldMappings()
-
getClassToFieldMappings
java.util.Map<java.lang.Class,XML_FIELD> getClassToFieldMappings()
-
getClassToSourceFieldsMappings
java.util.Map<java.lang.Class,java.util.List<XML_FIELD>> getClassToSourceFieldsMappings()
-
getConverter
CONVERTER getConverter()
-
getFields
java.util.List<FIELD> getFields()
-
getFieldToClassMappings
java.util.Map<XML_FIELD,java.lang.Class> getFieldToClassMappings()
-
getFieldValue
java.lang.Object getFieldValue(java.lang.Object object, CoreAbstractSession session, AbstractMarshalRecord marshalRecord)
-
setConverter
void setConverter(CONVERTER converter)
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)
-
-