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

public class QueryHintMetadata extends ORMetadata
INTERNAL: Object to hold onto query hints metadata. Use this object to preserve information like multiples and order of specification. We lose that by using a java hash object directly. Key notes: - any metadata mapped from XML to this class must be compared in the equals 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

    • QueryHintMetadata

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

      public QueryHintMetadata(MetadataAnnotation hint, 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.
    • getValue

      public String getValue()
      INTERNAL: Used for OX mapping.
    • setName

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

      public void setValue(String value)
      INTERNAL: Used for OX mapping.