T
- 实体类型public interface RawMapper<T>
Modifier and Type | Method and Description |
---|---|
int |
rawCount(PrepareStatement sqlParams)
计数
|
int |
rawInsert(PrepareStatement sqlParams)
插入
|
int |
rawInsertWithGenerateKeys(PrepareStatement sqlParams,
KeyValuePair key)
插入并生成主键
|
List<T> |
rawSelect(PrepareStatement sqlParams)
查询列表
|
<V> List<V> |
rawSelectDefault(PrepareStatement sqlParams)
基本类型查询
|
T |
rawSelectOne(PrepareStatement sqlParams)
查询单个对象
|
int |
rawUpdate(PrepareStatement sqlParams)
更新
|
@SelectProvider(type=SqlProvider.class, method="execute") List<T> rawSelect(@Param(value="sqlParams") PrepareStatement sqlParams)
sqlParams
- SQL语句-参数对象@SelectProvider(type=SqlProvider.class, method="execute") T rawSelectOne(@Param(value="sqlParams") PrepareStatement sqlParams)
sqlParams
- SQL语句-参数对象@SelectProvider(type=SqlProvider.class, method="execute") <V> List<V> rawSelectDefault(@Param(value="sqlParams") PrepareStatement sqlParams)
V
- 基本类型sqlParams
- SQL语句-参数对象@SelectProvider(type=SqlProvider.class, method="execute") int rawCount(@Param(value="sqlParams") PrepareStatement sqlParams)
sqlParams
- SQL语句-参数对象@UpdateProvider(type=SqlProvider.class, method="execute") int rawUpdate(@Param(value="sqlParams") PrepareStatement sqlParams)
sqlParams
- SQL语句-参数对象@InsertProvider(type=SqlProvider.class, method="execute") @Options(useGeneratedKeys=true, keyProperty="key.value") int rawInsertWithGenerateKeys(@Param(value="sqlParams") PrepareStatement sqlParams, @Param(value="key") KeyValuePair key)
sqlParams
- SQL语句-参数对象key
- 接受主键的生成结果的key对象@InsertProvider(type=SqlProvider.class, method="execute") int rawInsert(@Param(value="sqlParams") PrepareStatement sqlParams)
sqlParams
- SQL语句-参数对象Copyright © 2020 IBIT程序猿. All rights reserved.