Uses of Interface
org.hibernate.Query

Packages that use Query
org.hibernate This package defines the central Hibernate APIs. 
org.hibernate.ejb   
org.hibernate.engine.spi   
org.hibernate.envers.entities.mapper.id   
org.hibernate.envers.entities.mapper.relation.lazy   
org.hibernate.envers.entities.mapper.relation.query   
org.hibernate.envers.query.impl   
org.hibernate.envers.tools.query   
org.hibernate.internal An internal package containing mostly implementations of central Hibernate APIs of the org.hibernate package. 
org.hibernate.test.legacy   
org.hibernate.test.querycache   
 

Uses of Query in org.hibernate
 

Subinterfaces of Query in org.hibernate
 interface SQLQuery
          Represents a "native sql" query and allows the user to define certain aspects about its execution, such as: result-set value mapping (see below) Tables used via SQLQuery.addSynchronizedQuerySpace(java.lang.String), SQLQuery.addSynchronizedEntityName(java.lang.String) and SQLQuery.addSynchronizedEntityClass(java.lang.Class).
 

Methods in org.hibernate that return Query
 Query Session.createFilter(Object collection, String queryString)
          Create a Query instance for the given collection and filter string.
 Query SharedSessionContract.createQuery(String queryString)
          Create a Query instance for the given HQL query string.
 Query SharedSessionContract.getNamedQuery(String queryName)
          Create a Query instance for the named query string defined in the metadata.
 Query Query.setBigDecimal(int position, BigDecimal number)
           
 Query Query.setBigDecimal(String name, BigDecimal number)
           
 Query Query.setBigInteger(int position, BigInteger number)
           
 Query Query.setBigInteger(String name, BigInteger number)
           
 Query Query.setBinary(int position, byte[] val)
           
 Query Query.setBinary(String name, byte[] val)
           
 Query Query.setBoolean(int position, boolean val)
           
 Query Query.setBoolean(String name, boolean val)
           
 Query Query.setByte(int position, byte val)
           
 Query Query.setByte(String name, byte val)
           
 Query Query.setCacheable(boolean cacheable)
          Enable caching of this query result set.
 Query Query.setCacheMode(CacheMode cacheMode)
          Override the current session cache mode, just for this query.
 Query Query.setCacheRegion(String cacheRegion)
          Set the name of the cache region.
 Query Query.setCalendar(int position, Calendar calendar)
           
 Query Query.setCalendar(String name, Calendar calendar)
           
 Query Query.setCalendarDate(int position, Calendar calendar)
           
 Query Query.setCalendarDate(String name, Calendar calendar)
           
 Query Query.setCharacter(int position, char val)
           
 Query Query.setCharacter(String name, char val)
           
 Query Query.setComment(String comment)
          Add a comment to the generated SQL.
 Query Query.setDate(int position, Date date)
           
 Query Query.setDate(String name, Date date)
          Bind the date (time is truncated) of a given Date object to a named query parameter.
 Query Query.setDouble(int position, double val)
           
 Query Query.setDouble(String name, double val)
           
 Query Query.setEntity(int position, Object val)
          Bind an instance of a mapped persistent class to a JDBC-style query parameter.
 Query Query.setEntity(String name, Object val)
          Bind an instance of a mapped persistent class to a named query parameter.
 Query Query.setFetchSize(int fetchSize)
          Set a fetch size for the underlying JDBC query.
 Query Query.setFirstResult(int firstResult)
          Set the first row to retrieve.
 Query Query.setFloat(int position, float val)
           
 Query Query.setFloat(String name, float val)
           
 Query Query.setFlushMode(FlushMode flushMode)
          Override the current session flush mode, just for this query.
 Query Query.setInteger(int position, int val)
           
 Query Query.setInteger(String name, int val)
           
 Query Query.setLocale(int position, Locale locale)
           
 Query Query.setLocale(String name, Locale locale)
           
 Query Query.setLockMode(String alias, LockMode lockMode)
          Set the lockmode for the objects idententified by the given alias that appears in the FROM clause.
 Query Query.setLockOptions(LockOptions lockOptions)
          Set the lock options for the objects idententified by the given alias that appears in the FROM clause.
 Query Query.setLong(int position, long val)
           
 Query Query.setLong(String name, long val)
           
 Query Query.setMaxResults(int maxResults)
          Set the maximum number of rows to retrieve.
 Query Query.setParameter(int position, Object val)
          Bind a value to a JDBC-style query parameter.
 Query Query.setParameter(int position, Object val, Type type)
          Bind a value to a JDBC-style query parameter.
 Query Query.setParameter(String name, Object val)
          Bind a value to a named query parameter.
 Query Query.setParameter(String name, Object val, Type type)
          Bind a value to a named query parameter.
 Query Query.setParameterList(String name, Collection vals)
          Bind multiple values to a named query parameter.
 Query Query.setParameterList(String name, Collection vals, Type type)
          Bind multiple values to a named query parameter.
 Query Query.setParameterList(String name, Object[] vals)
          Bind multiple values to a named query parameter.
 Query Query.setParameterList(String name, Object[] vals, Type type)
          Bind multiple values to a named query parameter.
 Query Query.setParameters(Object[] values, Type[] types)
          Bind values and types to positional parameters.
 Query Query.setProperties(Map bean)
          Bind the values of the given Map for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using hueristics.
 Query 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 hueristics.
 Query Query.setReadOnly(boolean readOnly)
          Set the read-only/modifiable mode for entities and proxies loaded by this Query.
 Query Query.setResultTransformer(ResultTransformer transformer)
          Set a strategy for handling the query results.
 Query Query.setSerializable(int position, Serializable val)
           
 Query Query.setSerializable(String name, Serializable val)
           
 Query Query.setShort(int position, short val)
           
 Query Query.setShort(String name, short val)
           
 Query Query.setString(int position, String val)
           
 Query Query.setString(String name, String val)
           
 Query Query.setText(int position, String val)
           
 Query Query.setText(String name, String val)
           
 Query Query.setTime(int position, Date date)
           
 Query Query.setTime(String name, Date date)
          Bind the time (date is truncated) of a given Date object to a named query parameter.
 Query Query.setTimeout(int timeout)
          Set a timeout for the underlying JDBC query.
 Query Query.setTimestamp(int position, Date date)
           
 Query Query.setTimestamp(String name, Date date)
          Bind the date and the time of a given Date object to a named query parameter.
 

Uses of Query in org.hibernate.ejb
 

Methods in org.hibernate.ejb that return Query
 Query HibernateQuery.getHibernateQuery()
           
 Query QueryImpl.getHibernateQuery()
           
 

Constructors in org.hibernate.ejb with parameters of type Query
AbstractEntityManagerImpl.TupleBuilderTransformer(Query hqlQuery)
           
QueryImpl(Query query, AbstractEntityManagerImpl em)
           
QueryImpl(Query query, AbstractEntityManagerImpl em, Map<String,Class> namedParameterTypeRedefinitions)
           
 

Uses of Query in org.hibernate.engine.spi
 

Methods in org.hibernate.engine.spi that return Query
 Query SessionImplementor.getNamedQuery(String name)
          Get a Query instance for a named query or named native SQL query
 Query SessionImplementor.getNamedSQLQuery(String name)
          Get a Query instance for a named native SQL query
 

Uses of Query in org.hibernate.envers.entities.mapper.id
 

Methods in org.hibernate.envers.entities.mapper.id with parameters of type Query
 void QueryParameterData.setParameterValue(Query query)
           
 

Uses of Query in org.hibernate.envers.entities.mapper.relation.lazy
 

Methods in org.hibernate.envers.entities.mapper.relation.lazy that return Query
 Query AbstractDelegateSessionImplementor.getNamedQuery(String name)
           
 Query AbstractDelegateSessionImplementor.getNamedSQLQuery(String name)
           
 

Uses of Query in org.hibernate.envers.entities.mapper.relation.query
 

Methods in org.hibernate.envers.entities.mapper.relation.query that return Query
 Query ThreeEntityQueryGenerator.getQuery(AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
           
 Query RelationQueryGenerator.getQuery(AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
           
 Query TwoEntityQueryGenerator.getQuery(AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
           
 Query OneEntityQueryGenerator.getQuery(AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
           
 Query TwoEntityOneAuditedQueryGenerator.getQuery(AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
           
 Query OneAuditEntityQueryGenerator.getQuery(AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
           
 

Uses of Query in org.hibernate.envers.query.impl
 

Methods in org.hibernate.envers.query.impl that return Query
protected  Query AbstractAuditQuery.buildQuery()
           
 

Methods in org.hibernate.envers.query.impl with parameters of type Query
protected  void AbstractAuditQuery.setQueryProperties(Query query)
           
 

Uses of Query in org.hibernate.envers.tools.query
 

Methods in org.hibernate.envers.tools.query that return Query
 Query QueryBuilder.toQuery(Session session)
           
 

Uses of Query in org.hibernate.internal
 

Classes in org.hibernate.internal that implement Query
 class AbstractQueryImpl
          Abstract implementation of the Query interface.
 class CollectionFilterImpl
          implementation of the Query interface for collection filters
 class QueryImpl
          default implementation of the Query interface, for "ordinary" HQL queries (not collection filters)
 class SQLQueryImpl
          Implementation of the SQLQuery contract.
 

Methods in org.hibernate.internal that return Query
 Query SessionImpl.createFilter(Object collection, String queryString)
           
 Query SessionImpl.createQuery(String queryString)
           
 Query AbstractSessionImpl.createQuery(String queryString)
           
 Query SessionImpl.getNamedQuery(String queryName)
           
 Query AbstractSessionImpl.getNamedQuery(String queryName)
           
 Query AbstractSessionImpl.getNamedSQLQuery(String queryName)
           
 Query AbstractQueryImpl.setBigDecimal(int position, BigDecimal number)
           
 Query AbstractQueryImpl.setBigDecimal(String name, BigDecimal number)
           
 Query AbstractQueryImpl.setBigInteger(int position, BigInteger number)
           
 Query AbstractQueryImpl.setBigInteger(String name, BigInteger number)
           
 Query AbstractQueryImpl.setBinary(int position, byte[] val)
           
 Query AbstractQueryImpl.setBinary(String name, byte[] val)
           
 Query AbstractQueryImpl.setBoolean(int position, boolean val)
           
 Query AbstractQueryImpl.setBoolean(String name, boolean val)
           
 Query AbstractQueryImpl.setByte(int position, byte val)
           
 Query AbstractQueryImpl.setByte(String name, byte val)
           
 Query AbstractQueryImpl.setCacheable(boolean cacheable)
           
 Query AbstractQueryImpl.setCacheMode(CacheMode cacheMode)
           
 Query AbstractQueryImpl.setCacheRegion(String cacheRegion)
           
 Query AbstractQueryImpl.setCalendar(int position, Calendar calendar)
           
 Query AbstractQueryImpl.setCalendar(String name, Calendar calendar)
           
 Query AbstractQueryImpl.setCalendarDate(int position, Calendar calendar)
           
 Query AbstractQueryImpl.setCalendarDate(String name, Calendar calendar)
           
 Query AbstractQueryImpl.setCharacter(int position, char val)
           
 Query AbstractQueryImpl.setCharacter(String name, char val)
           
 Query AbstractQueryImpl.setCollectionKey(Serializable collectionKey)
           
 Query AbstractQueryImpl.setComment(String comment)
           
 Query AbstractQueryImpl.setDate(int position, Date date)
           
 Query AbstractQueryImpl.setDate(String name, Date date)
           
 Query AbstractQueryImpl.setDouble(int position, double val)
           
 Query AbstractQueryImpl.setDouble(String name, double val)
           
 Query AbstractQueryImpl.setEntity(int position, Object val)
           
 Query AbstractQueryImpl.setEntity(String name, Object val)
           
 Query AbstractQueryImpl.setFetchSize(int fetchSize)
           
 Query AbstractQueryImpl.setFirstResult(int firstResult)
           
 Query AbstractQueryImpl.setFloat(int position, float val)
           
 Query AbstractQueryImpl.setFloat(String name, float val)
           
 Query AbstractQueryImpl.setFlushMode(FlushMode flushMode)
           
 Query AbstractQueryImpl.setInteger(int position, int val)
           
 Query AbstractQueryImpl.setInteger(String name, int val)
           
 Query AbstractQueryImpl.setLocale(int position, Locale locale)
           
 Query AbstractQueryImpl.setLocale(String name, Locale locale)
           
 Query SQLQueryImpl.setLockMode(String alias, LockMode lockMode)
           
 Query QueryImpl.setLockMode(String alias, LockMode lockMode)
           
 Query SQLQueryImpl.setLockOptions(LockOptions lockOptions)
           
 Query QueryImpl.setLockOptions(LockOptions lockOption)
           
 Query AbstractQueryImpl.setLong(int position, long val)
           
 Query AbstractQueryImpl.setLong(String name, long val)
           
 Query AbstractQueryImpl.setMaxResults(int maxResults)
           
 Query AbstractQueryImpl.setParameter(int position, Object val)
           
 Query AbstractQueryImpl.setParameter(int position, Object val, Type type)
           
 Query AbstractQueryImpl.setParameter(String name, Object val)
           
 Query AbstractQueryImpl.setParameter(String name, Object val, Type type)
           
 Query AbstractQueryImpl.setParameterList(String name, Collection vals)
           
 Query AbstractQueryImpl.setParameterList(String name, Collection vals, Type type)
           
 Query AbstractQueryImpl.setParameterList(String name, Object[] vals)
           
 Query AbstractQueryImpl.setParameterList(String name, Object[] vals, Type type)
           
 Query AbstractQueryImpl.setParameters(Object[] values, Type[] types)
           
 Query AbstractQueryImpl.setProperties(Map map)
           
 Query AbstractQueryImpl.setProperties(Object bean)
           
 Query AbstractQueryImpl.setReadOnly(boolean readOnly)
          Set the read-only/modifiable mode for entities and proxies loaded by this Query.
 Query AbstractQueryImpl.setResultTransformer(ResultTransformer transformer)
           
 Query AbstractQueryImpl.setSerializable(int position, Serializable val)
           
 Query AbstractQueryImpl.setSerializable(String name, Serializable val)
           
 Query AbstractQueryImpl.setShort(int position, short val)
           
 Query AbstractQueryImpl.setShort(String name, short val)
           
 Query AbstractQueryImpl.setString(int position, String val)
           
 Query AbstractQueryImpl.setString(String name, String val)
           
 Query AbstractQueryImpl.setText(int position, String val)
           
 Query AbstractQueryImpl.setText(String name, String val)
           
 Query AbstractQueryImpl.setTime(int position, Date date)
           
 Query AbstractQueryImpl.setTime(String name, Date date)
           
 Query AbstractQueryImpl.setTimeout(int timeout)
           
 Query AbstractQueryImpl.setTimestamp(int position, Date date)
           
 Query AbstractQueryImpl.setTimestamp(String name, Date date)
           
 

Uses of Query in org.hibernate.test.legacy
 

Methods in org.hibernate.test.legacy with parameters of type Query
protected  int LegacyTestCase.doDelete(Session session, Query selectQuery)
           
 

Uses of Query in org.hibernate.test.querycache
 

Methods in org.hibernate.test.querycache that return Query
protected abstract  Query AbstractQueryCacheResultTransformerTest.HqlExecutor.getQuery(Session s)
           
 



Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.