| java.lang.Object org.hibernate.impl.AbstractQueryImpl
All known Subclasses: org.hibernate.impl.QueryImpl, org.hibernate.impl.SQLQueryImpl,
AbstractQueryImpl | abstract public class AbstractQueryImpl implements Query(Code) | | Abstract implementation of the Query interface.
author: Gavin King, Max Andersen |
Method Summary | |
protected void | after() | protected void | before() | protected Type | determineType(int paramPosition, Object paramValue, Type defaultType) | protected Type | determineType(int paramPosition, Object paramValue) | protected Type | determineType(String paramName, Object paramValue, Type defaultType) | protected Type | determineType(String paramName, Object paramValue) | protected Type | determineType(String paramName, Class clazz) | protected String | expandParameterLists(Map namedParamsCopy) | 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() 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. | protected Map | getNamedParams() Returns a shallow copy of the named parameter value map. | public QueryParameters | getQueryParameters(Map namedParams) | final public String | getQueryString() | public String[] | getReturnAliases() | public Type[] | getReturnTypes() | protected RowSelection | getRowSelection() | public RowSelection | getSelection() | SessionImplementor | getSession() | protected List | getTypes() Retreives the list of parameter
Type 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() | 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, Type type) | public Query | setParameter(String name, Object val, Type type) | public Query | setParameter(int position, Object val) | public Query | setParameter(String name, Object val) | public Query | setParameterList(String name, Collection vals, Type type) | public Query | setParameterList(String name, Collection vals) | public Query | setParameterList(String name, Object[] vals, Type type) | public Query | setParameterList(String name, Object[] vals) | public Query | setParameters(Object[] values, Type[] types) | public Query | setProperties(Map map) | public Query | setProperties(Object bean) | 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) | public Object | uniqueResult() | public Object[] | valueArray() | protected void | verifyParameters() Perform parameter validation. | protected void | verifyParameters(boolean reserveFirstParameter) Perform parameter validation. |
after | protected void after()(Code) | | |
before | protected void before()(Code) | | |
determineType | protected Type determineType(int paramPosition, Object paramValue, Type defaultType)(Code) | | |
expandParameterLists | protected String expandParameterLists(Map namedParamsCopy)(Code) | | Warning: adds new parameters to the argument by side-effect, as well as
mutating the query string!
|
getLockModes | abstract protected Map getLockModes()(Code) | | |
getNamedParameterLists | protected Map getNamedParameterLists()(Code) | | Retreive the value map for any named parameter lists (i.e., for
auto-expansion) bound to this query.
The parameter list value map. |
getNamedParameters | public String[] getNamedParameters() throws HibernateException(Code) | | 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.
Array of named parameter names. throws: HibernateException - |
getNamedParams | protected Map getNamedParams()(Code) | | Returns a shallow copy of the named parameter value map.
Shallow copy of the named parameter value map |
getTypes | protected List getTypes()(Code) | | Retreives the list of parameter
Type type s bound to this query for
ordinal parameters.
The ordinal parameter types. |
getValues | protected List getValues()(Code) | | Retreives the list of parameter values bound to this query for
ordinal parameters.
The ordinal parameter values. |
hasNamedParameters | public boolean hasNamedParameters()(Code) | | Does this query contain named parameters?
True if the query was found to contain named parameters; falseotherwise; |
isReadOnly | public boolean isReadOnly()(Code) | | |
setBinary | public Query setBinary(int position, byte[] val)(Code) | | |
setBoolean | public Query setBoolean(int position, boolean val)(Code) | | |
setByte | public Query setByte(int position, byte val)(Code) | | |
setCacheable | public Query setCacheable(boolean cacheable)(Code) | | |
setCharacter | public Query setCharacter(int position, char val)(Code) | | |
setDouble | public Query setDouble(int position, double val)(Code) | | |
setFetchSize | public Query setFetchSize(int fetchSize)(Code) | | |
setFirstResult | public Query setFirstResult(int firstResult)(Code) | | |
setFloat | public Query setFloat(int position, float val)(Code) | | |
setInteger | public Query setInteger(int position, int val)(Code) | | |
setLong | public Query setLong(int position, long val)(Code) | | |
setMaxResults | public Query setMaxResults(int maxResults)(Code) | | |
setOptionalEntityName | public void setOptionalEntityName(String optionalEntityName)(Code) | | |
setOptionalObject | public void setOptionalObject(Object optionalObject)(Code) | | |
setReadOnly | public Query setReadOnly(boolean readOnly)(Code) | | |
setShort | public Query setShort(int position, short val)(Code) | | |
verifyParameters | protected void verifyParameters() throws QueryException(Code) | | Perform parameter validation. Used prior to executing the encapsulated
query.
throws: QueryException - |
verifyParameters | protected void verifyParameters(boolean reserveFirstParameter) throws HibernateException(Code) | | Perform parameter validation. Used prior to executing the encapsulated
query.
Parameters: reserveFirstParameter - if true, the first ? will not be verified sinceits needed for e.g. callable statements returning a out parameter throws: HibernateException - |
|
|