| 限定符和类型 | 方法和说明 |
|---|---|
default int |
deleteById(K id)
通过主键删除记录
|
default int |
deleteByIds(Collection<K> ids)
通过主键批量删除记录
|
default T |
getById(K id)
通过主键获取
|
default List<T> |
getByIds(Collection<K> ids)
通过主键批量获取
|
default Column |
getId()
获取主键列
|
default int |
updateById(T po)
通过主键更新
|
default int |
updateByIds(T po,
Collection<K> ids)
通过主键批量更新
|
default int |
updateByIdsWithColumns(T po,
List<Column> columns,
Collection<K> ids)
通过主键批量更新指定列
|
default int |
updateByIdWithColumns(T po,
List<Column> columns)
通过主键更新指定的列
|
createCount, createDelete, createInsert, createQuery, createUpdate, getDefaultTable, getPoClazz, rawCount, rawInsert, rawInsertWithGenerateKeys, rawSelect, rawSelectDefault, rawSelectOne, rawUpdatedefault Column getId()
default int deleteById(K id)
id - 主键default int deleteByIds(Collection<K> ids)
ids - 主键列表default int updateById(T po)
po - 更新对象default int updateByIdWithColumns(T po, List<Column> columns)
po - 更新对象columns - 更新列default int updateByIds(T po, Collection<K> ids)
po - 更新对象ids - 主键列表default int updateByIdsWithColumns(T po, List<Column> columns, Collection<K> ids)
po - 更新对象columns - 更新列ids - 主键列表default List<T> getByIds(Collection<K> ids)
ids - 主键列表Copyright © 2020 IBIT程序猿. All rights reserved.