Class AbstractHibernateOperations.ResultCollector<R>

java.lang.Object
io.micronaut.data.hibernate.operations.AbstractHibernateOperations.ResultCollector<R>
Type Parameters:
R - The result value.
Enclosing class:
AbstractHibernateOperations<S,Q,P extends Q>

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

    • ResultCollector

      protected ResultCollector()
  • Method Details

    • collectTuple

      protected abstract void collectTuple(P query, Function<jakarta.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(P query)
      Collect a value from the query.
      Parameters:
      query - The query