Class MatrixSelectionServiceImpl
java.lang.Object
ch.tocco.nice2.rest.action.impl.matrix.MatrixSelectionServiceImpl
- All Implemented Interfaces:
MatrixSelectionService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<F,T> List <T> applyPerRow(List<MatrixSelectionRule<F>> rules, MatrixKeyFinder<F> keyFinder, Function<MatrixRowSelection, List<T>> applyToRow) RunsapplyToRowfor each row with selected cells.<F> intcountSelectedCells(List<MatrixSelectionRule<F>> rules, MatrixKeyFinder<F> keyFinder)
-
Constructor Details
-
MatrixSelectionServiceImpl
-
-
Method Details
-
countSelectedCells
- Specified by:
countSelectedCellsin interfaceMatrixSelectionService
-
applyPerRow
public <F,T> List<T> applyPerRow(List<MatrixSelectionRule<F>> rules, MatrixKeyFinder<F> keyFinder, Function<MatrixRowSelection, List<T>> applyToRow) Description copied from interface:MatrixSelectionServiceRunsapplyToRowfor each row with selected cells. Consecutive rows are grouped into a new session and transaction of at most 1000 selected cells; a row is never split. Not atomic: if a row throws, its whole batch is rolled back and the batches before it stay committed.- Specified by:
applyPerRowin interfaceMatrixSelectionService
-