java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.queries.ColumnResultMetadata

public class ColumnResultMetadata extends ORMetadata
INTERNAL: Object to hold onto a column result metadata. Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - all metadata mapped from XML must be initialized in the initXMLObject method. - when loading from annotations, the constructor accepts the metadata accessor this metadata was loaded from. Used it to look up any 'companion' annotation needed for processing. - methods should be preserved in alphabetical order.
Since:
Eclipselink 2.4
  • Constructor Details

    • ColumnResultMetadata

      public ColumnResultMetadata()
      INTERNAL: Used for XML loading.
    • ColumnResultMetadata

      public ColumnResultMetadata(MetadataAnnotation columnResult, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Specified by:
      equals in class ORMetadata
    • hashCode

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

      public String getName()
      INTERNAL: Used for OX mapping.
    • getType

      public MetadataClass getType()
      INTERNAL:
    • getTypeName

      public String getTypeName()
      INTERNAL: Used for OX mapping.
    • initXMLObject

      public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
      INTERNAL:
      Overrides:
      initXMLObject in class ORMetadata
    • process

      public ColumnResult process()
      INTERNAL: Process the column result for the caller.
    • setName

      public void setName(String name)
      INTERNAL: Used for OX mapping.
    • setType

      public void setType(MetadataClass type)
      INTERNAL:
    • setTypeName

      public void setTypeName(String typeName)
      INTERNAL: Used for OX mapping.