Class JDBCAggregator

java.lang.Object
cool.scx.data.jdbc.JDBCAggregator
All Implemented Interfaces:
cool.scx.data.Aggregator

public class JDBCAggregator extends Object implements cool.scx.data.Aggregator
  • Constructor Details

    • JDBCAggregator

      public JDBCAggregator(JDBCRepository<?> repository, cool.scx.data.query.Query beforeAggregateQuery, cool.scx.data.aggregation.Aggregation aggregationDefinition, cool.scx.data.query.Query afterAggregateQuery)
  • Method Details

    • list

      public <T> List<T> list(Class<T> resultType) throws cool.scx.data.exception.DataAccessException
      Specified by:
      list in interface cool.scx.data.Aggregator
      Throws:
      cool.scx.data.exception.DataAccessException
    • list

      public List<Map<String,Object>> list() throws cool.scx.data.exception.DataAccessException
      Specified by:
      list in interface cool.scx.data.Aggregator
      Throws:
      cool.scx.data.exception.DataAccessException
    • forEach

      public <T, X extends Throwable> void forEach(cool.scx.function.ConsumerX<T,X> resultConsumer, Class<T> resultType) throws cool.scx.data.exception.DataAccessException, X
      Specified by:
      forEach in interface cool.scx.data.Aggregator
      Throws:
      cool.scx.data.exception.DataAccessException
      X
    • forEach

      public <X extends Throwable> void forEach(cool.scx.function.ConsumerX<Map<String,Object>, X> resultConsumer) throws cool.scx.data.exception.DataAccessException, X
      Specified by:
      forEach in interface cool.scx.data.Aggregator
      Throws:
      cool.scx.data.exception.DataAccessException
      X
    • first

      public <T> T first(Class<T> resultType) throws cool.scx.data.exception.DataAccessException
      Specified by:
      first in interface cool.scx.data.Aggregator
      Throws:
      cool.scx.data.exception.DataAccessException
    • first

      public Map<String,Object> first() throws cool.scx.data.exception.DataAccessException
      Specified by:
      first in interface cool.scx.data.Aggregator
      Throws:
      cool.scx.data.exception.DataAccessException