Package org.hibernate.boot.query
Interface NamedQueryDefinition<E>
- All Superinterfaces:
TypedQueryReference<E>
- All Known Subinterfaces:
NamedHqlQueryDefinition<E>,NamedNativeQueryDefinition<E>,NamedProcedureCallDefinition
- All Known Implementing Classes:
AbstractNamedQueryDefinition,NamedHqlQueryDefinitionImpl,NamedNativeQueryDefinitionImpl,NamedProcedureCallDefinitionImpl
Common attributes shared across the mapping of named HQL, native
and "callable" queries defined in annotations, orm.xml and hbm.xml
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringThe location at which the defining named query annotation occurs, usually a class or package name.default StringgetName()The name under which the query is to be registered.The expected result type of the query, ornull.resolve(SessionFactoryImplementor factory) Resolve the mapping definition into its run-time memento form.Methods inherited from interface jakarta.persistence.TypedQueryReference
getHints
-
Method Details
-
getName
- Specified by:
getNamein interfaceTypedQueryReference<E>
-
getRegistrationName
String getRegistrationName()The name under which the query is to be registered. -
getResultType
The expected result type of the query, ornull.- Specified by:
getResultTypein interfaceTypedQueryReference<E>
-
resolve
Resolve the mapping definition into its run-time memento form. -
getLocation
@Nullable String getLocation()The location at which the defining named query annotation occurs, usually a class or package name. Null for named queries declared in XML.
-