Package | Description |
---|---|
tech.ibit.mybatis | |
tech.ibit.mybatis.sqlbuilder | |
tech.ibit.mybatis.sqlbuilder.sql.impl | |
tech.ibit.mybatis.sqlbuilder.utils | |
tech.ibit.mybatis.utils |
Modifier and Type | Interface and Description |
---|---|
interface |
MultipleIdMapper<T,K extends MultiId>
多个主键的表的 Mapper
|
interface |
NoIdMapper<T>
无主键的表的 Mapper
|
interface |
SingleIdMapper<T,K>
单一主键的表的 Mapper
|
Modifier and Type | Method and Description |
---|---|
static CountSql |
SqlFactory.createCount(Mapper<?> mapper)
创建计数
|
static DeleteSql |
SqlFactory.createDelete(Mapper<?> mapper)
创建删除
|
static InsertSql |
SqlFactory.createInsert(Mapper<?> mapper)
创建插入
|
static <T> QuerySql<T> |
SqlFactory.createQuery(Mapper<T> mapper)
创建搜索
|
static UpdateSql |
SqlFactory.createUpdate(Mapper<?> mapper)
创建更新
|
Constructor and Description |
---|
CountSqlImpl(Mapper<?> mapper)
构造函数
|
CountSqlImpl(Mapper<?> mapper,
boolean needToInit)
构造函数
|
DeleteSqlImpl(Mapper<?> mapper) |
InsertSqlImpl(Mapper<?> mapper) |
QuerySqlImpl(Mapper<T> mapper) |
UpdateSqlImpl(Mapper<?> mapper) |
Modifier and Type | Method and Description |
---|---|
static <T> InsertSql |
IdSqlUtils.batchInsertInto(Mapper<T> mapper,
List<T> pos,
List<Column> columns)
构造批量插入对象的SQL对象参数
SQL语法 : `INSERT INTO table(column1, column2, ...) values(?, ?, ...), (?, ?, ...)`
|
static <T> DeleteSql |
UniqueKeySqlUtils.deleteByUniqueKey(Mapper<T> mapper,
UniqueKey uniqueKey)
构造通过 unique key 删除对象的SQL对象参数
|
static <T> DeleteSql |
UniqueKeySqlUtils.deleteByUniqueKeys(Mapper<T> mapper,
Collection<UniqueKey> uniqueKeys)
构造通过 unique key 删除对象的SQL对象参数
|
static <T> QuerySql<T> |
UniqueKeySqlUtils.getByUniqueKey(Mapper<T> mapper,
Class<?> poClazz,
UniqueKey uniqueKey)
构造通过 uniqueKey 查询对象的SQL参数对象
|
static <T> QuerySql<T> |
UniqueKeySqlUtils.getByUniqueKeys(Mapper<T> mapper,
Class<?> poClazz,
Collection<UniqueKey> uniqueKeys)
构造通过 uniqueKey 查询对象的SQL参数对象
|
static <T> InsertSql |
IdSqlUtils.insertInto(Mapper<T> mapper,
T po)
构造插入对象的SQL对象参数
|
static <T> UpdateSql |
IdSqlUtils.updateById(Mapper<T> mapper,
T updateObject)
构造通过主键更新对象的SQL参数对象(支持单列或多列主键)
|
static <T> UpdateSql |
IdSqlUtils.updateById(Mapper<T> mapper,
T updateObject,
List<Column> updateColumns)
构造通过主键更新对象指定列的SQL参数对象(支持单列或多列主键)
|
static <T> UpdateSql |
UniqueKeySqlUtils.updateByUniqueKeys(Mapper<T> mapper,
T updateObject,
Collection<UniqueKey> idValues)
构造通过主键批量更新对象的SQL参数对象(多列作为主键)
|
static <T> UpdateSql |
UniqueKeySqlUtils.updateByUniqueKeys(Mapper<T> mapper,
T updateObject,
List<Column> updateColumns,
Collection<UniqueKey> uniqueKeys)
构造通过 unique key 批量更新对象指定列的SQL参数对象
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
MapperUtils.batchUpdateById(Mapper<T> mapper,
List<T> entities)
通过主键批量更新实体
|
static <T> void |
MapperUtils.batchUpdateById(Mapper<T> mapper,
List<T> entities,
List<Column> columns)
通过主键批量更新实体
|
static <T> void |
MapperUtils.batchUpdateByIdAndIgnoreColumns(Mapper<T> mapper,
List<T> entities,
List<Column> ignoreColumns)
通过主键更新非忽略的列
|
static <T> int |
MapperUtils.deleteByUniqueKey(Mapper<T> mapper,
UniqueKey uniqueKey)
通过 unique key 删除
|
static <T> int |
MapperUtils.deleteByUniqueKeys(Mapper<T> mapper,
Collection<UniqueKey> uniqueKeys)
通过 unique key 批量删除
|
static <T> T |
MapperUtils.getByUniqueKey(Mapper<T> mapper,
UniqueKey uniqueKey)
通过 unique key 获取实体
|
static <T> List<T> |
MapperUtils.getByUniqueKeys(Mapper<T> mapper,
Collection<UniqueKey> uniqueKeys)
通过 unique key 批量获取实体
|
static <T,P> P |
MapperUtils.getPoByUniqueKey(Mapper<T> mapper,
Class<P> clazz,
UniqueKey uniqueKey)
通过 unique key 获取某个类型的持久化对象
|
static <T,P> List<P> |
MapperUtils.getPoByUniqueKeys(Mapper<T> mapper,
Class<P> clazz,
Collection<UniqueKey> uniqueKeys)
通过 unique key 批量获取某个类型的持久化对象
|
static <T> int |
MapperUtils.insert(Mapper<T> mapper,
T entity)
插入实体
|
static <T> int |
MapperUtils.updateById(Mapper<T> mapper,
T entity)
通过主键更新实体
|
static <T> int |
MapperUtils.updateById(Mapper<T> mapper,
T entity,
List<Column> columns)
通过主键更新实体指定字段
|
static <T> int |
MapperUtils.updateByIdAndIgnoreColumns(Mapper<T> mapper,
T entity,
List<Column> ignoreColumns)
通过主键更新非忽略的列
|
static <T> int |
MapperUtils.updateByUniqueKey(Mapper<T> mapper,
T entity,
List<Column> columns,
UniqueKey uniqueKey)
通过 unique key 更新实体指定列
|
static <T> int |
MapperUtils.updateByUniqueKey(Mapper<T> mapper,
T entity,
UniqueKey uniqueKey)
通过 unique key 更新实体
|
static <T> int |
MapperUtils.updateByUniqueKeys(Mapper<T> mapper,
T entity,
Collection<UniqueKey> uniqueKeys)
通过 unique key 更新实体
|
static <T> int |
MapperUtils.updateByUniqueKeys(Mapper<T> mapper,
T entity,
List<Column> columns,
Collection<UniqueKey> uniqueKeys)
通过 unique key 更新实体指定列
|
Copyright © 2020 IBIT程序猿. All rights reserved.