Interface InsertListMapper<T>

All Known Subinterfaces:
OracleMapper<T>

public interface InsertListMapper<T>

Oracle批量插入

支持@KeySql.genId(),不支持@KeySql.sql()

因INSERT ALL语法不支持序列,可手工获取序列并设置至Entity或绑定触发器

Author:
qrqhuangcy
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    insertList(List<? extends T> recordList)
    生成如下批量SQL:
  • Method Details

    • insertList

      @InsertProvider(type=OracleProvider.class, method="dynamicSQL") int insertList(List<? extends T> recordList)

      生成如下批量SQL:

      INSERT ALL

      INTO demo_country ( country_id,country_name,country_code ) VALUES ( ?,?,? )

      INTO demo_country ( country_id,country_name,country_code ) VALUES ( ?,?,? )

      INTO demo_country ( country_id,country_name,country_code ) VALUES ( ?,?,? )

      SELECT 1 FROM DUAL

      Parameters:
      recordList -
      Returns: