Module org.eclipse.persistence.jpa
Class NamedNativeQueryMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata
org.eclipse.persistence.internal.jpa.metadata.queries.NamedNativeQueryMetadata
- Direct Known Subclasses:
NamedPLSQLStoredProcedureQueryMetadata
,NamedStoredProcedureQueryMetadata
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
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ModifierConstructorDescriptionINTERNAL: Used for XML loading.protected
NamedNativeQueryMetadata
(String javaClassName) INTERNAL:NamedNativeQueryMetadata
(MetadataAnnotation namedNativeQuery, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionboolean
INTERNAL:INTERNAL:INTERNAL: Used for OX mapping.INTERNAL: Used for OX mapping.int
hashCode()
protected boolean
hasResultSetMapping
(AbstractSession session) INTERNAL: Return true is a result set mapping has been specified.void
initXMLObject
(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:void
process
(AbstractSession session) INTERNAL:void
setResultClass
(MetadataClass resultClass) INTERNAL:void
setResultClassName
(String resultClassName) INTERNAL: Used for OX mapping.void
setResultSetMapping
(String resultSetMapping) INTERNAL: Used for OX mapping.Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata
addJPAQuery, getHints, getIdentifier, getLockMode, getName, getQuery, processQueryHints, setHints, setLockMode, setName, setQuery
Methods inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
NamedNativeQueryMetadata
public NamedNativeQueryMetadata()INTERNAL: Used for XML loading. -
NamedNativeQueryMetadata
INTERNAL: Used for annotation loading. -
NamedNativeQueryMetadata
INTERNAL:
-
-
Method Details
-
equals
INTERNAL:- Overrides:
equals
in classNamedQueryMetadata
-
hashCode
public int hashCode()- Overrides:
hashCode
in classNamedQueryMetadata
-
getResultClass
INTERNAL: -
getResultClassName
INTERNAL: Used for OX mapping. -
getResultSetMapping
INTERNAL: Used for OX mapping. -
hasResultSetMapping
INTERNAL: Return true is a result set mapping has been specified. -
initXMLObject
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings) INTERNAL:- Overrides:
initXMLObject
in classORMetadata
-
process
INTERNAL:- Overrides:
process
in classNamedQueryMetadata
-
setResultClass
INTERNAL: -
setResultClassName
INTERNAL: Used for OX mapping. -
setResultSetMapping
INTERNAL: Used for OX mapping.
-