Class BatchInsert<T>


  • public class BatchInsert<T>
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BatchInsert.Builder<T>  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getInsertStatementSQL()
      Returns the generated SQL for this batch.
      java.util.List<InsertStatementProvider<T>> insertStatements()
      Returns a list of InsertStatement objects.
      static <T> BatchInsert.Builder<T> withRecords​(java.util.List<T> records)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • insertStatements

        public java.util.List<InsertStatementProvider<T>> insertStatements()
        Returns a list of InsertStatement objects. This is useful for MyBatis batch support.
        Returns:
        a List of InsertStatements
      • getInsertStatementSQL

        public java.lang.String getInsertStatementSQL()
        Returns the generated SQL for this batch. This is useful for Spring JDBC batch support.
        Returns:
        the generated INSERT statement
      • withRecords

        public static <T> BatchInsert.Builder<T> withRecords​(java.util.List<T> records)