Package net.sf.basedb.core.hibernate
Class NativeQueryWrapper<R>
- java.lang.Object
-
- net.sf.basedb.core.hibernate.QueryWrapper<R>
-
- net.sf.basedb.core.hibernate.NativeQueryWrapper<R>
-
- All Implemented Interfaces:
javax.persistence.Query
,javax.persistence.TypedQuery<R>
,BasicQueryContract<CommonQueryContract>
,Query<R>
,CommonQueryContract
,NativeQuery<R>
,Query<R>
,SQLQuery<R>
,SynchronizeableQuery<R>
public class NativeQueryWrapper<R> extends QueryWrapper<R> implements NativeQuery<R>
A simple wrapper around hibernate native (SQL) queries which simply forwards all calls to a parent query.- Since:
- 3.12.1
- Author:
- nicklas
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.SQLQuery
SQLQuery.FetchReturn, SQLQuery.ReturnProperty, SQLQuery.RootReturn
-
-
Field Summary
Fields Modifier and Type Field Description protected NativeQuery<R>
query
-
Constructor Summary
Constructors Constructor Description NativeQueryWrapper(NativeQuery<R> query)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NativeQuery<R>
addEntity(Class entityType)
Deprecated.NativeQuery<R>
addEntity(String entityName)
Deprecated.NativeQuery<R>
addEntity(String tableAlias, Class entityType)
Deprecated.NativeQuery<R>
addEntity(String tableAlias, Class entityClass, LockMode lockMode)
Deprecated.NativeQuery<R>
addEntity(String tableAlias, String entityName)
Deprecated.NativeQuery<R>
addEntity(String tableAlias, String entityName, LockMode lockMode)
Deprecated.SQLQuery.FetchReturn
addFetch(String tableAlias, String ownerTableAlias, String joinPropertyName)
Deprecated.NativeQuery<R>
addJoin(String tableAlias, String path)
Deprecated.NativeQuery<R>
addJoin(String tableAlias, String ownerTableAlias, String joinPropertyName)
Deprecated.NativeQuery<R>
addJoin(String tableAlias, String path, LockMode lockMode)
Deprecated.NativeQuery<R>
addQueryHint(String hint)
Deprecated.SQLQuery.RootReturn
addRoot(String tableAlias, Class entityType)
Deprecated.SQLQuery.RootReturn
addRoot(String tableAlias, String entityName)
Deprecated.NativeQuery<R>
addScalar(String columnAlias)
Deprecated.NativeQuery<R>
addScalar(String columnAlias, Type type)
Deprecated.NativeQuery<R>
addSynchronizedEntityClass(Class entityClass)
NativeQuery<R>
addSynchronizedEntityName(String entityName)
NativeQuery<R>
addSynchronizedQuerySpace(String querySpace)
NativeQuery<R>
getParentQuery()
Get the underlying parent query from Hibernate.List<NativeSQLQueryReturn>
getQueryReturns()
Deprecated.Collection<String>
getSynchronizedQuerySpaces()
boolean
isCallable()
Deprecated.NativeQuery<R>
setCacheable(boolean cacheable)
Deprecated.NativeQuery<R>
setCacheMode(CacheMode cacheMode)
Deprecated.NativeQuery<R>
setCacheRegion(String cacheRegion)
Deprecated.NativeQuery<R>
setComment(String comment)
Deprecated.NativeQuery<R>
setFetchSize(int fetchSize)
Deprecated.NativeQuery<R>
setFirstResult(int firstResult)
NativeQuery<R>
setFlushMode(javax.persistence.FlushModeType flushMode)
Deprecated.NativeQuery<R>
setFlushMode(FlushMode flushMode)
Deprecated.NativeQuery<R>
setHibernateFlushMode(FlushMode flushMode)
Deprecated.NativeQuery<R>
setHint(String name, Object value)
NativeQuery<R>
setLockMode(String alias, LockMode lockMode)
Deprecated.NativeQuery<R>
setLockMode(javax.persistence.LockModeType lockMode)
NativeQuery<R>
setLockOptions(LockOptions lockOptions)
Deprecated.NativeQuery<R>
setMaxResults(int maxResults)
NativeQuery<R>
setParameter(int position, Object value)
NativeQuery<R>
setParameter(int position, Object val, javax.persistence.TemporalType temporalType)
NativeQuery<R>
setParameter(int position, Object val, Type type)
NativeQuery<R>
setParameter(int position, Instant value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(int position, LocalDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(int position, OffsetDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(int position, ZonedDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(int position, Calendar value, javax.persistence.TemporalType temporalType)
NativeQuery<R>
setParameter(int position, Date value, javax.persistence.TemporalType temporalType)
NativeQuery<R>
setParameter(String name, Object value)
NativeQuery<R>
setParameter(String name, Object val, javax.persistence.TemporalType temporalType)
NativeQuery<R>
setParameter(String name, Object val, Type type)
NativeQuery<R>
setParameter(String name, Instant value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(String name, LocalDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(String name, OffsetDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(String name, ZonedDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType)
NativeQuery<R>
setParameter(String name, Date value, javax.persistence.TemporalType temporalType)
NativeQuery<R>
setParameter(javax.persistence.Parameter<Instant> param, Instant value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(javax.persistence.Parameter<LocalDateTime> param, LocalDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(javax.persistence.Parameter<OffsetDateTime> param, OffsetDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(javax.persistence.Parameter<ZonedDateTime> param, ZonedDateTime value, javax.persistence.TemporalType type)
NativeQuery<R>
setParameter(javax.persistence.Parameter<Calendar> param, Calendar value, javax.persistence.TemporalType temporalType)
NativeQuery<R>
setParameter(javax.persistence.Parameter<Date> param, Date value, javax.persistence.TemporalType temporalType)
<P> NativeQuery<R>
setParameter(javax.persistence.Parameter<P> param, P value)
<P> NativeQuery<R>
setParameter(QueryParameter<P> parameter, P val)
<P> NativeQuery<R>
setParameter(QueryParameter<P> parameter, P val, javax.persistence.TemporalType temporalType)
<P> NativeQuery<R>
setParameter(QueryParameter<P> parameter, P val, Type type)
NativeQuery<R>
setParameterList(String name, Object[] values)
NativeQuery<R>
setParameterList(String name, Object[] values, Type type)
NativeQuery<R>
setParameterList(String name, Collection values)
NativeQuery<R>
setParameterList(String name, Collection values, Type type)
<P> NativeQuery<R>
setParameterList(QueryParameter<P> parameter, Collection<P> values)
NativeQuery<R>
setProperties(Object bean)
NativeQuery<R>
setProperties(Map bean)
NativeQuery<R>
setReadOnly(boolean readOnly)
Deprecated.NativeQuery<R>
setResultSetMapping(String name)
NativeQuery<R>
setTimeout(int timeout)
Deprecated.-
Methods inherited from class net.sf.basedb.core.hibernate.QueryWrapper
determineProperBooleanType, determineProperBooleanType, executeUpdate, getCacheMode, getCacheRegion, getComment, getFetchSize, getFirstResult, getFlushMode, getHibernateFlushMode, getHints, getLockMode, getLockOptions, getMaxResults, getNamedParameters, getParameter, getParameter, getParameter, getParameter, getParameterMetadata, getParameters, getParameterValue, getParameterValue, getParameterValue, getProducer, getQueryOptions, getQueryString, getReturnAliases, getReturnTypes, getTimeout, isBound, isCacheable, isReadOnly, iterate, 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, setParameterList, setParameterList, setParameterList, setParameterList, setParameters, setResultTransformer, setSerializable, setSerializable, setShort, setShort, setString, setString, setText, setText, setTime, setTime, setTimestamp, setTimestamp, stream, uniqueResult, uniqueResultOptional, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.persistence.Query
executeUpdate, getFirstResult, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
-
Methods inherited from interface org.hibernate.Query
determineProperBooleanType, determineProperBooleanType, getFlushMode, getHibernateFirstResult, getHibernateMaxResults, getNamedParameters, getQueryOptions, getReturnAliases, getReturnTypes, getTimeout, isCacheable, isReadOnly, iterate, setHibernateFirstResult, setHibernateMaxResults, setParameterList, setParameterList, setParameterList, setParameterList
-
Methods inherited from interface org.hibernate.query.Query
getCacheMode, getCacheRegion, getComment, getFetchSize, getHibernateFlushMode, getLockOptions, getParameterMetadata, getProducer, 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, uniqueResultOptional
-
-
-
-
Field Detail
-
query
protected final NativeQuery<R> query
-
-
Constructor Detail
-
NativeQueryWrapper
public NativeQueryWrapper(NativeQuery<R> query)
-
-
Method Detail
-
getParentQuery
public NativeQuery<R> getParentQuery()
Get the underlying parent query from Hibernate.
-
isCallable
@Deprecated public boolean isCallable()
Deprecated.- Specified by:
isCallable
in interfaceNativeQuery<R>
- Specified by:
isCallable
in interfaceSQLQuery<R>
-
getQueryReturns
@Deprecated public List<NativeSQLQueryReturn> getQueryReturns()
Deprecated.- Specified by:
getQueryReturns
in interfaceSQLQuery<R>
-
addScalar
@Deprecated public NativeQuery<R> addScalar(String columnAlias)
Deprecated.
-
addScalar
@Deprecated public NativeQuery<R> addScalar(String columnAlias, Type type)
Deprecated.
-
addRoot
@Deprecated public SQLQuery.RootReturn addRoot(String tableAlias, String entityName)
Deprecated.
-
addRoot
@Deprecated public SQLQuery.RootReturn addRoot(String tableAlias, Class entityType)
Deprecated.
-
addEntity
@Deprecated public NativeQuery<R> addEntity(String entityName)
Deprecated.
-
addEntity
@Deprecated public NativeQuery<R> addEntity(String tableAlias, String entityName)
Deprecated.
-
addEntity
@Deprecated public NativeQuery<R> addEntity(String tableAlias, String entityName, LockMode lockMode)
Deprecated.
-
addEntity
@Deprecated public NativeQuery<R> addEntity(Class entityType)
Deprecated.
-
addEntity
@Deprecated public NativeQuery<R> addEntity(String tableAlias, Class entityType)
Deprecated.
-
addEntity
@Deprecated public NativeQuery<R> addEntity(String tableAlias, Class entityClass, LockMode lockMode)
Deprecated.
-
addFetch
@Deprecated public SQLQuery.FetchReturn addFetch(String tableAlias, String ownerTableAlias, String joinPropertyName)
Deprecated.
-
addJoin
@Deprecated public NativeQuery<R> addJoin(String tableAlias, String path)
Deprecated.
-
addJoin
@Deprecated public NativeQuery<R> addJoin(String tableAlias, String ownerTableAlias, String joinPropertyName)
Deprecated.
-
addJoin
@Deprecated public NativeQuery<R> addJoin(String tableAlias, String path, LockMode lockMode)
Deprecated.
-
setHibernateFlushMode
@Deprecated public NativeQuery<R> setHibernateFlushMode(FlushMode flushMode)
Deprecated.- Specified by:
setHibernateFlushMode
in interfaceBasicQueryContract<R>
- Specified by:
setHibernateFlushMode
in interfaceNativeQuery<R>
- Specified by:
setHibernateFlushMode
in interfaceQuery<R>
- Specified by:
setHibernateFlushMode
in interfaceQuery<R>
- Specified by:
setHibernateFlushMode
in interfaceSQLQuery<R>
- Overrides:
setHibernateFlushMode
in classQueryWrapper<R>
-
setFlushMode
@Deprecated public NativeQuery<R> setFlushMode(javax.persistence.FlushModeType flushMode)
Deprecated.- Specified by:
setFlushMode
in interfaceNativeQuery<R>
- Specified by:
setFlushMode
in interfacejavax.persistence.Query
- Specified by:
setFlushMode
in interfaceQuery<R>
- Specified by:
setFlushMode
in interfaceQuery<R>
- Specified by:
setFlushMode
in interfaceSQLQuery<R>
- Specified by:
setFlushMode
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setFlushMode
in classQueryWrapper<R>
-
setCacheMode
@Deprecated public NativeQuery<R> setCacheMode(CacheMode cacheMode)
Deprecated.- Specified by:
setCacheMode
in interfaceBasicQueryContract<R>
- Specified by:
setCacheMode
in interfaceNativeQuery<R>
- Specified by:
setCacheMode
in interfaceQuery<R>
- Specified by:
setCacheMode
in interfaceQuery<R>
- Specified by:
setCacheMode
in interfaceSQLQuery<R>
- Overrides:
setCacheMode
in classQueryWrapper<R>
-
setCacheable
@Deprecated public NativeQuery<R> setCacheable(boolean cacheable)
Deprecated.- Specified by:
setCacheable
in interfaceBasicQueryContract<R>
- Specified by:
setCacheable
in interfaceNativeQuery<R>
- Specified by:
setCacheable
in interfaceQuery<R>
- Specified by:
setCacheable
in interfaceQuery<R>
- Specified by:
setCacheable
in interfaceSQLQuery<R>
- Overrides:
setCacheable
in classQueryWrapper<R>
-
setCacheRegion
@Deprecated public NativeQuery<R> setCacheRegion(String cacheRegion)
Deprecated.- Specified by:
setCacheRegion
in interfaceBasicQueryContract<R>
- Specified by:
setCacheRegion
in interfaceNativeQuery<R>
- Specified by:
setCacheRegion
in interfaceQuery<R>
- Specified by:
setCacheRegion
in interfaceQuery<R>
- Specified by:
setCacheRegion
in interfaceSQLQuery<R>
- Overrides:
setCacheRegion
in classQueryWrapper<R>
-
setTimeout
@Deprecated public NativeQuery<R> setTimeout(int timeout)
Deprecated.- Specified by:
setTimeout
in interfaceBasicQueryContract<R>
- Specified by:
setTimeout
in interfaceNativeQuery<R>
- Specified by:
setTimeout
in interfaceQuery<R>
- Specified by:
setTimeout
in interfaceQuery<R>
- Specified by:
setTimeout
in interfaceSQLQuery<R>
- Overrides:
setTimeout
in classQueryWrapper<R>
-
setFetchSize
@Deprecated public NativeQuery<R> setFetchSize(int fetchSize)
Deprecated.- Specified by:
setFetchSize
in interfaceBasicQueryContract<R>
- Specified by:
setFetchSize
in interfaceNativeQuery<R>
- Specified by:
setFetchSize
in interfaceQuery<R>
- Specified by:
setFetchSize
in interfaceQuery<R>
- Specified by:
setFetchSize
in interfaceSQLQuery<R>
- Overrides:
setFetchSize
in classQueryWrapper<R>
-
setReadOnly
@Deprecated public NativeQuery<R> setReadOnly(boolean readOnly)
Deprecated.- Specified by:
setReadOnly
in interfaceBasicQueryContract<R>
- Specified by:
setReadOnly
in interfaceNativeQuery<R>
- Specified by:
setReadOnly
in interfaceQuery<R>
- Specified by:
setReadOnly
in interfaceQuery<R>
- Specified by:
setReadOnly
in interfaceSQLQuery<R>
- Overrides:
setReadOnly
in classQueryWrapper<R>
-
setLockOptions
@Deprecated public NativeQuery<R> setLockOptions(LockOptions lockOptions)
Deprecated.- Specified by:
setLockOptions
in interfaceNativeQuery<R>
- Specified by:
setLockOptions
in interfaceQuery<R>
- Specified by:
setLockOptions
in interfaceQuery<R>
- Specified by:
setLockOptions
in interfaceSQLQuery<R>
- Overrides:
setLockOptions
in classQueryWrapper<R>
-
setLockMode
@Deprecated public NativeQuery<R> setLockMode(String alias, LockMode lockMode)
Deprecated.- Specified by:
setLockMode
in interfaceNativeQuery<R>
- Specified by:
setLockMode
in interfaceQuery<R>
- Specified by:
setLockMode
in interfaceQuery<R>
- Specified by:
setLockMode
in interfaceSQLQuery<R>
- Overrides:
setLockMode
in classQueryWrapper<R>
-
setComment
@Deprecated public NativeQuery<R> setComment(String comment)
Deprecated.- Specified by:
setComment
in interfaceNativeQuery<R>
- Specified by:
setComment
in interfaceQuery<R>
- Specified by:
setComment
in interfaceQuery<R>
- Specified by:
setComment
in interfaceSQLQuery<R>
- Overrides:
setComment
in classQueryWrapper<R>
-
addQueryHint
@Deprecated public NativeQuery<R> addQueryHint(String hint)
Deprecated.- Specified by:
addQueryHint
in interfaceNativeQuery<R>
- Specified by:
addQueryHint
in interfaceQuery<R>
- Specified by:
addQueryHint
in interfaceQuery<R>
- Specified by:
addQueryHint
in interfaceSQLQuery<R>
- Overrides:
addQueryHint
in classQueryWrapper<R>
-
getSynchronizedQuerySpaces
public Collection<String> getSynchronizedQuerySpaces()
- Specified by:
getSynchronizedQuerySpaces
in interfaceSynchronizeableQuery<R>
-
setFlushMode
@Deprecated public NativeQuery<R> setFlushMode(FlushMode flushMode)
Deprecated.- Specified by:
setFlushMode
in interfaceBasicQueryContract<R>
- Specified by:
setFlushMode
in interfaceNativeQuery<R>
- Specified by:
setFlushMode
in interfaceQuery<R>
- Specified by:
setFlushMode
in interfaceQuery<R>
- Specified by:
setFlushMode
in interfaceSQLQuery<R>
- Overrides:
setFlushMode
in classQueryWrapper<R>
-
setResultSetMapping
public NativeQuery<R> setResultSetMapping(String name)
- Specified by:
setResultSetMapping
in interfaceNativeQuery<R>
- Specified by:
setResultSetMapping
in interfaceSQLQuery<R>
-
setParameter
public <P> NativeQuery<R> setParameter(QueryParameter<P> parameter, P val)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public <P> NativeQuery<R> setParameter(javax.persistence.Parameter<P> param, P value)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public <P> NativeQuery<R> setParameter(QueryParameter<P> parameter, P val, Type type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, Object val, Type type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, Object val, Type type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public <P> NativeQuery<R> setParameter(QueryParameter<P> parameter, P val, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, Object val, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, Object val, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(javax.persistence.Parameter<Calendar> param, Calendar value, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(javax.persistence.Parameter<Date> param, Date value, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, Object value)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, Date value, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, Object value)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, Calendar value, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, Date value, javax.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.Query
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSQLQuery<R>
- Specified by:
setParameter
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameterList
public <P> NativeQuery<R> setParameterList(QueryParameter<P> parameter, Collection<P> values)
- Specified by:
setParameterList
in interfaceNativeQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSQLQuery<R>
- Overrides:
setParameterList
in classQueryWrapper<R>
-
setParameterList
public NativeQuery<R> setParameterList(String name, Collection values)
- Specified by:
setParameterList
in interfaceNativeQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSQLQuery<R>
- Overrides:
setParameterList
in classQueryWrapper<R>
-
setParameterList
public NativeQuery<R> setParameterList(String name, Collection values, Type type)
- Specified by:
setParameterList
in interfaceNativeQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSQLQuery<R>
- Overrides:
setParameterList
in classQueryWrapper<R>
-
setParameterList
public NativeQuery<R> setParameterList(String name, Object[] values, Type type)
- Specified by:
setParameterList
in interfaceNativeQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSQLQuery<R>
- Overrides:
setParameterList
in classQueryWrapper<R>
-
setParameterList
public NativeQuery<R> setParameterList(String name, Object[] values)
- Specified by:
setParameterList
in interfaceNativeQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSQLQuery<R>
- Overrides:
setParameterList
in classQueryWrapper<R>
-
setProperties
public NativeQuery<R> setProperties(Object bean)
- Specified by:
setProperties
in interfaceNativeQuery<R>
- Specified by:
setProperties
in interfaceQuery<R>
- Specified by:
setProperties
in interfaceQuery<R>
- Specified by:
setProperties
in interfaceSQLQuery<R>
- Overrides:
setProperties
in classQueryWrapper<R>
-
setProperties
public NativeQuery<R> setProperties(Map bean)
- Specified by:
setProperties
in interfaceNativeQuery<R>
- Specified by:
setProperties
in interfaceQuery<R>
- Specified by:
setProperties
in interfaceQuery<R>
- Specified by:
setProperties
in interfaceSQLQuery<R>
- Overrides:
setProperties
in classQueryWrapper<R>
-
addSynchronizedQuerySpace
public NativeQuery<R> addSynchronizedQuerySpace(String querySpace)
- Specified by:
addSynchronizedQuerySpace
in interfaceNativeQuery<R>
- Specified by:
addSynchronizedQuerySpace
in interfaceSQLQuery<R>
- Specified by:
addSynchronizedQuerySpace
in interfaceSynchronizeableQuery<R>
-
addSynchronizedEntityName
public NativeQuery<R> addSynchronizedEntityName(String entityName) throws MappingException
- Specified by:
addSynchronizedEntityName
in interfaceNativeQuery<R>
- Specified by:
addSynchronizedEntityName
in interfaceSQLQuery<R>
- Specified by:
addSynchronizedEntityName
in interfaceSynchronizeableQuery<R>
- Throws:
MappingException
-
addSynchronizedEntityClass
public NativeQuery<R> addSynchronizedEntityClass(Class entityClass) throws MappingException
- Specified by:
addSynchronizedEntityClass
in interfaceNativeQuery<R>
- Specified by:
addSynchronizedEntityClass
in interfaceSQLQuery<R>
- Specified by:
addSynchronizedEntityClass
in interfaceSynchronizeableQuery<R>
- Throws:
MappingException
-
setFirstResult
public NativeQuery<R> setFirstResult(int firstResult)
- Specified by:
setFirstResult
in interfaceNativeQuery<R>
- Specified by:
setFirstResult
in interfacejavax.persistence.Query
- Specified by:
setFirstResult
in interfaceQuery<R>
- Specified by:
setFirstResult
in interfaceQuery<R>
- Specified by:
setFirstResult
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setFirstResult
in classQueryWrapper<R>
-
setMaxResults
public NativeQuery<R> setMaxResults(int maxResults)
- Specified by:
setMaxResults
in interfaceNativeQuery<R>
- Specified by:
setMaxResults
in interfacejavax.persistence.Query
- Specified by:
setMaxResults
in interfaceQuery<R>
- Specified by:
setMaxResults
in interfaceQuery<R>
- Specified by:
setMaxResults
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setMaxResults
in classQueryWrapper<R>
-
setHint
public NativeQuery<R> setHint(String name, Object value)
- Specified by:
setHint
in interfaceNativeQuery<R>
- Specified by:
setHint
in interfacejavax.persistence.Query
- Specified by:
setHint
in interfaceQuery<R>
- Specified by:
setHint
in interfaceQuery<R>
- Specified by:
setHint
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setHint
in classQueryWrapper<R>
-
setLockMode
public NativeQuery<R> setLockMode(javax.persistence.LockModeType lockMode)
- Specified by:
setLockMode
in interfaceNativeQuery<R>
- Specified by:
setLockMode
in interfacejavax.persistence.Query
- Specified by:
setLockMode
in interfaceQuery<R>
- Specified by:
setLockMode
in interfaceQuery<R>
- Specified by:
setLockMode
in interfacejavax.persistence.TypedQuery<R>
- Overrides:
setLockMode
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, Instant value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, LocalDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, OffsetDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(int position, ZonedDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(javax.persistence.Parameter<Instant> param, Instant value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(javax.persistence.Parameter<LocalDateTime> param, LocalDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(javax.persistence.Parameter<OffsetDateTime> param, OffsetDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(javax.persistence.Parameter<ZonedDateTime> param, ZonedDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, Instant value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, LocalDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, OffsetDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
setParameter
public NativeQuery<R> setParameter(String name, ZonedDateTime value, javax.persistence.TemporalType type)
- Specified by:
setParameter
in interfaceNativeQuery<R>
- Specified by:
setParameter
in interfaceQuery<R>
- Overrides:
setParameter
in classQueryWrapper<R>
-
-