public abstract class AbstractAccessor extends Object implements IAccessor
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
arrayEntity |
protected int |
criterionSize |
protected int |
entityFactorySize |
| Constructor and Description |
|---|
AbstractAccessor() |
| 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) |
IAccessor |
getAccessor() |
Object[] |
getArrayEntity() |
<T> T |
getById(Serializable id,
Class<T> T) |
protected String |
getClassName(Object object) |
int |
getCriterionSize() |
Serializable |
getFunction(ICriterion... criterion) |
boolean |
isEmpty(Class<?> clazz,
String criteriaKey,
String criteriaValue) |
void |
rollback() |
Serializable |
save(Collection<Serializable> entities) |
Serializable |
save(Object... entity) |
void |
setAccessor(IAccessor accessor) |
boolean |
update(Collection<Serializable> entities) |
boolean |
update(Object... entity) |
protected int entityFactorySize
protected int criterionSize
protected Object[] arrayEntity
public int getCriterionSize()
public Object[] getArrayEntity()
public IAccessor getAccessor()
public void setAccessor(IAccessor accessor)
public Serializable save(Object... entity) throws Exception
public Serializable save(Collection<Serializable> entities) throws Exception
public boolean delete(Class<?> entity, Serializable... id) throws Exception
public boolean delete(Class<?> entity, Collection<Serializable> ids) throws Exception
public boolean delete(Collection<Serializable> entities) throws Exception
public boolean deleteAll(IEntityFactory entityFactory) throws Exception
public boolean update(Collection<Serializable> entities) throws Exception
public Serializable get(ICriterion... criterions) throws Exception
public Serializable getFunction(ICriterion... criterion) throws Exception
getFunction in interface IAccessorExceptionpublic <T> T getById(Serializable id, Class<T> T) throws Exception
public boolean isEmpty(Class<?> clazz, String criteriaKey, String criteriaValue) throws Exception
public Object beginTransaction() throws Exception
beginTransaction in interface IAccessorExceptionpublic void commit()
throws Exception
public void rollback()
throws Exception
Copyright © 2016 jufeng. All rights reserved.