Package | Description |
---|---|
tech.ibit.mybatis.sqlbuilder.utils | |
tech.ibit.mybatis.utils |
Modifier and Type | Method and Description |
---|---|
static <T,K> DeleteSql |
IdSqlUtils.deleteById(SingleIdMapper<T,K> mapper,
K idValue)
构造通过主键删除对象的SQL对象参数(单列作为主键)
|
static <T,K> DeleteSql |
IdSqlUtils.deleteByIds(SingleIdMapper<T,K> mapper,
Collection<K> idValues)
构造通过主键删除对象的SQL对象参数(单列作为主键)
|
static <T,K> QuerySql<T> |
IdSqlUtils.getById(SingleIdMapper<T,K> mapper,
Class<?> poClazz,
K idValue)
构造通过主键查询对象的SQL参数对象(单列作为主键)
|
static <T,K> QuerySql<T> |
IdSqlUtils.getById(SingleIdMapper<T,K> mapper,
K idValue)
构造通过主键查询对象的SQL参数对象(单列作为主键)
|
static <T,K> QuerySql<T> |
IdSqlUtils.getByIds(SingleIdMapper<T,K> mapper,
Class<?> poClazz,
Collection<K> idValues)
构造通过主键查询对象的SQL参数对象(单列作为主键)
|
static <T,K> QuerySql<T> |
IdSqlUtils.getByIds(SingleIdMapper<T,K> mapper,
Collection<K> idValues)
构造通过主键查询对象的SQL参数对象(单列作为主键)
|
static <T,K> UpdateSql |
IdSqlUtils.updateByIds(SingleIdMapper<T,K> mapper,
T updateObject,
Collection<K> idValues)
构造通过主键批量更新对象的SQL参数对象(单列作为主键)
|
static <T,K> UpdateSql |
IdSqlUtils.updateByIds(SingleIdMapper<T,K> mapper,
T updateObject,
List<Column> updateColumns,
Collection<K> idValues)
构造通过主键批量更新对象指定列的SQL参数对象(单列作为主键)
|
Modifier and Type | Method and Description |
---|---|
static <T,K> int |
MapperUtils.deleteById(SingleIdMapper<T,K> mapper,
K id)
通过主键删除
|
static <T,K> int |
MapperUtils.deleteByIds(SingleIdMapper<T,K> mapper,
Collection<K> ids)
通过主键批量删除
|
static <T,K> T |
MapperUtils.getById(SingleIdMapper<T,K> mapper,
K id)
通过主键获取实体
|
static <T,K> List<T> |
MapperUtils.getByIds(SingleIdMapper<T,K> mapper,
Collection<K> ids)
通过主键批量获取实体
|
static <T,K,P> P |
MapperUtils.getPoById(SingleIdMapper<T,K> mapper,
Class<P> clazz,
K id)
通过主键获取某个类型的持久化对象
|
static <T,K,P> List<P> |
MapperUtils.getPoByIds(SingleIdMapper<T,K> mapper,
Class<P> clazz,
Collection<K> ids)
通过主键批量获取某个类型的持久化对象
|
static <T,K> int |
MapperUtils.updateByIdAndIgnoreColumns(SingleIdMapper<T,K> mapper,
T entity,
List<Column> ignoreColumns,
Collection<K> ids)
通过主键更新非忽略的列
|
static <T,K> int |
MapperUtils.updateByIds(SingleIdMapper<T,K> mapper,
T entity,
Collection<K> ids)
通过主键更新实体
|
static <T,K> int |
MapperUtils.updateByIds(SingleIdMapper<T,K> mapper,
T entity,
List<Column> columns,
Collection<K> ids)
通过主键更新实体指定列
|
Copyright © 2020 IBIT程序猿. All rights reserved.