Class ObjectBuilderTypedQuery<X>

All Implemented Interfaces:
javax.persistence.Query, javax.persistence.TypedQuery<X>

public class ObjectBuilderTypedQuery<X> extends TypedQueryWrapper<X>
Since:
1.0.0
Author:
Christian Beikov
  • Constructor Details

    • ObjectBuilderTypedQuery

      public ObjectBuilderTypedQuery(javax.persistence.TypedQuery<?> delegate, Map<javax.persistence.criteria.ParameterExpression<?>,String> criteriaNameMapping, ObjectBuilder<X> builder)
  • Method Details

    • getSingleResult

      public X getSingleResult()
      Specified by:
      getSingleResult in interface javax.persistence.Query
      Specified by:
      getSingleResult in interface javax.persistence.TypedQuery<X>
      Overrides:
      getSingleResult in class TypedQueryWrapper<X>
    • getResultList

      public List<X> getResultList()
      Specified by:
      getResultList in interface javax.persistence.Query
      Specified by:
      getResultList in interface javax.persistence.TypedQuery<X>
      Overrides:
      getResultList in class TypedQueryWrapper<X>
    • getResultStream

      public java.util.stream.Stream<X> getResultStream()
      Specified by:
      getResultStream in interface javax.persistence.Query
      Specified by:
      getResultStream in interface javax.persistence.TypedQuery<X>
      Overrides:
      getResultStream in class TypedQueryWrapper<X>