public class BaseMapperWrap<T> extends Object implements BaseMapper<T>
| 构造器和说明 |
|---|
BaseMapperWrap(DbContext db,
BaseMapper<T> baseMapper) |
BaseMapperWrap(DbContext db,
Class<?> entityType,
String tableName) |
public BaseMapperWrap(DbContext db, BaseMapper<T> baseMapper)
protected Class<?> entityType()
public DbContext db()
db 在接口中 BaseMapper<T>public String tableName()
tableName 在接口中 BaseMapper<T>public String tablePk()
tablePk 在接口中 BaseMapper<T>public Class<?> entityClz()
entityClz 在接口中 BaseMapper<T>public Long insert(T entity, boolean excludeNull)
insert 在接口中 BaseMapper<T>public Long insert(T entity, Act2<T,DataItem> dataBuilder)
insert 在接口中 BaseMapper<T>entity - 写入的实体dataBuilder - 数据组装器public void insertList(List<T> list)
insertList 在接口中 BaseMapper<T>public void insertList(List<T> list, Act2<T,DataItem> dataBuilder)
insertList 在接口中 BaseMapper<T>list - 待插入的数据dataBuilder - 数据组装器public Integer deleteById(Object id)
deleteById 在接口中 BaseMapper<T>public Integer deleteByIds(Iterable idList)
deleteByIds 在接口中 BaseMapper<T>public Integer deleteByMap(Map<String,Object> columnMap)
deleteByMap 在接口中 BaseMapper<T>public Integer delete(Act1<MapperWhereQ> c)
delete 在接口中 BaseMapper<T>public Integer updateById(T entity, boolean excludeNull)
updateById 在接口中 BaseMapper<T>public Integer updateById(T entity, Act2<T,DataItem> dataBuilder)
updateById 在接口中 BaseMapper<T>entity - 待更新的实体dataBuilder - 组装data的方式,方便支持部分属性允许设置为null,部分不允许public Integer update(T entity, boolean excludeNull, Act1<MapperWhereQ> c)
update 在接口中 BaseMapper<T>public Integer update(T entity, Act2<T,DataItem> dataBuilder, Act1<MapperWhereQ> c)
update 在接口中 BaseMapper<T>entity - 待更新的实体dataBuilder - 组装data的方式,方便支持部分属性允许设置为null,部分不允许c - 更新数据的条件public int[] updateList(List<T> list, Act2<T,DataItem> dataBuilder, Property<T,?>... conditionFields)
updateList 在接口中 BaseMapper<T>public Long upsert(T entity, boolean excludeNull)
upsert 在接口中 BaseMapper<T>public Long upsert(T entity, Act2<T,DataItem> dataBuilder)
upsert 在接口中 BaseMapper<T>entity - 要处理的实体dataBuilder - 数据组装器public Long upsertBy(T entity, boolean excludeNull, String conditionFields)
upsertBy 在接口中 BaseMapper<T>public Long upsertBy(T entity, Act2<T,DataItem> dataBuilder, String conditionFields)
upsertBy 在接口中 BaseMapper<T>entity - 要处理的实体dataBuilder - 数据组装器conditionFields - 更新的条件public boolean existsById(Object id)
existsById 在接口中 BaseMapper<T>public boolean exists(Act1<MapperWhereQ> c)
exists 在接口中 BaseMapper<T>public T selectById(Object id)
selectById 在接口中 BaseMapper<T>public List<T> selectByIds(Iterable idList)
selectByIds 在接口中 BaseMapper<T>public List<T> selectByMap(Map<String,Object> columnMap)
selectByMap 在接口中 BaseMapper<T>public T selectItem(T entity)
selectItem 在接口中 BaseMapper<T>public T selectItem(Act1<MapperWhereQ> c)
selectItem 在接口中 BaseMapper<T>public Object selectValue(String column, Act1<MapperWhereQ> c)
selectValue 在接口中 BaseMapper<T>public Map<String,Object> selectMap(Act1<MapperWhereQ> c)
selectMap 在接口中 BaseMapper<T>public Long selectCount(Act1<MapperWhereQ> c)
selectCount 在接口中 BaseMapper<T>public List<T> selectList(Act1<MapperWhereQ> c)
selectList 在接口中 BaseMapper<T>public List<Map<String,Object>> selectMapList(Act1<MapperWhereQ> c)
selectMapList 在接口中 BaseMapper<T>public List<Object> selectArray(String column, Act1<MapperWhereQ> c)
selectArray 在接口中 BaseMapper<T>public List<T> selectList(int start, int size, Act1<MapperWhereQ> c)
selectList 在接口中 BaseMapper<T>public List<Map<String,Object>> selectMapList(int start, int size, Act1<MapperWhereQ> c)
selectMapList 在接口中 BaseMapper<T>public List<Object> selectArray(String column, int start, int size, Act1<MapperWhereQ> c)
selectArray 在接口中 BaseMapper<T>public IDataReader<T> selectReader(Act1<MapperWhereQ> c)
selectReader 在接口中 BaseMapper<T>public IDataReader<T> selectReader(int fetchSize, Act1<MapperWhereQ> c)
selectReader 在接口中 BaseMapper<T>public IPage<T> selectPage(int start, int size, Act1<MapperWhereQ> c)
selectPage 在接口中 BaseMapper<T>public IPage<Map<String,Object>> selectMapPage(int start, int size, Act1<MapperWhereQ> c)
selectMapPage 在接口中 BaseMapper<T>public List<T> selectTop(int size, Act1<MapperWhereQ> c)
selectTop 在接口中 BaseMapper<T>public List<Map<String,Object>> selectMapTop(int size, Act1<MapperWhereQ> c)
selectMapTop 在接口中 BaseMapper<T>protected DbTableQuery getQr()
protected DbTableQuery getQr(Act1<MapperWhereQ> c)
Copyright © 2024. All rights reserved.