| 程序包 | 说明 |
|---|---|
| cn.xbatis.core.mvc.impl | |
| cn.xbatis.core.mybatis | |
| cn.xbatis.core.sql.executor.chain |
| 构造器和说明 |
|---|
DaoImpl(MybatisMapper<T> mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <M extends MybatisMapper<T>,T> |
MybatisBatchUtil.batchSave(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory,
Class<M> mapperType,
Collection<T> list)
批量插入(表自增的,无法获取主键ID)
|
static <M extends MybatisMapper<T>,T> |
MybatisBatchUtil.batchSave(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory,
Class<M> mapperType,
Collection<T> list,
int batchSize)
批量插入(batchSize!
|
static <M extends MybatisMapper<T>,T> |
MybatisBatchUtil.batchUpdate(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory,
Class<M> mapperType,
Collection<T> list)
批量更新
|
static <M extends MybatisMapper<T>,T> |
MybatisBatchUtil.batchUpdate(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory,
Class<M> mapperType,
Collection<T> list,
int batchSize)
批量更新
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DeleteChain |
DeleteChain.of(MybatisMapper<?> mapper) |
static UpdateChain |
UpdateChain.of(MybatisMapper<?> mapper) |
static InsertChain |
InsertChain.of(MybatisMapper<?> mapper) |
static DeleteChain |
DeleteChain.of(MybatisMapper<?> mapper,
Where where) |
static UpdateChain |
UpdateChain.of(MybatisMapper<?> mapper,
Where where) |
static <T> QueryChain<T> |
QueryChain.of(MybatisMapper<T> mapper) |
static <T> QueryChain<T> |
QueryChain.of(MybatisMapper<T> mapper,
Where where) |
DeleteChain |
DeleteChain.withMapper(MybatisMapper<?> mapper)
用create静态方法的 Chain 需要调用一次此方法 用于设置 mapper
|
UpdateChain |
UpdateChain.withMapper(MybatisMapper<?> mapper)
用create静态方法的 Chain 需要调用一次此方法 用于设置 mapper
|
InsertChain |
InsertChain.withMapper(MybatisMapper<?> mapper)
用create静态方法的 Chain 需要调用一次此方法 用于设置 mapper
|
QueryChain<T> |
QueryChain.withMapper(MybatisMapper<?> mapper)
用create静态方法的 Chain 需要调用一次此方法 用于设置 mapper
|
| 构造器和说明 |
|---|
DeleteChain(MybatisMapper<?> mapper) |
DeleteChain(MybatisMapper<?> mapper,
Where where) |
InsertChain(MybatisMapper<?> mapper) |
QueryChain(MybatisMapper<T> mapper) |
QueryChain(MybatisMapper<T> mapper,
Where where) |
UpdateChain(MybatisMapper<?> mapper) |
UpdateChain(MybatisMapper<?> mapper,
Where where) |
Copyright © 2025. All rights reserved.