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 Detail

      • ObjectBuilderTypedQuery

        public ObjectBuilderTypedQuery​(javax.persistence.TypedQuery<?> delegate,
                                       com.blazebit.persistence.ObjectBuilder<X> builder)
    • Method Detail

      • 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>