Class MutinyQueryImpl<R>
- java.lang.Object
-
- org.hibernate.reactive.mutiny.impl.MutinyQueryImpl<R>
-
- All Implemented Interfaces:
org.hibernate.query.CommonQueryContract
,Mutiny.MutationQuery<R>
,Mutiny.Query<R>
,Mutiny.SelectionQuery<R>
public class MutinyQueryImpl<R> extends java.lang.Object implements Mutiny.Query<R>
Implementation ofMutiny.Query
.
-
-
Constructor Summary
Constructors Constructor Description MutinyQueryImpl(ReactiveQuery<R> delegate, MutinySessionFactoryImpl factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mutiny.Query<R>
addQueryHint(java.lang.String hint)
Mutiny.Query<R>
applyGraph(org.hibernate.graph.RootGraph graph, org.hibernate.graph.GraphSemantic semantic)
io.smallrye.mutiny.Uni<java.lang.Integer>
executeUpdate()
org.hibernate.CacheMode
getCacheMode()
java.lang.String
getCacheRegion()
jakarta.persistence.CacheRetrieveMode
getCacheRetrieveMode()
jakarta.persistence.CacheStoreMode
getCacheStoreMode()
java.lang.String
getComment()
java.lang.Integer
getFetchSize()
int
getFirstResult()
jakarta.persistence.FlushModeType
getFlushMode()
org.hibernate.FlushMode
getHibernateFlushMode()
org.hibernate.LockMode
getHibernateLockMode()
jakarta.persistence.LockModeType
getLockMode()
org.hibernate.LockOptions
getLockOptions()
org.hibernate.query.ParameterMetadata
getParameterMetadata()
org.hibernate.query.spi.QueryOptions
getQueryOptions()
java.lang.String
getQueryString()
io.smallrye.mutiny.Uni<R>
getSingleResult()
io.smallrye.mutiny.Uni<R>
getSingleResultOrNull()
java.lang.Integer
getTimeout()
boolean
isCacheable()
boolean
isReadOnly()
io.smallrye.mutiny.Uni<java.util.List<R>>
list()
Mutiny.SelectionQuery<R>
setAliasSpecificLockMode(java.lang.String alias, org.hibernate.LockMode lockMode)
Mutiny.Query<R>
setCacheable(boolean cacheable)
Mutiny.Query<R>
setCacheMode(org.hibernate.CacheMode cacheMode)
Mutiny.Query<R>
setCacheRegion(java.lang.String cacheRegion)
Mutiny.Query<R>
setCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)
Mutiny.Query<R>
setCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode)
Mutiny.Query<R>
setComment(java.lang.String comment)
Mutiny.Query<R>
setFetchSize(int fetchSize)
Mutiny.Query<R>
setFirstResult(int startPosition)
Mutiny.Query<R>
setFlushMode(jakarta.persistence.FlushModeType flushMode)
Mutiny.SelectionQuery<R>
setFollowOnLocking(boolean enable)
Mutiny.Query<R>
setHibernateFlushMode(org.hibernate.FlushMode flushMode)
Mutiny.SelectionQuery<R>
setHibernateLockMode(org.hibernate.LockMode lockMode)
Mutiny.Query<R>
setHint(java.lang.String hintName, java.lang.Object value)
Mutiny.Query<R>
setLockMode(jakarta.persistence.LockModeType lockMode)
Mutiny.Query<R>
setLockMode(java.lang.String alias, org.hibernate.LockMode lockMode)
Mutiny.Query<R>
setLockOptions(org.hibernate.LockOptions lockOptions)
Mutiny.Query<R>
setMaxResults(int maxResult)
Mutiny.Query<R>
setParameter(int parameter, java.lang.Object argument)
Bind the given argument to an ordinal query parameter.Mutiny.Query<R>
setParameter(int parameter, java.time.Instant argument, jakarta.persistence.TemporalType temporalType)
Bind anInstant
value to the ordinal query parameter using just the portion indicated by the givenTemporalType
.Mutiny.Query<R>
setParameter(int parameter, java.util.Calendar argument, jakarta.persistence.TemporalType temporalType)
Query
overrideMutiny.Query<R>
setParameter(int parameter, java.util.Date argument, jakarta.persistence.TemporalType temporalType)
Query
override<P> Mutiny.Query<R>
setParameter(int parameter, P argument, java.lang.Class<P> type)
Bind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> Mutiny.Query<R>
setParameter(int parameter, P argument, org.hibernate.query.BindableType<P> type)
Bind the given argument to an ordinal query parameter using the givenBindableType
.Mutiny.Query<R>
setParameter(jakarta.persistence.Parameter<java.util.Calendar> parameter, java.util.Calendar argument, jakarta.persistence.TemporalType temporalType)
Mutiny.Query<R>
setParameter(jakarta.persistence.Parameter<java.util.Date> parameter, java.util.Date argument, jakarta.persistence.TemporalType temporalType)
<T> Mutiny.Query<R>
setParameter(jakarta.persistence.Parameter<T> parameter, T argument)
Mutiny.Query<R>
setParameter(java.lang.String parameter, java.lang.Object argument)
Mutiny.Query<R>
setParameter(java.lang.String parameter, java.time.Instant argument, jakarta.persistence.TemporalType temporalType)
Bind anInstant
value to the named query parameter using just the portion indicated by the givenTemporalType
.Mutiny.Query<R>
setParameter(java.lang.String parameter, java.util.Calendar argument, jakarta.persistence.TemporalType temporalType)
Mutiny.Query<R>
setParameter(java.lang.String parameter, java.util.Date argument, jakarta.persistence.TemporalType temporalType)
<P> Mutiny.Query<R>
setParameter(java.lang.String parameter, P argument, java.lang.Class<P> type)
<P> Mutiny.Query<R>
setParameter(java.lang.String parameter, P argument, org.hibernate.query.BindableType<P> type)
<P> Mutiny.Query<R>
setParameter(org.hibernate.query.QueryParameter<P> parameter, P argument, java.lang.Class<P> type)
<P> Mutiny.Query<R>
setParameter(org.hibernate.query.QueryParameter<P> parameter, P argument, org.hibernate.query.BindableType<P> type)
<T> Mutiny.Query<R>
setParameter(org.hibernate.query.QueryParameter<T> parameter, T argument)
Mutiny.Query<R>
setParameterList(int parameter, java.lang.Object[] arguments)
Bind multiple arguments to an ordinal query parameter.Mutiny.Query<R>
setParameterList(int parameter, java.util.Collection arguments)
Bind multiple arguments to an ordinal query parameter.<P> Mutiny.Query<R>
setParameterList(int parameter, java.util.Collection<? extends P> arguments, java.lang.Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> Mutiny.Query<R>
setParameterList(int parameter, java.util.Collection<? extends P> arguments, org.hibernate.query.BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.<P> Mutiny.Query<R>
setParameterList(int parameter, P[] arguments, java.lang.Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the givenClass
reference to attempt to determine theBindableType
to use.<P> Mutiny.Query<R>
setParameterList(int parameter, P[] arguments, org.hibernate.query.BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.Mutiny.Query<R>
setParameterList(java.lang.String parameter, java.lang.Object[] values)
Bind multiple arguments to a named query parameter.Mutiny.Query<R>
setParameterList(java.lang.String parameter, java.util.Collection arguments)
<P> Mutiny.Query<R>
setParameterList(java.lang.String parameter, java.util.Collection<? extends P> arguments, java.lang.Class<P> javaType)
<P> Mutiny.Query<R>
setParameterList(java.lang.String parameter, java.util.Collection<? extends P> arguments, org.hibernate.query.BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.<P> Mutiny.Query<R>
setParameterList(java.lang.String parameter, P[] arguments, java.lang.Class<P> javaType)
Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> Mutiny.Query<R>
setParameterList(java.lang.String parameter, P[] arguments, org.hibernate.query.BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.<P> Mutiny.Query<R>
setParameterList(org.hibernate.query.QueryParameter<P> parameter, java.util.Collection<? extends P> arguments)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
.<P> Mutiny.Query<R>
setParameterList(org.hibernate.query.QueryParameter<P> parameter, java.util.Collection<? extends P> arguments, java.lang.Class<P> javaType)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use.<P> Mutiny.Query<R>
setParameterList(org.hibernate.query.QueryParameter<P> parameter, java.util.Collection<? extends P> arguments, org.hibernate.query.BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.<P> Mutiny.Query<R>
setParameterList(org.hibernate.query.QueryParameter<P> parameter, P[] arguments)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
<P> Mutiny.Query<R>
setParameterList(org.hibernate.query.QueryParameter<P> parameter, P[] arguments, java.lang.Class<P> javaType)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use.<P> Mutiny.Query<R>
setParameterList(org.hibernate.query.QueryParameter<P> parameter, P[] arguments, org.hibernate.query.BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.Mutiny.Query<R>
setProperties(java.lang.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.Mutiny.Query<R>
setProperties(java.util.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.Mutiny.Query<R>
setReadOnly(boolean readOnly)
Mutiny.Query<R>
setResultListTransformer(org.hibernate.query.ResultListTransformer<R> transformer)
Mutiny.Query<R>
setTimeout(int timeout)
<T> Mutiny.Query<T>
setTupleTransformer(org.hibernate.query.TupleTransformer<T> transformer)
io.smallrye.mutiny.Uni<R>
uniqueResult()
Execute the query and return, the single result of the query as aUni
.io.smallrye.mutiny.Uni<java.util.Optional<R>>
uniqueResultOptional()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.reactive.mutiny.Mutiny.Query
applyFetchGraph, applyLoadGraph
-
Methods inherited from interface org.hibernate.reactive.mutiny.Mutiny.SelectionQuery
getResultList
-
-
-
-
Constructor Detail
-
MutinyQueryImpl
public MutinyQueryImpl(ReactiveQuery<R> delegate, MutinySessionFactoryImpl factory)
-
-
Method Detail
-
getSingleResult
public io.smallrye.mutiny.Uni<R> getSingleResult()
- Specified by:
getSingleResult
in interfaceMutiny.SelectionQuery<R>
-
getSingleResultOrNull
public io.smallrye.mutiny.Uni<R> getSingleResultOrNull()
- Specified by:
getSingleResultOrNull
in interfaceMutiny.SelectionQuery<R>
-
list
public io.smallrye.mutiny.Uni<java.util.List<R>> list()
- Specified by:
list
in interfaceMutiny.SelectionQuery<R>
-
uniqueResult
public io.smallrye.mutiny.Uni<R> uniqueResult()
Description copied from interface:Mutiny.SelectionQuery
Execute the query and return, the single result of the query as aUni
. TheUni
will emit the result of the query, ornull
, if the query had no results.If there is more than one result, the uni will fail with
NonUniqueResultException
- Specified by:
uniqueResult
in interfaceMutiny.SelectionQuery<R>
- Returns:
- a
Uni
that emits the result of the query ornull
-
uniqueResultOptional
public io.smallrye.mutiny.Uni<java.util.Optional<R>> uniqueResultOptional()
- Specified by:
uniqueResultOptional
in interfaceMutiny.SelectionQuery<R>
-
executeUpdate
public io.smallrye.mutiny.Uni<java.lang.Integer> executeUpdate()
- Specified by:
executeUpdate
in interfaceMutiny.MutationQuery<R>
-
getFetchSize
public java.lang.Integer getFetchSize()
- Specified by:
getFetchSize
in interfaceMutiny.SelectionQuery<R>
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interfaceMutiny.SelectionQuery<R>
-
getFirstResult
public int getFirstResult()
- Specified by:
getFirstResult
in interfaceMutiny.SelectionQuery<R>
-
getCacheMode
public org.hibernate.CacheMode getCacheMode()
- Specified by:
getCacheMode
in interfaceMutiny.SelectionQuery<R>
-
getCacheStoreMode
public jakarta.persistence.CacheStoreMode getCacheStoreMode()
- Specified by:
getCacheStoreMode
in interfaceMutiny.SelectionQuery<R>
-
getCacheRetrieveMode
public jakarta.persistence.CacheRetrieveMode getCacheRetrieveMode()
- Specified by:
getCacheRetrieveMode
in interfaceMutiny.SelectionQuery<R>
-
isCacheable
public boolean isCacheable()
- Specified by:
isCacheable
in interfaceMutiny.SelectionQuery<R>
-
getCacheRegion
public java.lang.String getCacheRegion()
- Specified by:
getCacheRegion
in interfaceMutiny.SelectionQuery<R>
-
getLockMode
public jakarta.persistence.LockModeType getLockMode()
- Specified by:
getLockMode
in interfaceMutiny.SelectionQuery<R>
-
getHibernateLockMode
public org.hibernate.LockMode getHibernateLockMode()
- Specified by:
getHibernateLockMode
in interfaceMutiny.SelectionQuery<R>
-
setHibernateLockMode
public Mutiny.SelectionQuery<R> setHibernateLockMode(org.hibernate.LockMode lockMode)
- Specified by:
setHibernateLockMode
in interfaceMutiny.SelectionQuery<R>
-
setAliasSpecificLockMode
public Mutiny.SelectionQuery<R> setAliasSpecificLockMode(java.lang.String alias, org.hibernate.LockMode lockMode)
- Specified by:
setAliasSpecificLockMode
in interfaceMutiny.SelectionQuery<R>
-
setFollowOnLocking
public Mutiny.SelectionQuery<R> setFollowOnLocking(boolean enable)
- Specified by:
setFollowOnLocking
in interfaceMutiny.SelectionQuery<R>
-
getQueryString
public java.lang.String getQueryString()
- Specified by:
getQueryString
in interfaceMutiny.Query<R>
-
applyGraph
public Mutiny.Query<R> applyGraph(org.hibernate.graph.RootGraph graph, org.hibernate.graph.GraphSemantic semantic)
- Specified by:
applyGraph
in interfaceMutiny.Query<R>
-
getComment
public java.lang.String getComment()
- Specified by:
getComment
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
getComment
in interfaceMutiny.Query<R>
-
setComment
public Mutiny.Query<R> setComment(java.lang.String comment)
- Specified by:
setComment
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setComment
in interfaceMutiny.Query<R>
-
addQueryHint
public Mutiny.Query<R> addQueryHint(java.lang.String hint)
- Specified by:
addQueryHint
in interfaceMutiny.Query<R>
-
getLockOptions
public org.hibernate.LockOptions getLockOptions()
- Specified by:
getLockOptions
in interfaceMutiny.Query<R>
- Specified by:
getLockOptions
in interfaceMutiny.SelectionQuery<R>
-
setLockOptions
public Mutiny.Query<R> setLockOptions(org.hibernate.LockOptions lockOptions)
- Specified by:
setLockOptions
in interfaceMutiny.Query<R>
-
setLockMode
public Mutiny.Query<R> setLockMode(java.lang.String alias, org.hibernate.LockMode lockMode)
- Specified by:
setLockMode
in interfaceMutiny.Query<R>
- Specified by:
setLockMode
in interfaceMutiny.SelectionQuery<R>
-
setTupleTransformer
public <T> Mutiny.Query<T> setTupleTransformer(org.hibernate.query.TupleTransformer<T> transformer)
- Specified by:
setTupleTransformer
in interfaceMutiny.Query<R>
-
setResultListTransformer
public Mutiny.Query<R> setResultListTransformer(org.hibernate.query.ResultListTransformer<R> transformer)
- Specified by:
setResultListTransformer
in interfaceMutiny.Query<R>
-
getQueryOptions
public org.hibernate.query.spi.QueryOptions getQueryOptions()
- Specified by:
getQueryOptions
in interfaceMutiny.Query<R>
-
getParameterMetadata
public org.hibernate.query.ParameterMetadata getParameterMetadata()
- Specified by:
getParameterMetadata
in interfaceMutiny.Query<R>
-
setParameter
public Mutiny.Query<R> setParameter(java.lang.String parameter, java.lang.Object argument)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public <P> Mutiny.Query<R> setParameter(java.lang.String parameter, P argument, java.lang.Class<P> type)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public <P> Mutiny.Query<R> setParameter(java.lang.String parameter, P argument, org.hibernate.query.BindableType<P> type)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(java.lang.String parameter, java.time.Instant argument, jakarta.persistence.TemporalType temporalType)
Description copied from interface:Mutiny.Query
Bind anInstant
value to the named query parameter using just the portion indicated by the givenTemporalType
.- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(java.lang.String parameter, java.util.Calendar argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(java.lang.String parameter, java.util.Date argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(int parameter, java.lang.Object argument)
Description copied from interface:Mutiny.Query
Bind the given argument to an ordinal query parameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the forms which accepts a "type".
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
- See Also:
Mutiny.Query.setParameter(int, Object, Class)
,Mutiny.Query.setParameter(int, Object, BindableType)
-
setParameter
public <P> Mutiny.Query<R> setParameter(int parameter, P argument, java.lang.Class<P> type)
Description copied from interface:Mutiny.Query
Bind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Mutiny.Query.setParameter(int, Object)
is used.- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
- See Also:
Mutiny.Query.setParameter(int, Object, BindableType)
-
setParameter
public <P> Mutiny.Query<R> setParameter(int parameter, P argument, org.hibernate.query.BindableType<P> type)
Description copied from interface:Mutiny.Query
Bind the given argument to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(int parameter, java.time.Instant argument, jakarta.persistence.TemporalType temporalType)
Description copied from interface:Mutiny.Query
Bind anInstant
value to the ordinal query parameter using just the portion indicated by the givenTemporalType
.- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(int parameter, java.util.Date argument, jakarta.persistence.TemporalType temporalType)
Description copied from interface:Mutiny.Query
Query
override- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(int parameter, java.util.Calendar argument, jakarta.persistence.TemporalType temporalType)
Description copied from interface:Mutiny.Query
Query
override- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public <T> Mutiny.Query<R> setParameter(org.hibernate.query.QueryParameter<T> parameter, T argument)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public <P> Mutiny.Query<R> setParameter(org.hibernate.query.QueryParameter<P> parameter, P argument, java.lang.Class<P> type)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public <P> Mutiny.Query<R> setParameter(org.hibernate.query.QueryParameter<P> parameter, P argument, org.hibernate.query.BindableType<P> type)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public <T> Mutiny.Query<R> setParameter(jakarta.persistence.Parameter<T> parameter, T argument)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(jakarta.persistence.Parameter<java.util.Calendar> parameter, java.util.Calendar argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameter
public Mutiny.Query<R> setParameter(jakarta.persistence.Parameter<java.util.Date> parameter, java.util.Date argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameter
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameter
in interfaceMutiny.Query<R>
- Specified by:
setParameter
in interfaceMutiny.SelectionQuery<R>
-
setParameterList
public Mutiny.Query<R> setParameterList(java.lang.String parameter, java.util.Collection arguments)
- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(java.lang.String parameter, java.util.Collection<? extends P> arguments, java.lang.Class<P> javaType)
- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(java.lang.String parameter, java.util.Collection<? extends P> arguments, org.hibernate.query.BindableType<P> type)
Description copied from interface:Mutiny.Query
Bind multiple arguments to a named query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public Mutiny.Query<R> setParameterList(java.lang.String parameter, java.lang.Object[] values)
Description copied from interface:Mutiny.Query
Bind multiple arguments to a named query parameter. The "type mapping" for the binding is inferred from the type of the first collection element.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(java.lang.String parameter, P[] arguments, java.lang.Class<P> javaType)
Description copied from interface:Mutiny.Query
Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Mutiny.Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Mutiny.Query.setParameterList(java.lang.String, Object[], BindableType)
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(java.lang.String parameter, P[] arguments, org.hibernate.query.BindableType<P> type)
Description copied from interface:Mutiny.Query
Bind multiple arguments to a named query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public Mutiny.Query<R> setParameterList(int parameter, java.util.Collection arguments)
Description copied from interface:Mutiny.Query
Bind multiple arguments to an ordinal query parameter. The "type mapping" for the binding is inferred from the type of the first collection element.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(int parameter, java.util.Collection<? extends P> arguments, java.lang.Class<P> javaType)
Description copied from interface:Mutiny.Query
Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Mutiny.Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Mutiny.Query.setParameterList(int, Collection, BindableType)
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(int parameter, java.util.Collection<? extends P> arguments, org.hibernate.query.BindableType<P> type)
Description copied from interface:Mutiny.Query
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public Mutiny.Query<R> setParameterList(int parameter, java.lang.Object[] arguments)
Description copied from interface:Mutiny.Query
Bind multiple arguments to an ordinal query parameter.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(int parameter, P[] arguments, java.lang.Class<P> javaType)
Description copied from interface:Mutiny.Query
Bind multiple arguments to an ordinal query parameter using the givenClass
reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Mutiny.Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Mutiny.Query.setParameterList(int, Object[], BindableType)
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(int parameter, P[] arguments, org.hibernate.query.BindableType<P> type)
Description copied from interface:Mutiny.Query
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(org.hibernate.query.QueryParameter<P> parameter, java.util.Collection<? extends P> arguments)
Description copied from interface:Mutiny.Query
Bind multiple arguments to the query parameter represented by the givenQueryParameter
.The type of the parameter is inferred from the context in which it occurs, and from the type of the first given argument.
- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Parameters:
parameter
- the parameter mementoarguments
- a collection of arguments- Returns:
this
, for method chaining
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(org.hibernate.query.QueryParameter<P> parameter, java.util.Collection<? extends P> arguments, java.lang.Class<P> javaType)
Description copied from interface:Mutiny.Query
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Mutiny.Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Mutiny.Query.setParameterList(QueryParameter, java.util.Collection, BindableType)
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(org.hibernate.query.QueryParameter<P> parameter, java.util.Collection<? extends P> arguments, org.hibernate.query.BindableType<P> type)
Description copied from interface:Mutiny.Query
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(org.hibernate.query.QueryParameter<P> parameter, P[] arguments)
Description copied from interface:Mutiny.Query
Bind multiple arguments to the query parameter represented by the givenQueryParameter
The type of the parameter is inferred between the context in which it occurs, the type associated with the QueryParameter and the type of the first given argument.
- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Parameters:
parameter
- the parameter mementoarguments
- a collection of arguments- Returns:
this
, for method chaining
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(org.hibernate.query.QueryParameter<P> parameter, P[] arguments, java.lang.Class<P> javaType)
Description copied from interface:Mutiny.Query
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Mutiny.Query.setParameterList(String, Collection)
is used- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Mutiny.Query.setParameterList(QueryParameter, Object[], BindableType)
-
setParameterList
public <P> Mutiny.Query<R> setParameterList(org.hibernate.query.QueryParameter<P> parameter, P[] arguments, org.hibernate.query.BindableType<P> type)
Description copied from interface:Mutiny.Query
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterList
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setParameterList
in interfaceMutiny.MutationQuery<R>
- Specified by:
setParameterList
in interfaceMutiny.Query<R>
- Specified by:
setParameterList
in interfaceMutiny.SelectionQuery<R>
- Returns:
this
, for method chaining
-
setProperties
public Mutiny.Query<R> setProperties(java.lang.Object bean)
Description copied from interface:Mutiny.Query
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.- Specified by:
setProperties
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setProperties
in interfaceMutiny.MutationQuery<R>
- Specified by:
setProperties
in interfaceMutiny.Query<R>
- Specified by:
setProperties
in interfaceMutiny.SelectionQuery<R>
- Parameters:
bean
- any JavaBean or POJO- Returns:
this
, for method chaining
-
setProperties
public Mutiny.Query<R> setProperties(java.util.Map bean)
Description copied from interface:Mutiny.Query
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.- Specified by:
setProperties
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setProperties
in interfaceMutiny.MutationQuery<R>
- Specified by:
setProperties
in interfaceMutiny.Query<R>
- Specified by:
setProperties
in interfaceMutiny.SelectionQuery<R>
- Parameters:
bean
- aMap
of names to arguments- Returns:
this
, for method chaining
-
setHibernateFlushMode
public Mutiny.Query<R> setHibernateFlushMode(org.hibernate.FlushMode flushMode)
- Specified by:
setHibernateFlushMode
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setHibernateFlushMode
in interfaceMutiny.MutationQuery<R>
- Specified by:
setHibernateFlushMode
in interfaceMutiny.Query<R>
- Specified by:
setHibernateFlushMode
in interfaceMutiny.SelectionQuery<R>
-
getTimeout
public java.lang.Integer getTimeout()
- Specified by:
getTimeout
in interfaceorg.hibernate.query.CommonQueryContract
-
setCacheable
public Mutiny.Query<R> setCacheable(boolean cacheable)
- Specified by:
setCacheable
in interfaceMutiny.Query<R>
- Specified by:
setCacheable
in interfaceMutiny.SelectionQuery<R>
-
setCacheRegion
public Mutiny.Query<R> setCacheRegion(java.lang.String cacheRegion)
- Specified by:
setCacheRegion
in interfaceMutiny.Query<R>
- Specified by:
setCacheRegion
in interfaceMutiny.SelectionQuery<R>
-
setCacheMode
public Mutiny.Query<R> setCacheMode(org.hibernate.CacheMode cacheMode)
- Specified by:
setCacheMode
in interfaceMutiny.Query<R>
- Specified by:
setCacheMode
in interfaceMutiny.SelectionQuery<R>
-
setCacheStoreMode
public Mutiny.Query<R> setCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode)
- Specified by:
setCacheStoreMode
in interfaceMutiny.Query<R>
- Specified by:
setCacheStoreMode
in interfaceMutiny.SelectionQuery<R>
-
setCacheRetrieveMode
public Mutiny.Query<R> setCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)
- Specified by:
setCacheRetrieveMode
in interfaceMutiny.Query<R>
- Specified by:
setCacheRetrieveMode
in interfaceMutiny.SelectionQuery<R>
- See Also:
Mutiny.SelectionQuery.setCacheMode(CacheMode)
-
setTimeout
public Mutiny.Query<R> setTimeout(int timeout)
- Specified by:
setTimeout
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setTimeout
in interfaceMutiny.Query<R>
- Specified by:
setTimeout
in interfaceMutiny.SelectionQuery<R>
-
setFetchSize
public Mutiny.Query<R> setFetchSize(int fetchSize)
- Specified by:
setFetchSize
in interfaceMutiny.Query<R>
- Specified by:
setFetchSize
in interfaceMutiny.SelectionQuery<R>
-
setReadOnly
public Mutiny.Query<R> setReadOnly(boolean readOnly)
- Specified by:
setReadOnly
in interfaceMutiny.Query<R>
- Specified by:
setReadOnly
in interfaceMutiny.SelectionQuery<R>
-
setMaxResults
public Mutiny.Query<R> setMaxResults(int maxResult)
- Specified by:
setMaxResults
in interfaceMutiny.Query<R>
- Specified by:
setMaxResults
in interfaceMutiny.SelectionQuery<R>
-
setFirstResult
public Mutiny.Query<R> setFirstResult(int startPosition)
- Specified by:
setFirstResult
in interfaceMutiny.Query<R>
- Specified by:
setFirstResult
in interfaceMutiny.SelectionQuery<R>
-
setHint
public Mutiny.Query<R> setHint(java.lang.String hintName, java.lang.Object value)
- Specified by:
setHint
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setHint
in interfaceMutiny.Query<R>
- Specified by:
setHint
in interfaceMutiny.SelectionQuery<R>
-
getFlushMode
public jakarta.persistence.FlushModeType getFlushMode()
- Specified by:
getFlushMode
in interfaceorg.hibernate.query.CommonQueryContract
-
setFlushMode
public Mutiny.Query<R> setFlushMode(jakarta.persistence.FlushModeType flushMode)
- Specified by:
setFlushMode
in interfaceorg.hibernate.query.CommonQueryContract
- Specified by:
setFlushMode
in interfaceMutiny.Query<R>
- Specified by:
setFlushMode
in interfaceMutiny.SelectionQuery<R>
-
getHibernateFlushMode
public org.hibernate.FlushMode getHibernateFlushMode()
- Specified by:
getHibernateFlushMode
in interfaceorg.hibernate.query.CommonQueryContract
-
setLockMode
public Mutiny.Query<R> setLockMode(jakarta.persistence.LockModeType lockMode)
- Specified by:
setLockMode
in interfaceMutiny.Query<R>
- Specified by:
setLockMode
in interfaceMutiny.SelectionQuery<R>
-
-