Class CustomReturningSQLTypedQuery<T>

java.lang.Object
com.blazebit.persistence.impl.query.AbstractCustomQuery<ReturningResult<T>>
com.blazebit.persistence.impl.query.CustomReturningSQLTypedQuery<T>
All Implemented Interfaces:
CteQueryWrapper, javax.persistence.Query, javax.persistence.TypedQuery<ReturningResult<T>>

public class CustomReturningSQLTypedQuery<T> extends AbstractCustomQuery<ReturningResult<T>> implements javax.persistence.TypedQuery<ReturningResult<T>>
Since:
1.2.0
Author:
Christian Beikov
  • Constructor Details

  • Method Details

    • getResultList

      public List<ReturningResult<T>> getResultList()
      Specified by:
      getResultList in interface javax.persistence.Query
      Specified by:
      getResultList in interface javax.persistence.TypedQuery<T>
    • getSingleResult

      public ReturningResult<T> getSingleResult()
      Specified by:
      getSingleResult in interface javax.persistence.Query
      Specified by:
      getSingleResult in interface javax.persistence.TypedQuery<T>
    • executeUpdate

      public int executeUpdate()
      Specified by:
      executeUpdate in interface javax.persistence.Query
    • setHint

      public javax.persistence.TypedQuery<ReturningResult<T>> setHint(String hintName, Object value)
      Specified by:
      setHint in interface javax.persistence.Query
      Specified by:
      setHint in interface javax.persistence.TypedQuery<T>
    • getHints

      public Map<String,Object> getHints()
      Specified by:
      getHints in interface javax.persistence.Query
    • setFlushMode

      public javax.persistence.TypedQuery<ReturningResult<T>> setFlushMode(javax.persistence.FlushModeType flushMode)
      Specified by:
      setFlushMode in interface javax.persistence.Query
      Specified by:
      setFlushMode in interface javax.persistence.TypedQuery<T>
    • getFlushMode

      public javax.persistence.FlushModeType getFlushMode()
      Specified by:
      getFlushMode in interface javax.persistence.Query
    • setLockMode

      public javax.persistence.TypedQuery<ReturningResult<T>> setLockMode(javax.persistence.LockModeType lockMode)
      Specified by:
      setLockMode in interface javax.persistence.Query
      Specified by:
      setLockMode in interface javax.persistence.TypedQuery<T>
    • getLockMode

      public javax.persistence.LockModeType getLockMode()
      Specified by:
      getLockMode in interface javax.persistence.Query
    • unwrap

      public <T> T unwrap(Class<T> cls)
      Specified by:
      unwrap in interface javax.persistence.Query
    • setMaxResults

      public javax.persistence.TypedQuery<ReturningResult<T>> setMaxResults(int maxResults)
      Specified by:
      setMaxResults in interface javax.persistence.Query
      Specified by:
      setMaxResults in interface javax.persistence.TypedQuery<T>
      Overrides:
      setMaxResults in class AbstractCustomQuery<ReturningResult<T>>
    • setFirstResult

      public javax.persistence.TypedQuery<ReturningResult<T>> setFirstResult(int startPosition)
      Specified by:
      setFirstResult in interface javax.persistence.Query
      Specified by:
      setFirstResult in interface javax.persistence.TypedQuery<T>
      Overrides:
      setFirstResult in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public <X> javax.persistence.TypedQuery<ReturningResult<T>> setParameter(javax.persistence.Parameter<X> param, X value)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(javax.persistence.Parameter<Calendar> param, Calendar value, javax.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(javax.persistence.Parameter<Date> param, Date value, javax.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(String name, Object value)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(String name, Date value, javax.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(int position, Object value)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(int position, Calendar value, javax.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • setParameter

      public javax.persistence.TypedQuery<ReturningResult<T>> setParameter(int position, Date value, javax.persistence.TemporalType temporalType)
      Specified by:
      setParameter in interface javax.persistence.Query
      Specified by:
      setParameter in interface javax.persistence.TypedQuery<T>
      Overrides:
      setParameter in class AbstractCustomQuery<ReturningResult<T>>
    • getResultStream

      public java.util.stream.Stream<ReturningResult<T>> getResultStream()
      Specified by:
      getResultStream in interface javax.persistence.Query
      Specified by:
      getResultStream in interface javax.persistence.TypedQuery<T>