Uses of Interface
jakarta.persistence.Query
Packages that use Query
Package
Description
Defines the core APIs for the management for persistence and
object/relational mapping.
-
Uses of Query in jakarta.persistence
Subinterfaces of Query in jakarta.persistenceModifier and TypeInterfaceDescriptioninterfaceInterface used to control the execution of executable statements.interfaceDeclares operations allowing aStatementorTypedQueryto be obtained when the type of a query or statement has not yet been specified.interfaceInterface used to control execution of a stored procedure query.interfaceTypedQuery<X>Interface used to control the execution of typed queries.Methods in jakarta.persistence that return QueryModifier and TypeMethodDescriptionQueryTimeoutException.getQuery()Returns the query that caused this exception.Query.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Deprecated, for removal: This API element is subject to removal in a future version.Query.setCacheStoreMode(CacheStoreMode cacheStoreMode) Deprecated, for removal: This API element is subject to removal in a future version.<P> QueryQuery.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> QueryQuery.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.Query.setFirstResult(int startPosition) Deprecated, for removal: This API element is subject to removal in a future version.Query.setFlushMode(FlushModeType flushMode) Deprecated.Set a query property or hint.Query.setLockMode(LockModeType lockMode) Deprecated, for removal: This API element is subject to removal in a future version.Query.setMaxResults(int maxResult) Deprecated, for removal: This API element is subject to removal in a future version.Query.setParameter(int position, Object value) Bind an argument value to a positional parameter.Query.setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.Query.setParameter(int position, Date value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.<P> QueryQuery.setParameter(int position, P value, Type<P> type) Bind an argument value to a positional parameter, explicitly specifying the parameter type.<P> QueryQuery.setParameter(int position, P value, Class<P> type) Bind an argument value to a positional parameter, explicitly specifying the parameter type.Query.setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.Query.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.<T> QueryQuery.setParameter(Parameter<T> parameter, T value) Bind an argument to a parameter of this query respresented as aParameterobject.Query.setParameter(String name, Object value) Bind an argument value to a named parameter.Query.setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.Query.setParameter(String name, Date value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.<P> QueryQuery.setParameter(String name, P value, Type<P> type) Bind an argument value to a named parameter, explicitly specifying the parameter type.<P> QueryQuery.setParameter(String name, P value, Class<P> type) Bind an argument value to a named parameter, explicitly specifying the parameter type.Query.setQueryFlushMode(QueryFlushMode flushMode) Set the query flush mode to be used when the query is executed.Query.setTimeout(Timeout timeout) Set the query timeout.Query.setTimeout(Integer timeout) Set the query timeout, in milliseconds.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 theEntityHandler.createNamedQuery(String)orEntityHandler.createNamedStoredProcedureQuery(String)methods.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.
TypedQuery.setCacheRetrieveMode(CacheRetrieveMode)