Uses of Interface
jakarta.persistence.Query
Packages that use Query
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
Implements and extends the JPA-defined entity graph API.
An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate.Defines support for executing database stored procedures and functions and accessing their outputs.
Defines the internal implementation of the stored procedure SPI.
Defines an SPI for calling stored procedures and functions.
Everything related to HQL/JPQL, native SQL, and criteria queries.
SPIs for HQL support.
Contains a range of internal abstractions for dealing with query execution,
query plans, query options, and query parameters.
Implementation of the SPIs for native SQL query support.
SPIs for native SQL query support.
Package for the SQM-backed Query implementation details
-
Uses of Query in jakarta.persistence
Subinterfaces of Query in jakarta.persistenceModifier and TypeInterfaceDescriptioninterfaceInterface used to control stored procedure query execution.interfaceTypedQuery<X>Interface used to control the execution of typed queries.Methods in jakarta.persistence that return QueryModifier and TypeMethodDescriptionEntityManager.createNamedQuery(String name) Create an instance ofQueryfor executing a named query (in the Jakarta Persistence query language or in native SQL).EntityManager.createNativeQuery(String sqlString) Create an instance ofQueryfor executing a native SQL statement, e.g., for update or delete.EntityManager.createNativeQuery(String sqlString, Class resultClass) Create an instance ofQueryfor executing a native SQL query.EntityManager.createNativeQuery(String sqlString, String resultSetMapping) Create an instance ofQueryfor executing a native SQL query.EntityManager.createQuery(CriteriaDelete deleteQuery) Create an instance ofQueryfor executing a criteria delete query.EntityManager.createQuery(CriteriaUpdate updateQuery) Create an instance ofQueryfor executing a criteria update query.EntityManager.createQuery(String qlString) Create an instance ofQueryfor executing a Jakarta Persistence query language statement.QueryTimeoutException.getQuery()Returns the query that caused this exception.Query.setFirstResult(int startPosition) Set the position of the first result to retrieve.Query.setFlushMode(FlushModeType flushMode) Set the flush mode type to be used for the query execution.Set a query property or hint.Query.setLockMode(LockModeType lockMode) Set the lock mode type to be used for the query execution.Query.setMaxResults(int maxResult) Set the maximum number of results to retrieve.Query.setParameter(int position, Object value) Bind an argument value to a positional parameter.Query.setParameter(int position, Calendar value, TemporalType temporalType) Bind an instance ofjava.util.Calendarto a positional parameter.Query.setParameter(int position, Date value, TemporalType temporalType) Bind an instance ofjava.util.Dateto a positional parameter.Query.setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Bind an instance ofjava.util.Calendarto aParameterobject.Query.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Bind an instance ofjava.util.Dateto aParameterobject.<T> QueryQuery.setParameter(Parameter<T> param, T value) Bind the value of aParameterobject.Query.setParameter(String name, Object value) Bind an argument value to a named parameter.Query.setParameter(String name, Calendar value, TemporalType temporalType) Bind an instance ofjava.util.Calendarto a named parameter.Query.setParameter(String name, Date value, TemporalType temporalType) Bind an instance ofjava.util.Dateto a named parameter.Methods in jakarta.persistence with parameters of type QueryModifier and TypeMethodDescriptionvoidEntityManagerFactory.addNamedQuery(String name, Query query) Define the query, typed query, or stored procedure query as a named query such that future query objects can be created from it using thecreateNamedQueryorcreateNamedStoredProcedureQuerymethod.Constructors in jakarta.persistence with parameters of type QueryModifierConstructorDescriptionQueryTimeoutException(Query query) Constructs a newQueryTimeoutExceptionexception with the specified query.QueryTimeoutException(String message, Throwable cause, Query query) Constructs a newQueryTimeoutExceptionexception with the specified detail message, cause, and query. -
Uses of Query in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi with parameters of type QueryModifier and TypeMethodDescriptionvoidSessionFactoryDelegatingImpl.addNamedQuery(String name, Query query) -
Uses of Query in org.hibernate.graph
Methods in org.hibernate.graph with parameters of type QueryModifier and TypeMethodDescriptionstatic ListEntityGraphs.executeList(Query query, EntityGraph graph) Convenience method for executing the query using the givenEntityGraph.static ListEntityGraphs.executeList(Query query, EntityGraph graph, String semanticJpaHintName) Convenience method for executing the query, applying the givenEntityGraphusing the named semantic using JPA's "hint name".static ListEntityGraphs.executeList(Query query, EntityGraph graph, GraphSemantic semantic) Convenience method for executing the query, applying the givenEntityGraphusing the specified semantic -
Uses of Query in org.hibernate.internal
Methods in org.hibernate.internal with parameters of type QueryModifier and TypeMethodDescriptionvoidSessionFactoryImpl.addNamedQuery(String name, Query query) -
Uses of Query in org.hibernate.procedure
Subinterfaces of Query in org.hibernate.procedureModifier and TypeInterfaceDescriptioninterfaceDefines support for executing database stored procedures and functions. -
Uses of Query in org.hibernate.procedure.internal
Classes in org.hibernate.procedure.internal that implement Query -
Uses of Query in org.hibernate.procedure.spi
Subinterfaces of Query in org.hibernate.procedure.spi -
Uses of Query in org.hibernate.query
Subinterfaces of Query in org.hibernate.queryModifier and TypeInterfaceDescriptioninterfaceNativeQuery<T>Within the context of an active session, an instance of this type represents an executable query written in the native SQL dialect of the underlying database.interfaceQuery<R>Within the context of an active session, an instance of this type represents an executable query, either: a query written in HQL, a named query written in HQL or native SQL, or a criteria query. -
Uses of Query in org.hibernate.query.hql.spi
Subinterfaces of Query in org.hibernate.query.hql.spiModifier and TypeInterfaceDescriptioninterfaceQueryImplementorspecialization for SQM-based Query references -
Uses of Query in org.hibernate.query.spi
Subinterfaces of Query in org.hibernate.query.spiClasses in org.hibernate.query.spi that implement Query -
Uses of Query in org.hibernate.query.sql.internal
Classes in org.hibernate.query.sql.internal that implement Query -
Uses of Query in org.hibernate.query.sql.spi
Subinterfaces of Query in org.hibernate.query.sql.spi -
Uses of Query in org.hibernate.query.sqm.internal
Classes in org.hibernate.query.sqm.internal that implement Query -
Uses of Query in org.hibernate.search.mapper.orm.search.query.impl
Classes in org.hibernate.search.mapper.orm.search.query.impl that implement Query