Module org.eclipse.persistence.core
Interface BinaryDataCollectionMapping<ABSTRACT_SESSION extends CoreAbstractSession,ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,CONTAINER_POLICY extends CoreContainerPolicy,CONVERTER extends CoreConverter,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,MARSHALLER extends Marshaller,MIME_TYPE_POLICY extends MimeTypePolicy,SESSION extends CoreSession,UNMARSHALLER extends Unmarshaller,XML_RECORD extends XMLRecord>
- All Superinterfaces:
Mapping<ABSTRACT_SESSION,
,ATTRIBUTE_ACCESSOR, CONTAINER_POLICY, DESCRIPTOR, FIELD, XML_RECORD> XMLContainerMapping
,XMLConverterMapping<MARSHALLER,
SESSION, UNMARSHALLER>
- All Known Implementing Classes:
XMLBinaryDataCollectionMapping
public interface BinaryDataCollectionMapping<ABSTRACT_SESSION extends CoreAbstractSession,ATTRIBUTE_ACCESSOR extends CoreAttributeAccessor,CONTAINER_POLICY extends CoreContainerPolicy,CONVERTER extends CoreConverter,DESCRIPTOR extends CoreDescriptor,FIELD extends CoreField,MARSHALLER extends Marshaller,MIME_TYPE_POLICY extends MimeTypePolicy,SESSION extends CoreSession,UNMARSHALLER extends Unmarshaller,XML_RECORD extends XMLRecord>
extends Mapping<ABSTRACT_SESSION,ATTRIBUTE_ACCESSOR,CONTAINER_POLICY,DESCRIPTOR,FIELD,XML_RECORD>, XMLContainerMapping, XMLConverterMapping<MARSHALLER,SESSION,UNMARSHALLER>
-
Field Summary
Fields inherited from interface org.eclipse.persistence.internal.oxm.mappings.XMLContainerMapping
EMPTY_CONTAINER_DEFAULT
-
Method Summary
Modifier and TypeMethodDescriptionClass
<?> INTERNALgetMimeType
(Object object) boolean
isSwaRef()
boolean
void
setAttributeElementClass
(Class<?> attributeElementClass) Set the class each element in the object's collection should be converted to, before the collection is inserted into the object.void
ADVANCED: Set the field in the mapping.void
setIsWriteOnly
(boolean b) void
setMimeTypePolicy
(MIME_TYPE_POLICY aPolicy) Allow implementer to set the MimeTypePolicy class FixedMimeTypePolicy or AttributeMimeTypePolicy (dynamic)void
setNullPolicy
(AbstractNullPolicy aNullPolicy) Set the AbstractNullPolicy on the mapping
The default policy is NullPolicy.void
setShouldInlineBinaryData
(boolean b) void
setSwaRef
(boolean swaRef) void
setValueConverter
(CONVERTER valueConverter) Set the converter on the mapping.boolean
void
useCollectionClassName
(String concreteContainerClassName) 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.XMLContainerMapping
getReuseContainer, getWrapperNullPolicy, isDefaultEmptyContainer, setDefaultEmptyContainer, setReuseContainer, setWrapperNullPolicy
Methods inherited from interface org.eclipse.persistence.internal.oxm.mappings.XMLConverterMapping
convertDataValueToObjectValue, convertObjectValueToDataValue
-
Method Details
-
getAttributeElementClass
Class<?> getAttributeElementClass() -
getMimeType
String getMimeType()INTERNAL -
getMimeType
-
getMimeTypePolicy
MIME_TYPE_POLICY getMimeTypePolicy() -
getNullPolicy
AbstractNullPolicy getNullPolicy() -
isSwaRef
boolean isSwaRef() -
isWriteOnly
boolean isWriteOnly() -
setAttributeElementClass
Set the class each element in the object's collection should be converted to, before the collection is inserted into the object. This is optional - if left null, the elements will be added to the object's collection unconverted. -
setField
ADVANCED: Set the field in the mapping. This can be used for advanced field types, such as XML nodes, or to set the field type. -
setIsWriteOnly
void setIsWriteOnly(boolean b) -
setMimeTypePolicy
Allow implementer to set the MimeTypePolicy class FixedMimeTypePolicy or AttributeMimeTypePolicy (dynamic)- Parameters:
aPolicy
- MimeTypePolicy
-
setNullPolicy
Set the AbstractNullPolicy on the mapping
The default policy is NullPolicy. -
setShouldInlineBinaryData
void setShouldInlineBinaryData(boolean b) -
setSwaRef
void setSwaRef(boolean swaRef) -
setValueConverter
Set the converter on the mapping. A converter can be used to convert between the direct collection's object value and database value. -
shouldInlineBinaryData
boolean shouldInlineBinaryData() -
useCollectionClassName
-