public interface DaoMapper<T,ID extends Serializable>
| 限定符和类型 | 方法和说明 |
|---|---|
long |
count()
do select count(*) mapped id
|
void |
deleteBatch(ID... ids)
delete batch
|
int |
deleteByPrimaryKey(ID id)
delete action by primary key
|
int |
insert(T record)
do insert entity
|
void |
insertBatch(List<T> list)
save batch
|
int |
insertSelective(T record)
do insert entity ignore null property
|
List<T> |
selectAll()
find all records
|
T |
selectByPrimaryKey(ID id)
find entity by primary key
|
int |
updateByPrimaryKey(T record)
update entity by primary key
|
int |
updateByPrimaryKeySelective(T record)
update entity by primary key ignore null property
|
int deleteByPrimaryKey(ID id)
id - primary keyint insert(T record)
record - entity bean to insertint insertSelective(T record)
record - entity bean to insertT selectByPrimaryKey(ID id)
id - primary keyint updateByPrimaryKeySelective(T record)
record - entity beanint updateByPrimaryKey(T record)
record - entity beanlong count()
void deleteBatch(ID... ids)
ids - idsCopyright © 2018. All rights reserved.