Package org.compiere.model
Interface IBatchOperation<T extends PO>
- Type Parameters:
T- PO type
- All Known Implementing Classes:
BatchDelete,BatchInsert,BatchUpdate
public interface IBatchOperation<T extends PO>
Interface for batch operations
- Author:
- iDempiere
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd PO to batchdefault voidExecute batch operation.
Throw RuntimeException if failedvoidexecuteBatch(String trxName) Execute batch operation.
Throw RuntimeException if failedintgetCount()Get count of PO in batchbooleanisEmpty()Get is batch empty
-
Method Details
-
add
Add PO to batch- Parameters:
po-
-
executeBatch
default void executeBatch()Execute batch operation.
Throw RuntimeException if failed -
executeBatch
Execute batch operation.
Throw RuntimeException if failed- Parameters:
trxName- transaction name
-
isEmpty
boolean isEmpty()Get is batch empty- Returns:
- true if batch is empty
-
getCount
int getCount()Get count of PO in batch- Returns:
- count of PO in batch
-