java.lang.Object
io.github.tonywasher.joceanus.prometheus.database.PrometheusBatchControl

public class PrometheusBatchControl extends Object
Batch control class. This controls updating data lists after the commit of the batch.
  • Constructor Details

    • PrometheusBatchControl

      protected PrometheusBatchControl(Integer pBatchSize)
      Constructor.
      Parameters:
      pBatchSize - the batch size
  • Method Details

    • isFull

      protected boolean isFull()
      Is the batch full.
      Returns:
      true/false is the batch full
    • isActive

      protected boolean isActive()
      Is the batch active.
      Returns:
      true/false is the batch active
    • setCurrentTable

      protected void setCurrentTable(PrometheusTableDataItem<?> pTable, MetisDataState pMode)
      Set the currently active state.
      Parameters:
      pTable - the Table being operated on
      pMode - the Mode that is in operation
    • addBatchItem

      protected void addBatchItem()
      Add item to the batch.
    • commitItems

      protected void commitItems()
      Commit the batch.