Interface EntityConnection.Insert.Builder

Enclosing interface:
EntityConnection.Insert

public static interface EntityConnection.Insert.Builder
A builder for EntityConnection.Insert operation.
  • Method Details

    • batchSize

      EntityConnection.Insert.Builder batchSize(int batchSize)
      Parameters:
      batchSize - the commit batch size
      Returns:
      this builder instance
    • progressReporter

      EntityConnection.Insert.Builder progressReporter(Consumer<Integer> progressReporter)
      Parameters:
      progressReporter - if specified this will be used to report batch progress
      Returns:
      this builder instance
    • onInsert

      EntityConnection.Insert.Builder onInsert(Consumer<Collection<is.codion.framework.domain.entity.Entity.Key>> onInsert)
      Parameters:
      onInsert - notified each time a batch is inserted, providing the inserted keys
      Returns:
      this builder instance
    • execute

      void execute() throws is.codion.common.db.exception.DatabaseException
      Builds and executes this insert operation
      Throws:
      is.codion.common.db.exception.DatabaseException - in case of an exception
    • build

      Returns:
      a new EntityConnection.Insert instance