Interface ExecutableInsertOperation.TerminatingInsert<T>

All Superinterfaces:
ExecutableInsertOperation.TerminatingBulkInsert<T>
All Known Subinterfaces:
ExecutableInsertOperation.ExecutableInsert<T>, ExecutableInsertOperation.InsertWithBulkMode<T>
Enclosing interface:
ExecutableInsertOperation

public static interface ExecutableInsertOperation.TerminatingInsert<T> extends ExecutableInsertOperation.TerminatingBulkInsert<T>
Trigger insert execution by calling one of the terminating methods.
Since:
2.0
Author:
Christoph Strobl
  • Method Details

    • one

      T one(T object)
      Insert exactly one object.
      Parameters:
      object - must not be null.
      Returns:
      the inserted object.
      Throws:
      IllegalArgumentException - if object is null.
    • all

      Collection<? extends T> all(Collection<? extends T> objects)
      Insert a collection of objects.
      Parameters:
      objects - must not be null.
      Returns:
      the inserted objects.
      Throws:
      IllegalArgumentException - if objects is null.