Interface CommonGeneralInsertMapper

All Known Subinterfaces:
CommonInsertMapper<T>

public interface CommonGeneralInsertMapper
This is a general purpose mapper for executing various non-typed insert statements (general inserts and insert selects). This mapper is appropriate for insert statements that do NOT expect generated keys.
  • Method Details

    • generalInsert

      @InsertProvider(type=SqlProviderAdapter.class, method="generalInsert") int generalInsert(GeneralInsertStatementProvider insertStatement)
      Execute an insert statement with input fields supplied directly.
      Parameters:
      insertStatement - the insert statement
      Returns:
      the number of rows affected
    • insertSelect

      @InsertProvider(type=SqlProviderAdapter.class, method="insertSelect") int insertSelect(InsertSelectStatementProvider insertSelectStatement)
      Execute an insert statement with input fields supplied by a select statement.
      Parameters:
      insertSelectStatement - the insert statement
      Returns:
      the number of rows affected