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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class
getAttributeElementClass()
String
getMimeType()
INTERNALString
getMimeType(Object object)
MIME_TYPE_POLICY
getMimeTypePolicy()
AbstractNullPolicy
getNullPolicy()
boolean
isSwaRef()
boolean
isWriteOnly()
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
setField(FIELD theField)
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
shouldInlineBinaryData()
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 Detail
-
getAttributeElementClass
Class getAttributeElementClass()
-
getMimeType
String getMimeType()
INTERNAL
-
getMimeTypePolicy
MIME_TYPE_POLICY getMimeTypePolicy()
-
getNullPolicy
AbstractNullPolicy getNullPolicy()
-
isSwaRef
boolean isSwaRef()
-
isWriteOnly
boolean isWriteOnly()
-
setAttributeElementClass
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. This is optional - if left null, the elements will be added to the object's collection unconverted.
-
setField
void setField(FIELD theField)
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
void setMimeTypePolicy(MIME_TYPE_POLICY aPolicy)
Allow implementer to set the MimeTypePolicy class FixedMimeTypePolicy or AttributeMimeTypePolicy (dynamic)- Parameters:
aPolicy
- MimeTypePolicy
-
setNullPolicy
void setNullPolicy(AbstractNullPolicy aNullPolicy)
Set the AbstractNullPolicy on the mapping
The default policy is NullPolicy.- Parameters:
aNullPolicy
-
-
setShouldInlineBinaryData
void setShouldInlineBinaryData(boolean b)
-
setSwaRef
void setSwaRef(boolean swaRef)
-
setValueConverter
void setValueConverter(CONVERTER valueConverter)
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
void useCollectionClassName(String concreteContainerClassName)
-
-