Class AbstractHibernateOperations.ResultCollector<R>

  • Type Parameters:
    R - The result value.
    Enclosing class:
    AbstractHibernateOperations<S,​Q>

    protected abstract class AbstractHibernateOperations.ResultCollector<R>
    extends java.lang.Object
    The result collector.
    Since:
    3.5.0
    Author:
    Denis Stepanov
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ResultCollector()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      protected abstract void collect​(Q query)
      Collect a value from the query.
      protected abstract void collectTuple​(Q query, java.util.function.Function<javax.persistence.Tuple,​R> fn)
      Collect a tuple from the query and remap it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultCollector

        protected ResultCollector()
    • Method Detail

      • collectTuple

        protected abstract void collectTuple​(Q query,
                                             java.util.function.Function<javax.persistence.Tuple,​R> fn)
        Collect a tuple from the query and remap it.
        Parameters:
        query - The query
        fn - The map function
      • collect

        protected abstract void collect​(Q query)
        Collect a value from the query.
        Parameters:
        query - The query