Class NamedParameterJdbcTemplateExtensions
java.lang.Object
org.mybatis.dynamic.sql.util.spring.NamedParameterJdbcTemplateExtensions
-
Constructor Summary
ConstructorDescriptionNamedParameterJdbcTemplateExtensions
(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate template) -
Method Summary
Modifier and TypeMethodDescriptionlong
count
(SelectStatementProvider countStatement) long
count
(Buildable<SelectModel> countStatement) int
delete
(DeleteStatementProvider deleteStatement) int
delete
(Buildable<DeleteModel> deleteStatement) int
generalInsert
(GeneralInsertStatementProvider insertStatement) int
generalInsert
(GeneralInsertStatementProvider insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) int
generalInsert
(Buildable<GeneralInsertModel> insertStatement) int
generalInsert
(Buildable<GeneralInsertModel> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) <T> int
insert
(InsertStatementProvider<T> insertStatement) <T> int
insert
(InsertStatementProvider<T> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) <T> int
insert
(Buildable<InsertModel<T>> insertStatement) <T> int
insert
(Buildable<InsertModel<T>> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) <T> int[]
insertBatch
(BatchInsert<T> insertStatement) <T> int[]
insertBatch
(Buildable<BatchInsertModel<T>> insertStatement) <T> int
insertMultiple
(MultiRowInsertStatementProvider<T> insertStatement) <T> int
insertMultiple
(MultiRowInsertStatementProvider<T> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) <T> int
insertMultiple
(Buildable<MultiRowInsertModel<T>> insertStatement) <T> int
insertMultiple
(Buildable<MultiRowInsertModel<T>> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) <T> List
<T> selectList
(SelectStatementProvider selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) <T> List
<T> selectList
(Buildable<SelectModel> selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) <T> Optional
<T> selectOne
(SelectStatementProvider selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) <T> Optional
<T> selectOne
(Buildable<SelectModel> selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) int
update
(UpdateStatementProvider updateStatement) int
update
(Buildable<UpdateModel> updateStatement)
-
Constructor Details
-
NamedParameterJdbcTemplateExtensions
public NamedParameterJdbcTemplateExtensions(org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate template)
-
-
Method Details
-
count
-
count
-
delete
-
delete
-
generalInsert
-
generalInsert
-
generalInsert
public int generalInsert(Buildable<GeneralInsertModel> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) -
generalInsert
public int generalInsert(GeneralInsertStatementProvider insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) -
insert
-
insert
-
insert
public <T> int insert(Buildable<InsertModel<T>> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) -
insert
public <T> int insert(InsertStatementProvider<T> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) -
insertBatch
-
insertBatch
-
insertMultiple
-
insertMultiple
-
insertMultiple
public <T> int insertMultiple(Buildable<MultiRowInsertModel<T>> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) -
insertMultiple
public <T> int insertMultiple(MultiRowInsertStatementProvider<T> insertStatement, org.springframework.jdbc.support.KeyHolder keyHolder) -
selectList
public <T> List<T> selectList(Buildable<SelectModel> selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) -
selectList
public <T> List<T> selectList(SelectStatementProvider selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) -
selectOne
public <T> Optional<T> selectOne(Buildable<SelectModel> selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) -
selectOne
public <T> Optional<T> selectOne(SelectStatementProvider selectStatement, org.springframework.jdbc.core.RowMapper<T> rowMapper) -
update
-
update
-