Uses of Interface
jakarta.persistence.TypedQuery
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
-
Uses of TypedQuery in jakarta.persistence
Modifier and TypeMethodDescription<T> TypedQuery
<T> EntityManager.createNamedQuery
(String name, Class<T> resultClass) Create an instance ofTypedQuery
for executing a Jakarta Persistence query language named query.<T> TypedQuery
<T> EntityManager.createQuery
(CriteriaQuery<T> criteriaQuery) Create an instance ofTypedQuery
for executing a criteria query.<T> TypedQuery
<T> EntityManager.createQuery
(CriteriaSelect<T> selectQuery) Create an instance ofTypedQuery
for executing a criteria query, which may be a union or intersection of top-level queries.<T> TypedQuery
<T> EntityManager.createQuery
(TypedQueryReference<T> reference) Create an instance ofTypedQuery
for executing a named query written in the Jakarta Persistence query language or in native SQL.<T> TypedQuery
<T> EntityManager.createQuery
(String qlString, Class<T> resultClass) Create an instance ofTypedQuery
for executing a Jakarta Persistence query language statement.TypedQuery.setCacheRetrieveMode
(CacheRetrieveMode cacheRetrieveMode) Set the cache retrieval mode that is in effect during query execution.TypedQuery.setCacheStoreMode
(CacheStoreMode cacheStoreMode) Set the cache storage mode that is in effect during query execution.TypedQuery.setFirstResult
(int startPosition) Set the position of the first result to retrieve.TypedQuery.setFlushMode
(FlushModeType flushMode) Set the flush mode type to be used for the query execution.Set a query property or hint.TypedQuery.setLockMode
(LockModeType lockMode) Set the lock mode type to be used for the query execution.TypedQuery.setMaxResults
(int maxResult) Set the maximum number of results to retrieve.TypedQuery.setParameter
(int position, Object value) Bind an argument value to a positional parameter.TypedQuery.setParameter
(int position, Calendar value, TemporalType temporalType) Deprecated.TypedQuery.setParameter
(int position, Date value, TemporalType temporalType) Deprecated.Newly-written code should use the date/time types defined injava.time
.TypedQuery.setParameter
(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.Newly-written code should use the date/time types defined injava.time
.TypedQuery.setParameter
(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.Newly-written code should use the date/time types defined injava.time
.<T> TypedQuery
<X> TypedQuery.setParameter
(Parameter<T> param, T value) Bind the value of aParameter
object.TypedQuery.setParameter
(String name, Object value) Bind an argument value to a named parameter.TypedQuery.setParameter
(String name, Calendar value, TemporalType temporalType) Deprecated.Newly-written code should use the date/time types defined injava.time
.TypedQuery.setParameter
(String name, Date value, TemporalType temporalType) Deprecated.Newly-written code should use the date/time types defined injava.time
.TypedQuery.setTimeout
(Integer timeout) Set the query timeout, in milliseconds.
java.time
.