Uses of Interface
org.hibernate.query.Query
Packages that use Query
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session and StatelessSession,
the most important APIs exposing persistence-related operations for
entities.This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
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
Methods in org.hibernate that return QueryModifier and TypeMethodDescriptionSession.createNamedQuery(String name) Deprecated.SharedSessionContract.createNamedQuery(String s) Session.createQuery(String queryString) Deprecated.SharedSessionContract.createQuery(String queryString) Deprecated. -
Uses of Query in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return QueryModifier and TypeMethodDescriptionSessionLazyDelegator.createNamedQuery(String name) Deprecated.SessionLazyDelegator.createQuery(String queryString) Deprecated. -
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 TypeInterfaceDescriptioninterfaceNativeQuery<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.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.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.setFollowOnLockingStrategy(Locking.FollowOn strategy) Deprecated.Use SelectionQuery instead as locking is only relevant for queries which return results.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 are only relevant for queries which return results.Set a hint.Query.setLockMode(LockModeType lockMode) Deprecated.Use SelectionQuery instead as locking are only relevant for queries which return results.Query.setLockScope(PessimisticLockScope lockScope) Deprecated.Use SelectionQuery instead as locking is only relevant for queries which return results.Query.setLockTimeout(Timeout lockTimeout) 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.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) Query.setQueryPlanCacheable(boolean queryPlanCacheable) Enable/disable Queryplan caching for this query, if available. Query.setReadOnly(boolean readOnly) Set the read-only/modifiable mode for entities and proxies loaded by thisQuery.Query.setResultListTransformer(ResultListTransformer<T> transformer) Set aResultListTransformer.Query.setTimeout(int timeout) Apply a timeout to the corresponding database query.Query.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.Query.setTimeout(Integer timeout) Apply a timeout to the corresponding database query.<X> Query<X> Query.setTupleTransformer(TupleTransformer<X> transformer) Set aTupleTransformer. -
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
SharedSessionContract.createQuery(String, Class)which takes a result type is strongly recommended in preference to this method, since it returns a typedQueryobject, and because it is able to use the given result type to infer theselectlist, and even sometimes thefromclause.