T
- 实体的类型public abstract class IdEntityService<T> extends EntityService<T>
构造器和说明 |
---|
IdEntityService() |
IdEntityService(Dao dao) |
IdEntityService(Dao dao,
Class<T> entityType) |
限定符和类型 | 方法和说明 |
---|---|
int |
delete(long id)
根据@Id所在的属性的值删除一个实体对象
|
boolean |
exists(long id)
是否存在@Id所在属性的值为指定值的记录
|
T |
fetch(long id)
根据@Id所在的属性的值获取一个实体对象
|
int |
getMaxId()
根据@Id所在的属性在数据库中的最大值
|
_clearLinks, _delete, _deleteLinks, _deleteWith, _fastInsert, _fetch, _fetchLinks, _fetchLinks, _insert, _insert, _insert, _insertLinks, _insertRelation, _insertWith, _query, _query, _update, _update, _updateIgnoreNull, _updateLinks, _updateWith, clear, clear, count, count, create, deletex, each, each, exists, fetch, fetchx, func, func, getEntity, getEntityClass, getObject, getObject, insert, mirror, query, query, query, setEntityType, setExpert, update, updateRelation
public IdEntityService()
EntityService
public IdEntityService(Dao dao)
EntityService
public IdEntityService(Dao dao, Class<T> entityType)
EntityService
public T fetch(long id)
id
- 属性的值public int delete(long id)
id
- 属性的值public int getMaxId()
public boolean exists(long id)
id
- 属性的值Copyright © 2017. All rights reserved.