Uses of Interface
org.hibernate.query.Query
Packages that use Query
Package
Description
Defines an SPI for calling stored procedures and functions.
Everything related to HQL/JPQL, native SQL, and criteria queries.
Contains a range of internal abstractions for dealing with query execution,
query plans, query options, and query parameters.
SPIs for native SQL query support.
-
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 TypeInterfaceDescriptioninterfaceUnifiesStatementOrTypedQuerywithQuery, allowing backward compatibility with older versions of Hibernate and JPA which did not carefully distinguish selection queries from insert, update, and delete mutation statements.interfaceNativeQuery<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.interfaceWithin the context of an active session, an instance of this type represents an executable selection query, that is, aselect.Methods in org.hibernate.query that return QueryModifier and TypeMethodDescriptionQuery.addQueryHint(String hint) Add a database query hint to the SQL query.Query.disableFetchProfile(String profileName) Deprecated, for removal: This API element is subject to removal in a future version.Query.enableFetchProfile(String profileName) Deprecated, for removal: This API element is subject to removal in a future version.Query.setCacheable(boolean cacheable) Deprecated, for removal: This API element is subject to removal in a future version.Use SelectionQuery instead as caching is only relevant for selection queriesQuery.setCacheMode(CacheMode cacheMode) Deprecated, for removal: This API element is subject to removal in a future version.Use SelectionQuery instead as caching is only relevant for selection queriesQuery.setCacheRegion(String cacheRegion) Deprecated, for removal: This API element is subject to removal in a future version.Use SelectionQuery instead as caching is only relevant for selection queriesQuery.setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Deprecated.Use SelectionQuery instead as second-level cache interaction is only relevant for queries which return results.Query.setCacheStoreMode(CacheStoreMode cacheStoreMode) Deprecated.Use SelectionQuery instead as second-level cache interaction is only relevant for queries which return results.Query.setComment(String comment) Set the comment for this query.Query.setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) Query.setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) Query.setEntityGraph(EntityGraph<? super T> graph, GraphSemantic semantic) Deprecated, for removal: This API element is subject to removal in a future version.Prefer passing the entity-graph while creating the query - SharedSessionContract.createSelectionQuery(String, EntityGraph)Query.setFetchSize(int fetchSize) Deprecated, for removal: This API element is subject to removal in a future version.Use SelectionQuery instead as fetch size is only relevant for selection queriesQuery.setFirstResult(int startPosition) Deprecated.Use SelectionQuery instead as applying result limits is only relevant for queries which return results.Query.setFlushMode(FlushModeType flushMode) Deprecated.Use Query.setQueryFlushMode(QueryFlushMode) instead.Query.setFollowOnStrategy(Locking.FollowOn strategy) Deprecated.Use SelectionQuery instead as locking is only relevant for queries which return results.Query.setHibernateLockMode(LockMode lockMode) Deprecated.Use SelectionQuery instead as locking is only relevant for queries which return results.Set a hint.Query.setLockMode(LockModeType lockMode) Deprecated.Use SelectionQuery instead as locking is only relevant for queries which return results.Query.setMaxResults(int maxResults) Deprecated.Use SelectionQuery instead as applying result limits is only relevant for queries which return results.Query.setParameter(int parameter, Object argument) Bind the given argument to an ordinal query parameter.Query.setParameter(int parameter, Instant argument, TemporalType temporalType) Deprecated.Query.setParameter(int parameter, Calendar argument, TemporalType temporalType) Deprecated.Query.setParameter(int parameter, Date argument, TemporalType temporalType) Deprecated.Query.setParameter(int parameter, P argument, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.Query.setParameter(int parameter, P argument, Class<P> type) Query.setParameter(Parameter<Calendar> parameter, Calendar argument, TemporalType temporalType) Deprecated.Query.setParameter(Parameter<Date> parameter, Date argument, TemporalType temporalType) Deprecated.Query.setParameter(Parameter<P> parameter, P argument) Query.setParameter(String parameter, Object argument) Bind the given argument to a named query parameter.Query.setParameter(String parameter, Instant argument, TemporalType temporalType) Deprecated.Query.setParameter(String parameter, Calendar argument, TemporalType temporalType) Deprecated.Query.setParameter(String parameter, Date argument, TemporalType temporalType) Deprecated.Query.setParameter(String parameter, P argument, Type<P> type) Bind the given argument to a named query parameter using the givenType.Query.setParameter(String parameter, P argument, Class<P> type) Query.setParameter(QueryParameter<P> parameter, P argument) Bind an argument to the query parameter represented by the givenQueryParameter.Query.setParameter(QueryParameter<P> parameter, P argument, Type<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenType.Query.setParameter(QueryParameter<P> parameter, P argument, Class<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenClassreference to attempt to infer theTypeto use.Query.setParameterList(int parameter, Object[] arguments) Bind multiple arguments to an ordinal query parameter.Query.setParameterList(int parameter, Collection arguments) Bind multiple arguments to an ordinal query parameter.Query.setParameterList(int parameter, Collection<? extends P> arguments, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.Query.setParameterList(int parameter, Collection<? extends P> arguments, Class<P> javaType) Query.setParameterList(int parameter, P[] arguments, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.Query.setParameterList(int parameter, P[] arguments, Class<P> javaType) Query.setParameterList(String parameter, Object[] values) Bind multiple arguments to a named query parameter.Query.setParameterList(String parameter, Collection arguments) Bind multiple arguments to a named query parameter.Query.setParameterList(String parameter, Collection<? extends P> arguments, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.Query.setParameterList(String parameter, Collection<? extends P> arguments, Class<P> javaType) Bind multiple arguments to a named query parameter using the givenClassreference to attempt to infer theTypeIf unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).Query.setParameterList(String parameter, P[] arguments, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.Query.setParameterList(String parameter, P[] arguments, Class<P> javaType) Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theTypeto use.Query.setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments) Bind multiple arguments to the query parameter represented by the givenQueryParameter.Query.setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the givenType.Query.setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use.Query.setParameterList(QueryParameter<P> parameter, P[] arguments) Bind multiple arguments to the query parameter represented by the givenQueryParameter.Query.setParameterList(QueryParameter<P> parameter, P[] arguments, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.Query.setParameterList(QueryParameter<P> parameter, P[] arguments, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use.Query.setParameters(Object... arguments) Query.setProperties(Object bean) Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.Query.setProperties(Map bean) Bind the values of the givenMapto named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.Query.setQueryFlushMode(QueryFlushMode queryFlushMode) Set theQueryFlushModeto use for this query.Query.setQueryPlanCacheable(boolean queryPlanCacheable) Enable or disable query plan caching for this query, if available.Query.setReadOnly(boolean readOnly) Deprecated, for removal: This API element is subject to removal in a future version.Use SelectionQuery instead as read-only mode is only relevant for selection queriesQuery.setResultListTransformer(ResultListTransformer<T> transformer) Deprecated, for removal: This API element is subject to removal in a future version.Use SelectionQuery instead as result list transformation is only relevant for queries which return results.Query.setTimeout(int timeout) Specify a JDBC query timeout to use when executing the query.Query.setTimeout(Timeout timeout) Specify a JDBC query timeout to use when executing the query.Query.setTimeout(Integer timeout) Specify a JDBC query timeout to use when executing the query.<X> Query<X> MutationOrSelectionQuery.setTupleTransformer(TupleTransformer<X> transformer) Deprecated, for removal: This API element is subject to removal in a future version.<X> Query<X> Query.setTupleTransformer(TupleTransformer<X> transformer) Deprecated, for removal: This API element is subject to removal in a future version.Use SelectionQuery instead as tuple transformation is only relevant for queries which return results. -
Uses of Query in org.hibernate.query.spi
Subinterfaces of Query in org.hibernate.query.spiModifier and TypeInterfaceDescriptioninterfaceSPI form of MutationQueryinterfaceinterfaceSPI form of SelectionQuery -
Uses of Query in org.hibernate.query.sql.spi
Subinterfaces of Query in org.hibernate.query.sql.spi