Module org.seasar.doma.core
Package org.seasar.doma.jdbc.aggregate
Class AggregateCommand<RESULT,ENTITY>
java.lang.Object
org.seasar.doma.jdbc.aggregate.AggregateCommand<RESULT,ENTITY>
- Type Parameters:
RESULT- the result type of the aggregationENTITY- the root entity type used within the aggregation
- All Implemented Interfaces:
Command<RESULT>
The AggregateCommand class represents a command designed to execute an aggregate operation on a
stream of entities and return a result.
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateCommand(SelectQuery query, EntityType<ENTITY> rootEntityType, StreamReducer<RESULT, ENTITY> streamReducer, AggregateStrategyType aggregateStrategyType) -
Method Summary
-
Constructor Details
-
AggregateCommand
public AggregateCommand(SelectQuery query, EntityType<ENTITY> rootEntityType, StreamReducer<RESULT, ENTITY> streamReducer, AggregateStrategyType aggregateStrategyType)
-
-
Method Details
-
execute
Description copied from interface:CommandExecutes the command and returns the result.This method is responsible for executing the database operation encapsulated by this command. It handles the execution of the SQL statement, processing of results, and any necessary resource management.
-
getQuery
Description copied from interface:CommandReturns the query associated with this command.The query contains the SQL statement and parameters that will be executed by this command.
-