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
ConstructorsModifierConstructorDescriptionINTERNAL: Used for XML loading.protectedNamedQueryMetadata(String xmlElement) INTERNAL: Used for XML loading.NamedQueryMetadata(MetadataAnnotation namedQuery, MetadataAccessor accessor) INTERNAL: Used for annotation loading. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddJPAQuery(JPAQuery query, AbstractSession session) INTERNAL: Add the query the session.booleanINTERNAL: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.inthashCode()voidprocess(AbstractSession session) INTERNAL:processQueryHints(AbstractSession session) INTERNAL:voidsetHints(List<QueryHintMetadata> hints) INTERNAL: Used for OX mapping.voidsetLockMode(String lockMode) INTERNAL: Used for OX mapping.voidINTERNAL: Used for OX mapping.voidINTERNAL: 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:
equalsin classORMetadata
-
hashCode
public int hashCode() -
getHints
INTERNAL: Used for OX mapping. -
getIdentifier
INTERNAL: To satisfy the abstract getIdentifier() method from ORMetadata.- Overrides:
getIdentifierin 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.
-