Uses of Interface
jakarta.persistence.TypedQuery
Packages that use TypedQuery
Package
Description
Jakarta Persistence is the API for the management for persistence and object/relational mapping.
-
Uses of TypedQuery in jakarta.persistence
Methods in jakarta.persistence that return TypedQueryModifier and TypeMethodDescription<T> TypedQuery<T> EntityHandler.createNamedQuery(String name, Class<T> resultClass) Create an instance ofTypedQueryfor executing a named query written in the Jakarta Persistence query language or in native SQL, returning instances of the given result class.<T> TypedQuery<T> EntityHandler.createNativeQuery(String sqlString, ResultSetMapping<T> resultSetMapping) Create an instance ofTypedQueryfor executing a native SQL query, using the givenResultSetMappingto interpret the JDBC result set.<T> TypedQuery<T> EntityHandler.createNativeQuery(String sqlString, Class<T> resultClass) Create an instance ofTypedQueryfor executing a native SQL query which produces a result set, returning instances of the given result class.<T> TypedQuery<T> EntityHandler.createQuery(CriteriaQuery<T> criteriaQuery) Create an instance ofTypedQueryfor executing a criteria query.<T> TypedQuery<T> EntityHandler.createQuery(CriteriaSelect<T> selectQuery) Create an instance ofTypedQueryfor executing a criteria select, which may be a union or intersection of top-level queries.<T> TypedQuery<T> EntityHandler.createQuery(TypedQueryReference<T> reference) Create an instance ofTypedQueryfor executing a typed named query written in the Jakarta Persistence query language or in native SQL.<T> TypedQuery<T> EntityHandler.createQuery(String qlString, EntityGraph<T> resultGraph) Create an instance ofTypedQueryfor executing a Jakarta Persistence query languageSELECTstatement, specifying anEntityGraphwhich is interpreted as a load graph.<T> TypedQuery<T> EntityHandler.createQuery(String qlString, Class<T> resultClass) Create an instance ofTypedQueryfor executing a Jakarta Persistence query languageSELECTstatement and returning instances of the given result class.<R> TypedQuery<R> Obtain aTypedQuerywith the given query result type, which must be a supertype of the result type of this query.TypedQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Set the cache retrieval mode in effect during query execution.TypedQuery.setCacheStoreMode(CacheStoreMode cacheStoreMode) Set the cache storage mode in effect during query execution.<P> TypedQuery<X> TypedQuery.setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) Bind an argument value to a named parameter, explicitly specifying an attribute converter to use.<P> TypedQuery<X> TypedQuery.setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) Bind an argument value to a named parameter, explicitly specifying an attribute converter to use.TypedQuery.setEntityGraph(EntityGraph<? super X> entityGraph) Specify anEntityGraphto be applied to the entity returned by the Jakarta Persistence query.TypedQuery.setFirstResult(int startPosition) Set the position of the first query result returned to the client.TypedQuery.setFlushMode(FlushModeType flushMode) Set the flush mode type to be used when the query is executed.Set a query property or hint.TypedQuery.setLockMode(LockModeType lockMode) Set the lock mode type to use when the query is executed.TypedQuery.setLockScope(PessimisticLockScope lockScope) Set the pessimistic lock scope to use when the query is executed if a pessimistic lock mode is specified viaTypedQuery.setLockMode(LockModeType).TypedQuery.setMaxResults(int maxResult) Set the maximum number of results returned to the client.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.<P> TypedQuery<X> TypedQuery.setParameter(int position, P value, Type<P> type) Bind an argument value to a positional parameter, explicitly specifying the parameter type.<P> TypedQuery<X> TypedQuery.setParameter(int position, P value, Class<P> type) Bind an argument value to a positional parameter, explicitly specifying the parameter type.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> parameter, T value) Bind an argument to a parameter of this query respresented as aParameterobject.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.<P> TypedQuery<X> TypedQuery.setParameter(String name, P value, Type<P> type) Bind an argument value to a named parameter, explicitly specifying the parameter type.<P> TypedQuery<X> TypedQuery.setParameter(String name, P value, Class<P> type) Bind an argument value to a named parameter, explicitly specifying the parameter type.TypedQuery.setTimeout(Timeout timeout) Set the query timeout.TypedQuery.setTimeout(Integer timeout) Set the query timeout, in milliseconds.<R> TypedQuery<R> Query.withEntityGraph(EntityGraph<R> graph) Obtain aTypedQuerywith the given entity graph, which must be rooted at a supertype of the result type of this query.Methods in jakarta.persistence with parameters of type TypedQueryModifier and TypeMethodDescription<R> TypedQueryReference<R> EntityManagerFactory.addNamedQuery(String name, TypedQuery<R> query) Define the givenTypedQueryas a named query such that future query objects can be created from it by calling eitherEntityHandler.createQuery(TypedQueryReference)orEntityHandler.createNamedQuery(String,Class).
java.time.