Interface BinaryDataMapping<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>

    • Method Detail

      • getMimeType

        String getMimeType()
        INTERNAL
      • getXPath

        String getXPath()
        Get the XPath String
        Returns:
        String the XPath String associated with this Mapping
      • isSwaRef

        boolean isSwaRef()
      • setAttributeClassification

        void setAttributeClassification​(Class attributeClassification)
        Some databases do not properly support all of the base data types. For these databases, the base data type must be explicitly specified in the mapping to tell EclipseLink to force the instance variable value to that data type
      • setAttributeClassificationName

        void setAttributeClassificationName​(String attributeClassificationName)
        INTERNAL: Set the name of the class for MW usage.
      • 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.
      • 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)
      • setMimeType

        void setMimeType​(String mimeTypeString)
        Force mapping to set default FixedMimeTypePolicy using the MimeType string as argument
        Parameters:
        mimeTypeString -
      • 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)
      • setXPath

        void setXPath​(String xpathString)
        Set the Mapping field name attribute to the given XPath String
        Parameters:
        xpathString - String
      • shouldInlineBinaryData

        boolean shouldInlineBinaryData()