T
- public interface BaseDao<T,KeyType extends Serializable>
Modifier and Type | Method and Description |
---|---|
T |
add(T t) |
int[] |
batchDelete(List<T> objects)
批量删除(轮询)
|
int[] |
batchInsert(List<T> objects)
批量插入(轮询)
|
int[] |
batchUpdate(List<T> objects)
批量更新(轮询)
|
int |
deleteByKey(KeyType pk) |
int |
deleteByKeys(KeyType... pks) |
int |
edit(T t) |
T |
getByKey(KeyType pk) |
int[] |
preparedBatchDelete(List<T> objects)
批量删除(预编译方式,sql固定)
|
int[] |
preparedBatchInsert(List<T> objects)
批量插入(预编译方式,sql固定)
|
int[] |
preparedBatchUpdate(List<T> objects)
批量更新(预编译方式,sql固定)
|
List<T> |
query(T t,
OrderBy... orderArgs) |
Pager<T> |
queryPager(int start,
int limit,
T t,
OrderBy... orderArgs) |
int edit(T t)
int deleteByKey(KeyType pk)
int deleteByKeys(KeyType... pks)
int[] preparedBatchInsert(List<T> objects)
objects
- int[] preparedBatchUpdate(List<T> objects)
objects
- Copyright © 2006–2018 TinyGroup. All rights reserved.