java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.accessors.classes.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
  • Field Details

    • className

      protected String className
    • autoApply

      protected Boolean autoApply
    • attributeClassification

      protected MetadataClass attributeClassification
    • fieldClassification

      protected MetadataClass fieldClassification
  • Constructor Details

  • Method Details

    • autoApply

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

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

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

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

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

      public String getClassName()
      INTERNAL: Used for OX mapping.
    • getIdentifier

      public String getIdentifier()
      INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.
      Overrides:
      getIdentifier in class ORMetadata
      See Also:
    • getJavaClassName

      public String getJavaClassName()
      INTERNAL:
    • initClassificationClasses

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

      public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
      INTERNAL: Any subclass that cares to do any more initialization (e.g. initialize a class) should override this method.
      Overrides:
      initXMLObject in class ORMetadata
    • merge

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

      public void process(DatabaseMapping mapping, boolean isForMapKey, String attributeName)
      INTERNAL: Process this converter for the given mapping.
    • process

      public void process(DatabaseMapping mapping, boolean isForMapKey, String attributeName, boolean disableConversion)
      INTERNAL: Process this converter for the given mapping.
    • setAutoApply

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

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