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 Type
    Method
    Description
    void
    add(T po)
    Add PO to batch
    default void
    Execute batch operation.
    Throw RuntimeException if failed
    void
    Execute batch operation.
    Throw RuntimeException if failed
    int
    Get count of PO in batch
    boolean
    Get is batch empty
  • Method Details

    • add

      void add(T po)
      Add PO to batch
      Parameters:
      po -
    • executeBatch

      default void executeBatch()
      Execute batch operation.
      Throw RuntimeException if failed
    • executeBatch

      void executeBatch(String trxName)
      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