Class ConverterAccessor


  • public class ConverterAccessor
    extends ORMetadata
    Object to represent a converter class. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - any metadata mapped from XML to this class must be handled in the merge method. (merging is done at the accessor/mapping level) - any metadata mapped from XML to this class must be initialized in the initXMLObject method. - methods should be preserved in alphabetical order.
    Since:
    EclipseLink 2.5
    Author:
    Guy Pelletier
    • Field Detail

      • className

        protected java.lang.String className
      • autoApply

        protected java.lang.Boolean autoApply
      • attributeClassification

        protected MetadataClass attributeClassification
      • fieldClassification

        protected MetadataClass fieldClassification
    • Method Detail

      • autoApply

        public boolean autoApply()
        INTERNAL: Return true if this converter should auto apply
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        INTERNAL: Used for metadata merging.
        Specified by:
        equals in class ORMetadata
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getAutoApply

        public java.lang.Boolean getAutoApply()
        INTERNAL: Used for OX mapping.
      • getAttributeClassification

        public MetadataClass getAttributeClassification()
        INTERNAL: Return the type this converter will auto apply to.
      • getClassName

        public java.lang.String getClassName()
        INTERNAL: Used for OX mapping.
      • getJavaClassName

        public java.lang.String getJavaClassName()
        INTERNAL:
      • initClassificationClasses

        protected void initClassificationClasses​(MetadataClass cls)
        INTERNAL: Do some validation and initialize the attribute converter classficiation classes.
      • merge

        public void merge​(ORMetadata metadata)
        INTERNAL: Entity level merging details.
        Overrides:
        merge in class ORMetadata
      • process

        public void process​(org.eclipse.persistence.mappings.DatabaseMapping mapping,
                            boolean isForMapKey,
                            java.lang.String attributeName)
        INTERNAL: Process this converter for the given mapping.
      • process

        public void process​(org.eclipse.persistence.mappings.DatabaseMapping mapping,
                            boolean isForMapKey,
                            java.lang.String attributeName,
                            boolean disableConversion)
        INTERNAL: Process this converter for the given mapping.
      • setAutoApply

        public void setAutoApply​(java.lang.Boolean autoApply)
        INTERNAL: Used for OX mapping.
      • setClassName

        public void setClassName​(java.lang.String className)
        INTERNAL: Used for OX mapping.