站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

Uses of Interface net.sf.hibernate.Query (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


Uses of Interface
net.sf.hibernate.Query

Packages that use Query
net.sf.hibernate   
net.sf.hibernate.impl   
net.sf.hibernate.jca   
net.sf.hibernate.odmg   
 

Uses of Query in net.sf.hibernate
 

Methods in net.sf.hibernate that return Query
 Query Session.createQuery(String queryString)
          Create a new instance of Query for the given query string.
 Query Session.createFilter(Object collection, String queryString)
          Create a new instance of Query for the given collection and filter string.
 Query Session.getNamedQuery(String queryName)
          Obtain an instance of Query for a named query string defined in the mapping file.
 Query Session.createSQLQuery(String sql, String returnAlias, Class returnClass)
          Create a new instance of Query for the given SQL string.
 Query Session.createSQLQuery(String sql, String[] returnAliases, Class[] returnClasses)
          Create a new instance of Query for the given SQL string.
 Query Query.setMaxResults(int maxResults)
          Set the maximum number of rows to retrieve.
 Query Query.setFirstResult(int firstResult)
          Set the first row to retrieve.
 Query Query.setCacheable(boolean cacheable)
          Enable caching of this query result set.
 Query Query.setCacheRegion(String cacheRegion)
          Set the name of the cache region.
 Query Query.setForceCacheRefresh(boolean forceCacheRefresh)
          Should the query force a refresh of the specified query cache region? This is particularly useful in cases where underlying data may have been updated via a seperate process (i.e., not modified through Hibernate) and allows the application to selectively refresh the query cache regions based on its knowledge of those events.
 Query Query.setTimeout(int timeout)
          Set a timeout for the underlying JDBC query.
 Query Query.setFetchSize(int fetchSize)
          Set a fetch size for the underlying JDBC query.
 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, Type type)
          Bind a value to a named query parameter.
 Query Query.setParameter(int position, Object val)
          Bind a value to a JDBC-style query parameter, guessing the Hibernate type from the class of the given object.
 Query Query.setParameter(String name, Object val)
          Bind a value to a named query parameter, guessing the Hibernate type from the class of the given object.
 Query Query.setParameterList(String name, Collection vals, Type type)
          Bind multiple values to a named query parameter.
 Query Query.setParameterList(String name, Collection vals)
          Bind multiple values to a named query parameter, guessing the Hibernate type from the class of the first object in the collection.
 Query Query.setParameterList(String name, Object[] 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, guessing the Hibernate type from the class of the first object in the array.
 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.setString(int position, String val)
           
 Query Query.setCharacter(int position, char val)
           
 Query Query.setBoolean(int position, boolean val)
           
 Query Query.setByte(int position, byte val)
           
 Query Query.setShort(int position, short val)
           
 Query Query.setInteger(int position, int val)
           
 Query Query.setLong(int position, long val)
           
 Query Query.setFloat(int position, float val)
           
 Query Query.setDouble(int position, double val)
           
 Query Query.setBinary(int position, byte[] val)
           
 Query Query.setText(int position, String val)
           
 Query Query.setSerializable(int position, Serializable val)
           
 Query Query.setLocale(int position, Locale locale)
           
 Query Query.setBigDecimal(int position, BigDecimal number)
           
 Query Query.setDate(int position, Date date)
           
 Query Query.setTime(int position, Date date)
           
 Query Query.setTimestamp(int position, Date date)
           
 Query Query.setCalendar(int position, Calendar calendar)
           
 Query Query.setCalendarDate(int position, Calendar calendar)
           
 Query Query.setString(String name, String val)
           
 Query Query.setCharacter(String name, char val)
           
 Query Query.setBoolean(String name, boolean val)
           
 Query Query.setByte(String name, byte val)
           
 Query Query.setShort(String name, short val)
           
 Query Query.setInteger(String name, int val)
           
 Query Query.setLong(String name, long val)
           
 Query Query.setFloat(String name, float val)
           
 Query Query.setDouble(String name, double val)
           
 Query Query.setBinary(String name, byte[] val)
           
 Query Query.setText(String name, String val)
           
 Query Query.setSerializable(String name, Serializable val)
           
 Query Query.setLocale(String name, Locale locale)
           
 Query Query.setBigDecimal(String name, BigDecimal number)
           
 Query Query.setDate(String name, Date date)
           
 Query Query.setTime(String name, Date date)
           
 Query Query.setTimestamp(String name, Date date)
           
 Query Query.setCalendar(String name, Calendar calendar)
           
 Query Query.setCalendarDate(String name, Calendar calendar)
           
 Query Query.setEntity(int position, Object val)
          Bind an instance of a mapped persistent class to a JDBC-style query parameter.
 Query Query.setEnum(int position, Object val)
          Deprecated. Support for PersistentEnums will be removed in 2.2
 Query Query.setEntity(String name, Object val)
          Bind an instance of a mapped persistent class to a named query parameter.
 Query Query.setEnum(String name, Object val)
          Deprecated. Support for PersistentEnums will be removed in 2.2
 

Uses of Query in net.sf.hibernate.impl
 

Classes in net.sf.hibernate.impl that implement Query
 class AbstractQueryImpl
          Abstract implementation of the Query interface
 class FilterImpl
          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
          Implements SQL query passthrough.
 

Methods in net.sf.hibernate.impl that return Query
 Query SessionImpl.createFilter(Object collection, String queryString)
           
 Query SessionImpl.createQuery(String queryString)
           
 Query SessionImpl.getNamedQuery(String queryName)
           
 Query SessionImpl.createSQLQuery(String sql, String returnAlias, Class returnClass)
           
 Query SessionImpl.createSQLQuery(String sql, String[] returnAliases, Class[] returnClasses)
           
 Query SessionImpl.createSQLQuery(String sql, String[] returnAliases, Class[] returnClasses, Collection querySpaces)
           
 Query AbstractQueryImpl.setMaxResults(int maxResults)
           
 Query AbstractQueryImpl.setTimeout(int timeout)
           
 Query AbstractQueryImpl.setFetchSize(int fetchSize)
           
 Query AbstractQueryImpl.setFirstResult(int firstResult)
           
 Query AbstractQueryImpl.setParameter(int position, Object val, Type type)
           
 Query AbstractQueryImpl.setString(int position, String val)
           
 Query AbstractQueryImpl.setCharacter(int position, char val)
           
 Query AbstractQueryImpl.setBoolean(int position, boolean val)
           
 Query AbstractQueryImpl.setByte(int position, byte val)
           
 Query AbstractQueryImpl.setShort(int position, short val)
           
 Query AbstractQueryImpl.setInteger(int position, int val)
           
 Query AbstractQueryImpl.setLong(int position, long val)
           
 Query AbstractQueryImpl.setFloat(int position, float val)
           
 Query AbstractQueryImpl.setDouble(int position, double val)
           
 Query AbstractQueryImpl.setBinary(int position, byte[] val)
           
 Query AbstractQueryImpl.setText(int position, String val)
           
 Query AbstractQueryImpl.setSerializable(int position, Serializable val)
           
 Query AbstractQueryImpl.setDate(int position, Date date)
           
 Query AbstractQueryImpl.setTime(int position, Date date)
           
 Query AbstractQueryImpl.setTimestamp(int position, Date date)
           
 Query AbstractQueryImpl.setEntity(int position, Object val)
           
 Query AbstractQueryImpl.setEnum(int position, Object val)
           
 Query AbstractQueryImpl.setLocale(int position, Locale locale)
           
 Query AbstractQueryImpl.setCalendar(int position, Calendar calendar)
           
 Query AbstractQueryImpl.setCalendarDate(int position, Calendar calendar)
           
 Query AbstractQueryImpl.setBinary(String name, byte[] val)
           
 Query AbstractQueryImpl.setText(String name, String val)
           
 Query AbstractQueryImpl.setBoolean(String name, boolean val)
           
 Query AbstractQueryImpl.setByte(String name, byte val)
           
 Query AbstractQueryImpl.setCharacter(String name, char val)
           
 Query AbstractQueryImpl.setDate(String name, Date date)
           
 Query AbstractQueryImpl.setDouble(String name, double val)
           
 Query AbstractQueryImpl.setEntity(String name, Object val)
           
 Query AbstractQueryImpl.setEnum(String name, Object val)
           
 Query AbstractQueryImpl.setFloat(String name, float val)
           
 Query AbstractQueryImpl.setInteger(String name, int val)
           
 Query AbstractQueryImpl.setLocale(String name, Locale locale)
           
 Query AbstractQueryImpl.setCalendar(String name, Calendar calendar)
           
 Query AbstractQueryImpl.setCalendarDate(String name, Calendar calendar)
           
 Query AbstractQueryImpl.setLong(String name, long val)
           
 Query AbstractQueryImpl.setParameter(String name, Object val, Type type)
           
 Query AbstractQueryImpl.setSerializable(String name, Serializable val)
           
 Query AbstractQueryImpl.setShort(String name, short val)
           
 Query AbstractQueryImpl.setString(String name, String val)
           
 Query AbstractQueryImpl.setTime(String name, Date date)
           
 Query AbstractQueryImpl.setTimestamp(String name, Date date)
           
 Query AbstractQueryImpl.setBigDecimal(int position, BigDecimal number)
           
 Query AbstractQueryImpl.setBigDecimal(String name, BigDecimal number)
           
 Query AbstractQueryImpl.setParameter(int position, Object val)
           
 Query AbstractQueryImpl.setParameter(String name, Object val)
           
 Query AbstractQueryImpl.setParameterList(String name, Collection vals, Type type)
           
 Query AbstractQueryImpl.setParameterList(String name, Collection vals)
           
 Query AbstractQueryImpl.setProperties(Object bean)
           
 Query AbstractQueryImpl.setParameterList(String name, Object[] vals, Type type)
           
 Query AbstractQueryImpl.setParameterList(String name, Object[] vals)
           
 Query AbstractQueryImpl.setCacheable(boolean cacheable)
           
 Query AbstractQueryImpl.setCacheRegion(String cacheRegion)
           
 Query AbstractQueryImpl.setForceCacheRefresh(boolean forceCacheRefresh)
           
 

Uses of Query in net.sf.hibernate.jca
 

Methods in net.sf.hibernate.jca that return Query
 Query JCASessionImpl.createQuery(String queryString)
           
 Query JCASessionImpl.createFilter(Object collection, String queryString)
           
 Query JCASessionImpl.getNamedQuery(String queryName)
           
 Query JCASessionImpl.createSQLQuery(String string, String returnAlias, Class returnClass)
           
 Query JCASessionImpl.createSQLQuery(String string, String[] returnAliases, Class[] returnClasses)
           
 

Uses of Query in net.sf.hibernate.odmg
 

Methods in net.sf.hibernate.odmg that return Query
 Query OQLQuery.getQuery()
          Get the underlying Hibernate Query.