Class BatchInsert<T>

java.lang.Object
org.mybatis.dynamic.sql.insert.render.BatchInsert<T>

public class BatchInsert<T> extends Object
  • Method Details

    • insertStatements

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

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

      public List<T> getRecords()
    • withRecords

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