T
- 实体的类型public abstract class NameEntityService<T> extends EntityService<T>
构造器和说明 |
---|
NameEntityService() |
NameEntityService(Dao dao) |
NameEntityService(Dao dao,
Class<T> entityType) |
限定符和类型 | 方法和说明 |
---|---|
int |
delete(String name)
根据@Name所在的属性的值删除一条记录
|
boolean |
exists(String name)
是否存在@Name所在的属性与指定值相符的记录
|
T |
fetch(String name)
根据@Name所在的属性的值获取一个实体对象
|
_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 NameEntityService()
EntityService
public NameEntityService(Dao dao)
EntityService
public NameEntityService(Dao dao, Class<T> entityType)
EntityService
public int delete(String name)
name
- 属性的值public T fetch(String name)
name
- 属性的值public boolean exists(String name)
name
- 属性的值Copyright © 2017. All rights reserved.