void
|
after()
|
void
|
before()
|
Type
|
determineType(String paramName, Object paramValue, Type defaultType)
|
Type
|
determineType(int paramPosition, Object paramValue, Type defaultType)
|
Type
|
determineType(String paramName, Object paramValue)
|
Type
|
determineType(String paramName, Class clazz)
|
Type
|
determineType(int paramPosition, Object paramValue)
|
String
|
expandParameterLists(Map namedParamsCopy)
Warning: adds new parameters to the argument by side-effect, as well as
mutating the query string!
|
CacheMode
|
getCacheMode()
|
abstract
LockOptions
|
getLockOptions()
|
Map
|
getNamedParameterLists()
Retreive the value map for any named parameter lists (i.e., for
auto-expansion) bound to this query.
|
String[]
|
getNamedParameters()
Returns an array representing all named parameter names encountered
during (intial) parsing of the query.
|
Map
|
getNamedParams()
Returns a shallow copy of the named parameter value map.
|
ParameterMetadata
|
getParameterMetadata()
|
QueryParameters
|
getQueryParameters(Map namedParams)
|
final
String
|
getQueryString()
Get the query string.
|
String[]
|
getReturnAliases()
Return the HQL select clause aliases (if any)
|
Type[]
|
getReturnTypes()
Return the Hibernate types of the query result set.
|
RowSelection
|
getRowSelection()
|
RowSelection
|
getSelection()
|
List
|
getTypes()
Retreives the list of parameter type s bound to this query for
ordinal parameters.
|
List
|
getValues()
Retreives the list of parameter values bound to this query for
ordinal parameters.
|
boolean
|
hasNamedParameters()
Does this query contain named parameters?
|
boolean
|
isReadOnly()
Should entities and proxies loaded by this Query be put in read-only mode? If the
read-only/modifiable setting was not initialized, then the default
read-only/modifiable setting for the persistence context is returned instead.
|
Query
|
setBigDecimal(int position, BigDecimal number)
|
Query
|
setBigDecimal(String name, BigDecimal number)
|
Query
|
setBigInteger(String name, BigInteger number)
|
Query
|
setBigInteger(int position, BigInteger number)
|
Query
|
setBinary(String name, byte[] val)
|
Query
|
setBinary(int position, byte[] val)
|
Query
|
setBoolean(String name, boolean val)
|
Query
|
setBoolean(int position, boolean val)
|
Query
|
setByte(int position, byte val)
|
Query
|
setByte(String name, byte val)
|
Query
|
setCacheMode(CacheMode cacheMode)
Override the current session cache mode, just for
this query.
|
Query
|
setCacheRegion(String cacheRegion)
Set the name of the cache region.
|
Query
|
setCacheable(boolean cacheable)
Enable caching of this query result set.
|
Query
|
setCalendar(String name, Calendar calendar)
|
Query
|
setCalendar(int position, Calendar calendar)
|
Query
|
setCalendarDate(int position, Calendar calendar)
|
Query
|
setCalendarDate(String name, Calendar calendar)
|
Query
|
setCharacter(int position, char val)
|
Query
|
setCharacter(String name, char val)
|
Query
|
setCollectionKey(Serializable collectionKey)
|
Query
|
setComment(String comment)
Add a comment to the generated SQL.
|
Query
|
setDate(String name, Date date)
|
Query
|
setDate(int position, Date date)
|
Query
|
setDouble(int position, double val)
|
Query
|
setDouble(String name, double val)
|
Query
|
setEntity(int position, Object val)
Bind an instance of a mapped persistent class to a JDBC-style query parameter.
|
Query
|
setEntity(String name, Object val)
Bind an instance of a mapped persistent class to a named query parameter.
|
Query
|
setFetchSize(int fetchSize)
Set a fetch size for the underlying JDBC query.
|
Query
|
setFirstResult(int firstResult)
Set the first row to retrieve.
|
Query
|
setFloat(int position, float val)
|
Query
|
setFloat(String name, float val)
|
Query
|
setFlushMode(FlushMode flushMode)
Override the current session flush mode, just for
this query.
|
Query
|
setInteger(String name, int val)
|
Query
|
setInteger(int position, int val)
|
Query
|
setLocale(int position, Locale locale)
|
Query
|
setLocale(String name, Locale locale)
|
Query
|
setLong(int position, long val)
|
Query
|
setLong(String name, long val)
|
Query
|
setMaxResults(int maxResults)
Set the maximum number of rows to retrieve.
|
void
|
setOptionalEntityName(String optionalEntityName)
|
void
|
setOptionalId(Serializable optionalId)
|
void
|
setOptionalObject(Object optionalObject)
|
Query
|
setParameter(int position, Object val, Type type)
Bind a value to a JDBC-style query parameter.
|
Query
|
setParameter(int position, Object val)
Bind a value to a JDBC-style query parameter.
|
Query
|
setParameter(String name, Object val, Type type)
Bind a value to a named query parameter.
|
Query
|
setParameter(String name, Object val)
Bind a value to a named query parameter.
|
Query
|
setParameterList(String name, Collection vals)
Bind multiple values to a named query parameter.
|
Query
|
setParameterList(String name, Object[] vals)
Bind multiple values to a named query parameter.
|
Query
|
setParameterList(String name, Object[] vals, Type type)
Bind multiple values to a named query parameter.
|
Query
|
setParameterList(String name, Collection vals, Type type)
Bind multiple values to a named query parameter.
|
Query
|
setParameters(Object[] values, Type[] types)
Bind values and types to positional parameters.
|
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
|
setProperties(Map map)
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
|
setReadOnly(boolean readOnly)
Set the read-only/modifiable mode for entities and proxies
loaded by this Query.
|
Query
|
setResultTransformer(ResultTransformer transformer)
Set a strategy for handling the query results.
|
Query
|
setSerializable(String name, Serializable val)
|
Query
|
setSerializable(int position, Serializable val)
|
Query
|
setShort(int position, short val)
|
Query
|
setShort(String name, short val)
|
Query
|
setString(int position, String val)
|
Query
|
setString(String name, String val)
|
Query
|
setText(int position, String val)
|
Query
|
setText(String name, String val)
|
Query
|
setTime(int position, Date date)
|
Query
|
setTime(String name, Date date)
|
Query
|
setTimeout(int timeout)
Set a timeout for the underlying JDBC query.
|
Query
|
setTimestamp(int position, Date date)
|
Query
|
setTimestamp(String name, Date date)
|
String
|
toString()
|
Type[]
|
typeArray()
|
Object
|
uniqueResult()
Convenience method to return a single instance that matches
the query, or null if the query returns no results.
|
Object[]
|
valueArray()
|
void
|
verifyParameters(boolean reserveFirstParameter)
Perform parameter validation.
|
void
|
verifyParameters()
Perform parameter validation.
|