public interface IAccessor extends Cloneable, Serializable
| Modifier and Type | Method and Description |
|---|---|
Object |
beginTransaction() |
void |
close() |
void |
commit() |
boolean |
delete(Class<?> entity,
Collection<Serializable> ids) |
boolean |
delete(Class<?> entity,
Serializable... id) |
boolean |
delete(Collection<Serializable> entities) |
boolean |
delete(Object... entity) |
boolean |
deleteAll(IEntityFactory entityFactory) |
Serializable |
get(ICriterion... criterions) |
<T> T |
getById(Serializable id,
Class<T> T) |
Serializable |
getFunction(ICriterion... criterion) |
boolean |
isEmpty(Class<?> clazz,
String criteriaKey,
String criteriaValue) |
void |
rollback() |
Serializable |
save(Collection<Serializable> entities) |
Serializable |
save(Object... entity) |
boolean |
update(Collection<Serializable> entities) |
boolean |
update(Object... entity) |
Serializable save(Object... entity) throws Exception
ExceptionSerializable save(Collection<Serializable> entities) throws Exception
Exceptionboolean delete(Class<?> entity, Serializable... id) throws Exception
Exceptionboolean delete(Class<?> entity, Collection<Serializable> ids) throws Exception
Exceptionboolean delete(Collection<Serializable> entities) throws Exception
Exceptionboolean deleteAll(IEntityFactory entityFactory) throws Exception
Exceptionboolean update(Collection<Serializable> entities) throws Exception
Exception<T> T getById(Serializable id, Class<T> T) throws Exception
ExceptionSerializable get(ICriterion... criterions) throws Exception
ExceptionSerializable getFunction(ICriterion... criterion) throws Exception
Exceptionboolean isEmpty(Class<?> clazz, String criteriaKey, String criteriaValue) throws Exception
ExceptionCopyright © 2016 jufeng. All rights reserved.