Class MutinyQueryImpl<R>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.smallrye.mutiny.Uni<java.lang.Integer> executeUpdate()
      Asynchronously execute this delete, update, or insert query, returning the updated row count.
      org.hibernate.CacheMode getCacheMode()
      Obtain the CacheMode in effect for this query.
      java.lang.String getCacheRegion()  
      jakarta.persistence.CacheRetrieveMode getCacheRetrieveMode()  
      jakarta.persistence.CacheStoreMode getCacheStoreMode()  
      java.lang.String getComment()  
      int getFirstResult()  
      org.hibernate.FlushMode getFlushMode()
      Obtain the FlushMode in effect for this query.
      int getMaxResults()  
      io.smallrye.mutiny.Uni<java.util.List<R>> getResultList()
      Asynchronously execute this query, returning the query results as a List, via a Uni.
      io.smallrye.mutiny.Uni<R> getSingleResult()
      Asynchronously execute this query, returning a single row that matches the query, throwing an exception if the query returns zero rows or more than one matching row.
      io.smallrye.mutiny.Uni<R> getSingleResultOrNull()
      Asynchronously execute this query, returning a single row that matches the query, or null if the query returns no results, throwing an exception if the query returns more than one matching row.
      boolean isCacheable()  
      boolean isReadOnly()  
      Mutiny.Query<R> setCacheable​(boolean cacheable)
      Enable or disable caching of this query result set in the second-level query cache.
      Mutiny.Query<R> setCacheMode​(org.hibernate.CacheMode cacheMode)
      Set the current CacheMode in effect while this query is being executed.
      Mutiny.Query<R> setCacheRegion​(java.lang.String cacheRegion)
      Set the name of the cache region in which to store this query result set if caching is enabled.
      Mutiny.Query<R> setCacheRetrieveMode​(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)
      Set the current CacheRetrieveMode in effect while this query is being executed.
      Mutiny.Query<R> setCacheStoreMode​(jakarta.persistence.CacheStoreMode cacheStoreMode)
      Set the current CacheStoreMode in effect while this query is being executed.
      Mutiny.Query<R> setComment​(java.lang.String comment)
      Set the comment for this query.
      Mutiny.Query<R> setFirstResult​(int startPosition)
      Set the position of the first result that may be returned by this query when executed, where the results are numbered from 0.
      Mutiny.Query<R> setFlushMode​(jakarta.persistence.FlushModeType flushMode)
      Set the current FlushModeType in effect while this query is being executed.
      Mutiny.Query<R> setFlushMode​(org.hibernate.FlushMode flushMode)
      Set the current FlushMode in effect while this query is being executed.
      Mutiny.Query<R> setLockMode​(jakarta.persistence.LockModeType lockMode)
      Set the LockModeType to use for the whole query.
      Mutiny.Query<R> setLockMode​(java.lang.String alias, org.hibernate.LockMode lockMode)
      Set the LockMode to use for specified alias (as defined in the query's from clause).
      Mutiny.Query<R> setLockMode​(org.hibernate.LockMode lockMode)
      Set the LockMode to use for the whole query.
      Mutiny.Query<R> setMaxResults​(int maxResult)
      Set the maximum number of results that may be returned by this query when executed.
      Mutiny.Query<R> setParameter​(int position, java.lang.Object value)
      Set the value of an ordinal parameter.
      <T1> Mutiny.Query<R> setParameter​(jakarta.persistence.Parameter<T1> param, T1 value)
      Set the value of a typed parameter.
      Mutiny.Query<R> setParameter​(java.lang.String name, java.lang.Object value)
      Set the value of a named parameter.
      Mutiny.Query<R> setPlan​(jakarta.persistence.EntityGraph<R> entityGraph)
      Set the EntityGraph that will be used as a fetch plan for the root entity returned by this query.
      Mutiny.Query<R> setReadOnly​(boolean readOnly)
      Set the read-only/modifiable mode for entities and proxies loaded by this Query.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait