Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » impl » [javadoc | source]
org.hibernate.impl
abstract public class: AbstractQueryImpl [javadoc | source]
java.lang.Object
   org.hibernate.impl.AbstractQueryImpl

All Implemented Interfaces:
    org.hibernate.Query

Direct Known Subclasses:
    SQLQueryImpl, QueryImpl, CollectionFilterImpl

Abstract implementation of the Query interface.
Field Summary
protected final  SessionImplementor session     
protected final  ParameterMetadata parameterMetadata     
Constructor:
 public AbstractQueryImpl(String queryString,
    FlushMode flushMode,
    SessionImplementor session,
    ParameterMetadata parameterMetadata) 
Method from org.hibernate.impl.AbstractQueryImpl Summary:
after,   before,   determineType,   determineType,   determineType,   determineType,   determineType,   expandParameterLists,   getLockModes,   getNamedParameterLists,   getNamedParameters,   getNamedParams,   getQueryParameters,   getQueryString,   getReturnAliases,   getReturnTypes,   getRowSelection,   getSelection,   getSession,   getTypes,   getValues,   hasNamedParameters,   isReadOnly,   setBigDecimal,   setBigDecimal,   setBigInteger,   setBigInteger,   setBinary,   setBinary,   setBoolean,   setBoolean,   setByte,   setByte,   setCacheMode,   setCacheRegion,   setCacheable,   setCalendar,   setCalendar,   setCalendarDate,   setCalendarDate,   setCharacter,   setCharacter,   setCollectionKey,   setComment,   setDate,   setDate,   setDouble,   setDouble,   setEntity,   setEntity,   setFetchSize,   setFirstResult,   setFloat,   setFloat,   setFlushMode,   setInteger,   setInteger,   setLocale,   setLocale,   setLong,   setLong,   setMaxResults,   setOptionalEntityName,   setOptionalId,   setOptionalObject,   setParameter,   setParameter,   setParameter,   setParameter,   setParameterList,   setParameterList,   setParameterList,   setParameterList,   setParameters,   setProperties,   setProperties,   setReadOnly,   setResultTransformer,   setSerializable,   setSerializable,   setShort,   setShort,   setString,   setString,   setText,   setText,   setTime,   setTime,   setTimeout,   setTimestamp,   setTimestamp,   toString,   typeArray,   uniqueElement,   uniqueResult,   valueArray,   verifyParameters,   verifyParameters
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.impl.AbstractQueryImpl Detail:
 protected  void after() 
 protected  void before() 
 protected Type determineType(int paramPosition,
    Object paramValue) throws HibernateException 
 protected Type determineType(String paramName,
    Object paramValue) throws HibernateException 
 protected Type determineType(String paramName,
    Class clazz) throws HibernateException 
 protected Type determineType(int paramPosition,
    Object paramValue,
    Type defaultType) 
 protected Type determineType(String paramName,
    Object paramValue,
    Type defaultType) 
 protected String expandParameterLists(Map namedParamsCopy) 
    Warning: adds new parameters to the argument by side-effect, as well as mutating the query string!
 abstract protected Map getLockModes()
 protected Map getNamedParameterLists() 
    Retreive the value map for any named parameter lists (i.e., for auto-expansion) bound to this query.
 public String[] getNamedParameters() throws HibernateException 
    Returns an array representing all named parameter names encountered during (intial) parsing of the query.

    Note initial here means different things depending on whether this is a native-sql query or an HQL/filter query. For native-sql, a precursory inspection of the query string is performed specifically to locate defined parameters. For HQL/filter queries, this is the information returned from the query-translator. This distinction holds true for all parameter metadata exposed here.

 protected Map getNamedParams() 
    Returns a shallow copy of the named parameter value map.
 public QueryParameters getQueryParameters(Map namedParams) 
 public final String getQueryString() 
 public String[] getReturnAliases() throws HibernateException 
 public Type[] getReturnTypes() throws HibernateException 
 protected RowSelection getRowSelection() 
 public RowSelection getSelection() 
 SessionImplementor getSession() 
 protected List getTypes() 
    Retreives the list of parameter type s bound to this query for ordinal parameters.
 protected List getValues() 
    Retreives the list of parameter values bound to this query for ordinal parameters.
 public boolean hasNamedParameters() 
    Does this query contain named parameters?
 public boolean isReadOnly() 
 public Query setBigDecimal(int position,
    BigDecimal number) 
 public Query setBigDecimal(String name,
    BigDecimal number) 
 public Query setBigInteger(int position,
    BigInteger number) 
 public Query setBigInteger(String name,
    BigInteger number) 
 public Query setBinary(int position,
    byte[] val) 
 public Query setBinary(String name,
    byte[] val) 
 public Query setBoolean(int position,
    boolean val) 
 public Query setBoolean(String name,
    boolean val) 
 public Query setByte(int position,
    byte val) 
 public Query setByte(String name,
    byte val) 
 public Query setCacheMode(CacheMode cacheMode) 
 public Query setCacheRegion(String cacheRegion) 
 public Query setCacheable(boolean cacheable) 
 public Query setCalendar(int position,
    Calendar calendar) 
 public Query setCalendar(String name,
    Calendar calendar) 
 public Query setCalendarDate(int position,
    Calendar calendar) 
 public Query setCalendarDate(String name,
    Calendar calendar) 
 public Query setCharacter(int position,
    char val) 
 public Query setCharacter(String name,
    char val) 
 public Query setCollectionKey(Serializable collectionKey) 
 public Query setComment(String comment) 
 public Query setDate(int position,
    Date date) 
 public Query setDate(String name,
    Date date) 
 public Query setDouble(int position,
    double val) 
 public Query setDouble(String name,
    double val) 
 public Query setEntity(int position,
    Object val) 
 public Query setEntity(String name,
    Object val) 
 public Query setFetchSize(int fetchSize) 
 public Query setFirstResult(int firstResult) 
 public Query setFloat(int position,
    float val) 
 public Query setFloat(String name,
    float val) 
 public Query setFlushMode(FlushMode flushMode) 
 public Query setInteger(int position,
    int val) 
 public Query setInteger(String name,
    int val) 
 public Query setLocale(int position,
    Locale locale) 
 public Query setLocale(String name,
    Locale locale) 
 public Query setLong(int position,
    long val) 
 public Query setLong(String name,
    long val) 
 public Query setMaxResults(int maxResults) 
 public  void setOptionalEntityName(String optionalEntityName) 
 public  void setOptionalId(Serializable optionalId) 
 public  void setOptionalObject(Object optionalObject) 
 public Query setParameter(int position,
    Object val) throws HibernateException 
 public Query setParameter(String name,
    Object val) throws HibernateException 
 public Query setParameter(int position,
    Object val,
    Type type) 
 public Query setParameter(String name,
    Object val,
    Type type) 
 public Query setParameterList(String name,
    Collection vals) throws HibernateException 
 public Query setParameterList(String name,
    Object[] vals) throws HibernateException 
 public Query setParameterList(String name,
    Collection vals,
    Type type) throws HibernateException 
 public Query setParameterList(String name,
    Object[] vals,
    Type type) throws HibernateException 
 public Query setParameters(Object[] values,
    Type[] types) 
 public Query setProperties(Map map) throws HibernateException 
 public Query setProperties(Object bean) throws HibernateException 
 public Query setReadOnly(boolean readOnly) 
 public Query setResultTransformer(ResultTransformer transformer) 
 public Query setSerializable(int position,
    Serializable val) 
 public Query setSerializable(String name,
    Serializable val) 
 public Query setShort(int position,
    short val) 
 public Query setShort(String name,
    short val) 
 public Query setString(int position,
    String val) 
 public Query setString(String name,
    String val) 
 public Query setText(int position,
    String val) 
 public Query setText(String name,
    String val) 
 public Query setTime(int position,
    Date date) 
 public Query setTime(String name,
    Date date) 
 public Query setTimeout(int timeout) 
 public Query setTimestamp(int position,
    Date date) 
 public Query setTimestamp(String name,
    Date date) 
 public String toString() 
 public Type[] typeArray() 
 static Object uniqueElement(List list) throws NonUniqueResultException 
 public Object uniqueResult() throws HibernateException 
 public Object[] valueArray() 
 protected  void verifyParameters() throws QueryException 
    Perform parameter validation. Used prior to executing the encapsulated query.
 protected  void verifyParameters(boolean reserveFirstParameter) throws HibernateException 
    Perform parameter validation. Used prior to executing the encapsulated query.