public interface NativeQueryImplementor<T> extends QueryImplementor<T>, NativeQuery<T>
SQLQuery.FetchReturn, SQLQuery.ReturnProperty, SQLQuery.RootReturn| Modifier and Type | Method and Description |
|---|---|
NativeQueryImplementor<T> |
addEntity(Class entityType)
Declare a "root" entity, without specifying an alias.
|
NativeQueryImplementor<T> |
addEntity(String entityName)
Declare a "root" entity, without specifying an alias.
|
NativeQueryImplementor<T> |
addEntity(String tableAlias,
Class entityType)
Declare a "root" entity.
|
NativeQueryImplementor<T> |
addEntity(String tableAlias,
Class entityClass,
LockMode lockMode)
Declare a "root" entity, specifying a lock mode.
|
NativeQueryImplementor<T> |
addEntity(String tableAlias,
String entityName)
Declare a "root" entity.
|
NativeQueryImplementor<T> |
addEntity(String tableAlias,
String entityName,
LockMode lockMode)
Declare a "root" entity, specifying a lock mode.
|
NativeQueryImplementor<T> |
addJoin(String tableAlias,
String path)
Declare a join fetch result.
|
NativeQueryImplementor<T> |
addJoin(String tableAlias,
String path,
LockMode lockMode)
Declare a join fetch result, specifying a lock mode.
|
NativeQueryImplementor<T> |
addJoin(String tableAlias,
String ownerTableAlias,
String joinPropertyName)
Declare a join fetch result.
|
NativeQueryImplementor<T> |
addQueryHint(String hint)
Add a DB query hint to the SQL.
|
SQLQuery.RootReturn |
addRoot(String tableAlias,
String entityName)
Add a new root return mapping, returning a
NativeQuery.RootReturn to allow further definition. |
NativeQueryImplementor<T> |
addScalar(String columnAlias)
Declare a scalar query result.
|
NativeQueryImplementor<T> |
addScalar(String columnAlias,
Type type)
Declare a scalar query result.
|
NativeQueryImplementor<T> |
addSynchronizedEntityClass(Class entityClass)
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
|
NativeQueryImplementor<T> |
addSynchronizedEntityName(String entityName)
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
|
NativeQueryImplementor<T> |
addSynchronizedQuerySpace(String querySpace)
Adds a query space.
|
NativeQueryImplementor<T> |
setCacheable(boolean cacheable)
Enable/disable second level query (result) caching for this query.
|
NativeQueryImplementor<T> |
setCacheMode(CacheMode cacheMode)
(Re)set the current CacheMode in effect for this query.
|
NativeQueryImplementor<T> |
setCacheRegion(String cacheRegion)
Set the name of the cache region where query results should be cached (if cached at all).
|
NativeQueryImplementor |
setCollectionKey(Serializable key) |
NativeQueryImplementor<T> |
setComment(String comment)
Set the comment for this query.
|
NativeQueryImplementor<T> |
setFetchSize(int fetchSize)
Sets a JDBC fetch size hint for the query.
|
NativeQueryImplementor<T> |
setFlushMode(FlushMode flushMode)
(Re)set the current FlushMode in effect for this query.
|
NativeQueryImplementor<T> |
setHibernateFlushMode(FlushMode flushMode)
(Re)set the current FlushMode in effect for this query.
|
NativeQueryImplementor<T> |
setLockMode(String alias,
LockMode lockMode)
Set the LockMode to use for specific alias (as defined in the query’s <tt>FROM</tt> clause).
|
NativeQueryImplementor<T> |
setLockOptions(LockOptions lockOptions)
Set the lock options for the query.
|
NativeQueryImplementor<T> |
setParameter(int position,
Calendar value,
TemporalType temporalType) |
NativeQueryImplementor<T> |
setParameter(int position,
Date value,
TemporalType temporalType) |
NativeQueryImplementor<T> |
setParameter(int position,
Object val)
Bind a positional query parameter using its inferred Type.
|
NativeQueryImplementor<T> |
setParameter(int position,
Object val,
TemporalType temporalType)
Bind a positional query parameter as some form of date/time using
the indicated temporal-type.
|
NativeQueryImplementor<T> |
setParameter(int position,
Object val,
Type type)
Bind a value to a JDBC-style query parameter.
|
NativeQueryImplementor<T> |
setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType) |
NativeQueryImplementor<T> |
setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType) |
<P> NativeQueryImplementor<T> |
setParameter(Parameter<P> param,
P value) |
<P> NativeQueryImplementor<T> |
setParameter(QueryParameter<P> parameter,
P val)
Bind a query parameter using its inferred Type.
|
<P> NativeQueryImplementor<T> |
setParameter(QueryParameter<P> parameter,
P val,
TemporalType temporalType)
Bind a query parameter as some form of date/time using the indicated
temporal-type.
|
<P> NativeQueryImplementor<T> |
setParameter(QueryParameter<P> parameter,
P val,
Type type)
Bind a query parameter using the supplied Type
|
NativeQueryImplementor<T> |
setParameter(String name,
Calendar value,
TemporalType temporalType) |
NativeQueryImplementor<T> |
setParameter(String name,
Date value,
TemporalType temporalType) |
NativeQueryImplementor<T> |
setParameter(String name,
Object val)
Bind a named query parameter using its inferred Type.
|
NativeQueryImplementor<T> |
setParameter(String name,
Object val,
TemporalType temporalType)
Bind a named query parameter as some form of date/time using
the indicated temporal-type.
|
NativeQueryImplementor<T> |
setParameter(String name,
Object val,
Type type)
Bind a named query parameter using the supplied Type
|
<P> NativeQueryImplementor<T> |
setParameterList(QueryParameter<P> parameter,
Collection<P> values)
Bind multiple values to a query parameter using its inferred Type.
|
NativeQueryImplementor<T> |
setParameterList(String name,
Collection values)
Bind multiple values to a named query parameter.
|
NativeQueryImplementor<T> |
setParameterList(String name,
Collection values,
Type type)
Bind multiple values to a named query parameter.
|
NativeQueryImplementor<T> |
setParameterList(String name,
Object[] values)
Bind multiple values to a named query parameter.
|
NativeQueryImplementor<T> |
setParameterList(String name,
Object[] values,
Type type)
Bind multiple values to a named query parameter.
|
NativeQueryImplementor<T> |
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 heuristics.
|
NativeQueryImplementor<T> |
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 heuristics.
|
NativeQueryImplementor<T> |
setReadOnly(boolean readOnly)
Set the read-only/modifiable mode for entities and proxies
loaded by this Query.
|
NativeQueryImplementor<T> |
setTimeout(int timeout)
Set the query timeout <b>in seconds</b>.
|
getProducer, setOptionalEntityName, setOptionalId, setOptionalObjectaddFetch, addRoot, isCallable, setFirstResult, setFlushMode, setHint, setLockMode, setMaxResults, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setResultSetMappinggetCacheMode, getCacheRegion, getComment, getFetchSize, getHibernateFlushMode, getLockOptions, getParameterMetadata, getQueryString, getResultList, getResultStream, getSingleResult, list, scroll, scroll, setBigDecimal, setBigDecimal, setBigInteger, setBigInteger, setBinary, setBinary, setBoolean, setBoolean, setByte, setByte, setCalendar, setCalendar, setCalendarDate, setCalendarDate, setCharacter, setCharacter, setDate, setDate, setDouble, setDouble, setEntity, setEntity, setFloat, setFloat, setInteger, setInteger, setLocale, setLocale, setLong, setLong, setParameters, setResultTransformer, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimestamp, setTimestamp, stream, uniqueResult, uniqueResultOptionalgetQueryReturnsdetermineProperBooleanType, determineProperBooleanType, getFlushMode, getHibernateFirstResult, getHibernateMaxResults, getNamedParameters, getQueryOptions, getReturnAliases, getReturnTypes, getTimeout, isCacheable, isReadOnly, iterate, setHibernateFirstResult, setHibernateMaxResults, setParameterList, setParameterList, setParameterList, setParameterListexecuteUpdate, getFirstResult, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapgetSynchronizedQuerySpacesNativeQueryImplementor setCollectionKey(Serializable key)
NativeQueryImplementor<T> addScalar(String columnAlias)
SQLQueryDeclare a scalar query result. Hibernate will attempt to automatically detect the underlying type.
<p/>
Functions like <return-scalar/> in hbm.xml or ColumnResult
NativeQueryImplementor<T> addScalar(String columnAlias, Type type)
SQLQueryDeclare a scalar query result.
<p/>
Functions like <return-scalar/> in hbm.xml or ColumnResult
SQLQuery.RootReturn addRoot(String tableAlias, String entityName)
SQLQueryAdd a new root return mapping, returning a NativeQuery.RootReturn to allow further definition.
NativeQueryImplementor<T> addEntity(String entityName)
SQLQueryDeclare a "root" entity, without specifying an alias. The expectation here is that the table alias is the
same as the unqualified entity name
<p/>
Use SQLQuery.addRoot(java.lang.String, java.lang.String) if you need further control of the mapping
NativeQueryImplementor<T> addEntity(String tableAlias, String entityName)
SQLQueryDeclare a "root" entity.
NativeQueryImplementor<T> addEntity(String tableAlias, String entityName, LockMode lockMode)
SQLQueryDeclare a "root" entity, specifying a lock mode.
NativeQueryImplementor<T> addEntity(Class entityType)
SQLQueryDeclare a "root" entity, without specifying an alias. The expectation here is that the table alias is the same as the unqualified entity name
NativeQueryImplementor<T> addEntity(String tableAlias, Class entityType)
SQLQueryDeclare a "root" entity.
NativeQueryImplementor<T> addEntity(String tableAlias, Class entityClass, LockMode lockMode)
SQLQueryDeclare a "root" entity, specifying a lock mode.
NativeQueryImplementor<T> addJoin(String tableAlias, String path)
SQLQueryDeclare a join fetch result.
NativeQueryImplementor<T> addJoin(String tableAlias, String ownerTableAlias, String joinPropertyName)
SQLQueryDeclare a join fetch result.
addJoin in interface NativeQuery<T>addJoin in interface SQLQuery<T>tableAlias - The SQL table alias for the data to be mapped to this fetchownerTableAlias - Identify the table alias of the owner of this association. Should match the alias of a
previously added root or fetchjoinPropertyName - The name of the property being join fetched.this, for method chainingNativeQueryImplementor<T> addJoin(String tableAlias, String path, LockMode lockMode)
SQLQueryDeclare a join fetch result, specifying a lock mode.
addJoin in interface NativeQuery<T>addJoin in interface SQLQuery<T>tableAlias - The SQL table alias for the data to be mapped to this fetchpath - The association path ([owner-alias].[property-name]).lockMode - The lock mode for this return.this, for method chainingNativeQueryImplementor<T> setHibernateFlushMode(FlushMode flushMode)
Query(Re)set the current FlushMode in effect for this query.
setHibernateFlushMode in interface BasicQueryContract<CommonQueryContract>setHibernateFlushMode in interface NativeQuery<T>setHibernateFlushMode in interface SQLQuery<T>flushMode - The new FlushMode to use.this, for method chainingQuery.getHibernateFlushMode()NativeQueryImplementor<T> setCacheMode(CacheMode cacheMode)
Query(Re)set the current CacheMode in effect for this query.
setCacheMode in interface BasicQueryContract<CommonQueryContract>setCacheMode in interface NativeQuery<T>setCacheMode in interface SQLQuery<T>cacheMode - The new CacheMode to use.this, for method chainingQuery.getCacheMode()NativeQueryImplementor<T> setCacheable(boolean cacheable)
QueryEnable/disable second level query (result) caching for this query.
setCacheable in interface BasicQueryContract<CommonQueryContract>setCacheable in interface NativeQuery<T>setCacheable in interface SQLQuery<T>cacheable - Should the query results be cacheable?this, for method chainingQuery.isCacheable()NativeQueryImplementor<T> setCacheRegion(String cacheRegion)
QuerySet the name of the cache region where query results should be cached (if cached at all).
setCacheRegion in interface BasicQueryContract<CommonQueryContract>setCacheRegion in interface NativeQuery<T>setCacheRegion in interface SQLQuery<T>cacheRegion - the name of a query cache region, or null to indicate that the default region
should be used.this, for method chainingQuery.getCacheRegion()NativeQueryImplementor<T> setTimeout(int timeout)
QuerySet the query timeout <b>in seconds</b>.
NOTE it is important to understand that any value set here is eventually passed directly through to the JDBC Statement which expressly disallows negative values. So negative values should be avoided as a general rule.
setTimeout in interface BasicQueryContract<CommonQueryContract>setTimeout in interface NativeQuery<T>setTimeout in interface SQLQuery<T>timeout - the timeout <b>in seconds</b>this, for method chainingQuery.getTimeout()NativeQueryImplementor<T> setFetchSize(int fetchSize)
QuerySets a JDBC fetch size hint for the query.
setFetchSize in interface BasicQueryContract<CommonQueryContract>setFetchSize in interface NativeQuery<T>setFetchSize in interface SQLQuery<T>fetchSize - the fetch size hintthis, for method chainingQuery.getFetchSize()NativeQueryImplementor<T> setReadOnly(boolean readOnly)
QuerySet the read-only/modifiable mode for entities and proxies loaded by this Query. This setting overrides the default setting for the persistence context.
setReadOnly in interface BasicQueryContract<CommonQueryContract>setReadOnly in interface NativeQuery<T>setReadOnly in interface SQLQuery<T>readOnly - true indicates that entities and proxies loaded by the query
are to be put in read-only mode; false indicates that entities and proxies
loaded by the query will be put in modifiable modethis, for method chainingPersistenceContext.isDefaultReadOnly(),
PersistenceContext.setDefaultReadOnly(boolean),
Session.setDefaultReadOnly(boolean)NativeQueryImplementor<T> setLockOptions(LockOptions lockOptions)
QuerySet the lock options for the query. Specifically only the following are taken into consideration:<ol>
<li>LockOptions.getLockMode()</li>
<li>LockOptions.getScope()</li>
<li>LockOptions.getTimeOut()</li>
</ol>
For alias-specific locking, use Query.setLockMode(String, LockMode).
setLockOptions in interface NativeQuery<T>setLockOptions in interface SQLQuery<T>lockOptions - The lock options to apply to the query.this, for method chainingQuery.getLockOptions()NativeQueryImplementor<T> setLockMode(String alias, LockMode lockMode)
QuerySet the LockMode to use for specific alias (as defined in the query’s <tt>FROM</tt> clause).
The alias-specific lock modes specified here are added to the query’s internal
LockOptions.
The effect of these alias-specific LockModes is somewhat dependent on the driver/database in use. Generally
speaking, for maximum portability, this method should only be used to mark that the rows corresponding to
the given alias should be included in pessimistic locking (LockMode.PESSIMISTIC_WRITE).
setLockMode in interface NativeQuery<T>setLockMode in interface SQLQuery<T>alias - a query alias, or "this" for a collection filterlockMode - The lock mode to apply.this, for method chainingQuery.getLockOptions()NativeQueryImplementor<T> setComment(String comment)
QuerySet the comment for this query.
setComment in interface NativeQuery<T>setComment in interface SQLQuery<T>comment - The human-readable commentthis, for method chainingQuery.getComment()NativeQueryImplementor<T> addQueryHint(String hint)
QueryAdd a DB query hint to the SQL. These differ from JPA’s QueryHint, which is specific
to the JPA implementation and ignores DB vendor-specific hints. Instead, these are intended solely for the
vendor-specific hints, such as Oracle’s optimizers. Multiple query hints are supported; the Dialect will
determine concatenation and placement.
addQueryHint in interface NativeQuery<T>addQueryHint in interface SQLQuery<T>hint - The database specific query hint to add.<P> NativeQueryImplementor<T> setParameter(QueryParameter<P> parameter, P val)
QueryBind a query parameter using its inferred Type. If the parameter is
defined in such a way that the Type cannot be inferred from its usage context then
use of this form of binding is not allowed, and Query.setParameter(QueryParameter, Object, Type)
should be used instead
setParameter in interface NativeQuery<T>setParameter in interface SQLQuery<T>parameter - The query parameter mementoval - the possibly-null parameter valuethis, for method chaining<P> NativeQueryImplementor<T> setParameter(Parameter<P> param, P value)
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>NativeQueryImplementor<T> setParameter(String name, Object val)
QueryBind a named query parameter using its inferred Type. If the parameter is
defined in such a way that the Type cannot be inferred from its usage context then
use of this form of binding is not allowed, and Query.setParameter(String, Object, Type)
should be used instead
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>name - the parameter nameval - the (possibly-null) parameter valuethis, for method chaining<P> NativeQueryImplementor<T> setParameter(QueryParameter<P> parameter, P val, Type type)
QueryBind a query parameter using the supplied Type
setParameter in interface NativeQuery<T>setParameter in interface SQLQuery<T>parameter - The query parameter mementoval - the possibly-null parameter valuetype - the Hibernate typethis, for method chainingNativeQueryImplementor<T> setParameter(int position, Object val)
QueryBind a positional query parameter using its inferred Type. If the parameter is
defined in such a way that the Type cannot be inferred from its usage context then
use of this form of binding is not allowed, and Query.setParameter(int, Object, Type)
should be used instead
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>position - the position of the parameter in the query
string, numbered from <tt>0</tt>.val - the possibly-null parameter valuethis, for method chainingNativeQueryImplementor<T> setParameter(String name, Object val, Type type)
QueryBind a named query parameter using the supplied Type
setParameter in interface NativeQuery<T>setParameter in interface SQLQuery<T>name - the name of the parameterval - the possibly-null parameter valuetype - the Hibernate typethis, for method chainingNativeQueryImplementor<T> setParameter(int position, Object val, Type type)
QueryBind a value to a JDBC-style query parameter.
setParameter in interface NativeQuery<T>setParameter in interface SQLQuery<T>position - the position of the parameter in the query
string, numbered from <tt>0</tt>.val - the possibly-null parameter valuetype - the Hibernate typethis, for method chaining<P> NativeQueryImplementor<T> setParameter(QueryParameter<P> parameter, P val, TemporalType temporalType)
QueryBind a query parameter as some form of date/time using the indicated temporal-type.
setParameter in interface NativeQuery<T>setParameter in interface SQLQuery<T>parameter - The query parameter mementoval - the possibly-null parameter valuetemporalType - the temporal-type to use in binding the date/timethis, for method chainingNativeQueryImplementor<T> setParameter(String name, Object val, TemporalType temporalType)
QueryBind a named query parameter as some form of date/time using the indicated temporal-type.
setParameter in interface NativeQuery<T>setParameter in interface SQLQuery<T>name - the parameter nameval - the possibly-null parameter valuetemporalType - the temporal-type to use in binding the date/timethis, for method chainingNativeQueryImplementor<T> setParameter(int position, Object val, TemporalType temporalType)
QueryBind a positional query parameter as some form of date/time using the indicated temporal-type.
setParameter in interface NativeQuery<T>setParameter in interface SQLQuery<T>position - the position of the parameter in the query
string, numbered from <tt>0</tt>.val - the possibly-null parameter valuetemporalType - the temporal-type to use in binding the date/timethis, for method chaining<P> NativeQueryImplementor<T> setParameterList(QueryParameter<P> parameter, Collection<P> values)
QueryBind multiple values to a query parameter using its inferred Type. The Hibernate type of the parameter values is first detected via the usage/position in the query and if not sufficient secondly guessed from the class of the first object in the collection. This is useful for binding a list of values to an expression such as <tt>foo.bar in (:value_list)</tt>.
setParameterList in interface NativeQuery<T>setParameterList in interface SQLQuery<T>parameter - the parameter mementovalues - a collection of values to listthis, for method chainingNativeQueryImplementor<T> setParameterList(String name, Collection values)
QueryBind multiple values to a named query parameter. The Hibernate type of the parameter is first detected via the usage/position in the query and if not sufficient secondly guessed from the class of the first object in the collection. This is useful for binding a list of values to an expression such as <tt>foo.bar in (:value_list)</tt>.
setParameterList in interface NativeQuery<T>setParameterList in interface SQLQuery<T>name - the name of the parametervalues - a collection of values to listthis, for method chainingNativeQueryImplementor<T> setParameterList(String name, Collection values, Type type)
QueryBind multiple values to a named query parameter. This is useful for binding a list of values to an expression such as <tt>foo.bar in (:value_list)</tt>.
setParameterList in interface NativeQuery<T>setParameterList in interface SQLQuery<T>name - the name of the parametervalues - a collection of values to listtype - the Hibernate type of the valuesthis, for method chainingNativeQueryImplementor<T> setParameterList(String name, Object[] values, Type type)
QueryBind multiple values to a named query parameter. This is useful for binding a list of values to an expression such as <tt>foo.bar in (:value_list)</tt>.
setParameterList in interface NativeQuery<T>setParameterList in interface SQLQuery<T>name - the name of the parametervalues - a collection of values to listtype - the Hibernate type of the valuesthis, for method chainingNativeQueryImplementor<T> setParameterList(String name, Object[] values)
QueryBind multiple values to a named query parameter. The Hibernate type of the parameter is first detected via the usage/position in the query and if not sufficient secondly guessed from the class of the first object in the array. This is useful for binding a list of values to an expression such as <tt>foo.bar in (:value_list)</tt>.
setParameterList in interface NativeQuery<T>setParameterList in interface SQLQuery<T>name - the name of the parametervalues - a collection of values to listthis, for method chainingNativeQueryImplementor<T> setProperties(Object bean)
QueryBind 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 heuristics.
setProperties in interface NativeQuery<T>setProperties in interface SQLQuery<T>bean - any JavaBean or POJOthis, for method chainingNativeQueryImplementor<T> setProperties(Map bean)
QueryBind 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 heuristics.
setProperties in interface NativeQuery<T>setProperties in interface SQLQuery<T>bean - a java.util.Mapthis, for method chainingNativeQueryImplementor<T> setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>NativeQueryImplementor<T> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>NativeQueryImplementor<T> setParameter(String name, Date value, TemporalType temporalType)
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>NativeQueryImplementor<T> setParameter(String name, Calendar value, TemporalType temporalType)
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>NativeQueryImplementor<T> setParameter(int position, Calendar value, TemporalType temporalType)
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>NativeQueryImplementor<T> setParameter(int position, Date value, TemporalType temporalType)
setParameter in interface NativeQuery<T>setParameter in interface QuerysetParameter in interface SQLQuery<T>setParameter in interface TypedQuery<T>NativeQueryImplementor<T> addSynchronizedQuerySpace(String querySpace)
SynchronizeableQueryAdds a query space.
addSynchronizedQuerySpace in interface NativeQuery<T>addSynchronizedQuerySpace in interface SQLQuery<T>addSynchronizedQuerySpace in interface SynchronizeableQuery<T>querySpace - The query space to be auto-flushed for this query.this, for method chainingNativeQueryImplementor<T> addSynchronizedEntityName(String entityName) throws MappingException
SynchronizeableQueryAdds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking. Same as
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String) for all tables associated with the given entity.
addSynchronizedEntityName in interface NativeQuery<T>addSynchronizedEntityName in interface SQLQuery<T>addSynchronizedEntityName in interface SynchronizeableQuery<T>entityName - The name of the entity upon whose defined query spaces we should additionally synchronize.this, for method chainingMappingException - Indicates the given name could not be resolved as an entityNativeQueryImplementor<T> setFlushMode(FlushMode flushMode)
Query(Re)set the current FlushMode in effect for this query.
setFlushMode in interface BasicQueryContract<CommonQueryContract>setFlushMode in interface NativeQuery<T>setFlushMode in interface SQLQuery<T>flushMode - The new FlushMode to use.this, for method chainingQuery.getHibernateFlushMode()NativeQueryImplementor<T> addSynchronizedEntityClass(Class entityClass) throws MappingException
SynchronizeableQueryAdds an entity for (a) auto-flush checking and (b) query result cache invalidation checking. Same as
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.String) for all tables associated with the given entity.
addSynchronizedEntityClass in interface NativeQuery<T>addSynchronizedEntityClass in interface SQLQuery<T>addSynchronizedEntityClass in interface SynchronizeableQuery<T>entityClass - The class of the entity upon whose defined query spaces we should additionally synchronize.this, for method chainingMappingException - Indicates the given class could not be resolved as an entityCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.