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

public class FieldResultMetadata extends ORMetadata
INTERNAL: Object to hold onto an field result metadata. Key notes: - all 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:
TopLink EJB 3.0 Reference Implementation
  • Constructor Details

    • FieldResultMetadata

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

      public FieldResultMetadata(MetadataAnnotation fieldResult, 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
    • getColumn

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

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

      public FieldResult process()
      INTERNAL: NOTE: Both the name and column are required in XML and annotations so that makes processing easier (no need for defaults).
    • setColumn

      public void setColumn(String column)
      INTERNAL: Used for OX mapping.
    • setName

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