Direct Known Subclasses:
NamedPLSQLStoredProcedureQueryMetadata, NamedStoredProcedureQueryMetadata

public class NamedNativeQueryMetadata extends NamedQueryMetadata
INTERNAL: Object to hold onto named native 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

    • NamedNativeQueryMetadata

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

      public NamedNativeQueryMetadata(MetadataAnnotation namedNativeQuery, MetadataAccessor accessor)
      INTERNAL: Used for annotation loading.
    • NamedNativeQueryMetadata

      protected NamedNativeQueryMetadata(String javaClassName)
      INTERNAL:
  • Method Details

    • equals

      public boolean equals(Object objectToCompare)
      INTERNAL:
      Overrides:
      equals in class NamedQueryMetadata
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class NamedQueryMetadata
    • getResultClass

      public MetadataClass getResultClass()
      INTERNAL:
    • getResultClassName

      public String getResultClassName()
      INTERNAL: Used for OX mapping.
    • getResultSetMapping

      public String getResultSetMapping()
      INTERNAL: Used for OX mapping.
    • hasResultSetMapping

      protected boolean hasResultSetMapping(AbstractSession session)
      INTERNAL: Return true is a result set mapping has been specified.
    • initXMLObject

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

      public void process(AbstractSession session)
      INTERNAL:
      Overrides:
      process in class NamedQueryMetadata
    • setResultClass

      public void setResultClass(MetadataClass resultClass)
      INTERNAL:
    • setResultClassName

      public void setResultClassName(String resultClassName)
      INTERNAL: Used for OX mapping.
    • setResultSetMapping

      public void setResultSetMapping(String resultSetMapping)
      INTERNAL: Used for OX mapping.