Uses of Interface
jakarta.persistence.Query
-
Uses of Query in jakarta.persistence
Subinterfaces of Query in jakarta.persistenceModifier and TypeInterfaceDescriptioninterfaceInterface used to control stored procedure query execution.Methods in jakarta.persistence that return QueryModifier and TypeMethodDescriptionQueryTimeoutException.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 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 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.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.