java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata
Direct Known Subclasses:
NamedNativeQueryMetadata

public class NamedQueryMetadata extends ORMetadata
INTERNAL: Object to hold onto a named query metadata.

Key notes: - any metadata mapped from XML to this class must be compared in the equals method. - all metadata mapped from XML should 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

    • NamedQueryMetadata

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

      public NamedQueryMetadata(MetadataAnnotation namedQuery, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
    • NamedQueryMetadata

      protected NamedQueryMetadata(String xmlElement)
      INTERNAL: Used for XML loading.
  • Method Details