Module org.eclipse.persistence.jpa
Class NamedQueryMetadata
java.lang.Object
org.eclipse.persistence.internal.jpa.metadata.ORMetadata
org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata
- Direct Known Subclasses:
NamedNativeQueryMetadata
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
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.metadata.ORMetadata
m_project
-
Constructor Summary
ModifierConstructorDescriptionINTERNAL: Used for XML loading.protected
NamedQueryMetadata
(String xmlElement) INTERNAL: Used for XML loading.NamedQueryMetadata
(MetadataAnnotation namedQuery, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addJPAQuery
(JPAQuery query, AbstractSession session) INTERNAL: Add the query the session.boolean
INTERNAL:getHints()
INTERNAL: Used for OX mapping.INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.INTERNAL: Used for OX mapping.getName()
INTERNAL: Used for OX mapping.getQuery()
INTERNAL: Used for OX mapping.int
hashCode()
void
process
(AbstractSession session) INTERNAL:processQueryHints
(AbstractSession session) INTERNAL:void
setHints
(List<QueryHintMetadata> hints) INTERNAL: Used for OX mapping.void
setLockMode
(String lockMode) INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.void
INTERNAL: Used for OX mapping.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, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatch
-
Constructor Details
-
NamedQueryMetadata
public NamedQueryMetadata()INTERNAL: Used for XML loading. -
NamedQueryMetadata
INTERNAL: Used for annotation loading. -
NamedQueryMetadata
INTERNAL: Used for XML loading.
-
-
Method Details
-
addJPAQuery
INTERNAL: Add the query the session. Table per tenant queries should not be added to the regular query list as these queries may need to be initialized per EM. -
equals
INTERNAL:- Specified by:
equals
in classORMetadata
-
hashCode
public int hashCode() -
getHints
INTERNAL: Used for OX mapping. -
getIdentifier
INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.- Overrides:
getIdentifier
in classORMetadata
- See Also:
-
getLockMode
INTERNAL: Used for OX mapping. -
getName
INTERNAL: Used for OX mapping. -
getQuery
INTERNAL: Used for OX mapping. -
process
INTERNAL: -
processQueryHints
INTERNAL: -
setHints
INTERNAL: Used for OX mapping. -
setLockMode
INTERNAL: Used for OX mapping. -
setName
INTERNAL: Used for OX mapping. -
setQuery
INTERNAL: Used for OX mapping.
-