T - Persistent classID - ID type of the persistent class.public class JDBCQueryModelDAO<T,ID> extends Object implements QueryModelDAO<T,ID>
| Modifier | Constructor and Description |
|---|---|
protected |
JDBCQueryModelDAO(Class<T> entityClass,
Map<String,Object> daoProperties) |
protected |
JDBCQueryModelDAO(Class<T> entityClass,
Map<String,Object> daoProperties,
AccessControlContextProvider accessControlContextProvider) |
| Modifier and Type | Method and Description |
|---|---|
Condition |
buildCondition(String conditionField,
ConditionType conditionType,
Iterator argsIterator) |
Projection |
buildProjection(String projectionField,
ProjectionType projectionType,
Iterator argsIterator) |
void |
delete(T entity) |
void |
deleteById(ID id) |
void |
deleteByIds(ID... ids) |
void |
deleteUsingQueryModel(QueryModel queryModel) |
Iterable<T> |
findAll() |
T |
findById(ID id) |
Iterable<T> |
findByIds(ID... ids) |
T |
findUniqueUsingQueryModel(QueryModel queryModel) |
Iterable<T> |
findUsingQueryModel(QueryModel queryModel) |
void |
flush() |
<U extends T> |
getUpdateObject() |
Object |
projectUsingQueryModel(QueryModel queryModel) |
void |
save(T entity) |
<U extends T> |
updateById(U updateObject,
ID id) |
<U extends T> |
updateByIds(U updateObject,
ID... ids) |
<U extends T> |
updateUniqueUsingQueryModel(U updateObject,
QueryModel queryModel) |
<U extends T> |
updateUsingQueryModel(U updateObject,
QueryModel queryModel) |
protected JDBCQueryModelDAO(Class<T> entityClass, Map<String,Object> daoProperties)
public T findById(ID id) throws NoSuchItemException, JeppettoException
findById in interface GenericDAO<T,ID>NoSuchItemExceptionJeppettoExceptionpublic Iterable<T> findByIds(ID... ids) throws JeppettoException
findByIds in interface GenericDAO<T,ID>JeppettoExceptionpublic Iterable<T> findAll() throws JeppettoException
findAll in interface GenericDAO<T,ID>JeppettoExceptionpublic void save(T entity) throws OptimisticLockException, JeppettoException
save in interface GenericDAO<T,ID>OptimisticLockExceptionJeppettoExceptionpublic void delete(T entity) throws JeppettoException
delete in interface GenericDAO<T,ID>JeppettoExceptionpublic void deleteById(ID id) throws JeppettoException
deleteById in interface GenericDAO<T,ID>JeppettoExceptionpublic void deleteByIds(ID... ids) throws FailedBatchException, JeppettoException
deleteByIds in interface GenericDAO<T,ID>FailedBatchExceptionJeppettoExceptionpublic <U extends T> U getUpdateObject()
getUpdateObject in interface GenericDAO<T,ID>public <U extends T> T updateById(U updateObject, ID id) throws JeppettoException
updateById in interface GenericDAO<T,ID>JeppettoExceptionpublic <U extends T> Iterable<T> updateByIds(U updateObject, ID... ids) throws FailedBatchException, JeppettoException
updateByIds in interface GenericDAO<T,ID>FailedBatchExceptionJeppettoExceptionpublic void flush()
throws JeppettoException
flush in interface GenericDAO<T,ID>JeppettoExceptionpublic T findUniqueUsingQueryModel(QueryModel queryModel) throws NoSuchItemException, TooManyItemsException, JeppettoException
findUniqueUsingQueryModel in interface QueryModelDAO<T,ID>NoSuchItemExceptionTooManyItemsExceptionJeppettoExceptionpublic Iterable<T> findUsingQueryModel(QueryModel queryModel) throws JeppettoException
findUsingQueryModel in interface QueryModelDAO<T,ID>JeppettoExceptionpublic Object projectUsingQueryModel(QueryModel queryModel) throws JeppettoException
projectUsingQueryModel in interface QueryModelDAO<T,ID>JeppettoExceptionpublic void deleteUsingQueryModel(QueryModel queryModel) throws JeppettoException
deleteUsingQueryModel in interface QueryModelDAO<T,ID>JeppettoExceptionpublic <U extends T> T updateUniqueUsingQueryModel(U updateObject, QueryModel queryModel) throws JeppettoException
updateUniqueUsingQueryModel in interface QueryModelDAO<T,ID>JeppettoExceptionpublic <U extends T> Iterable<T> updateUsingQueryModel(U updateObject, QueryModel queryModel) throws JeppettoException
updateUsingQueryModel in interface QueryModelDAO<T,ID>JeppettoExceptionpublic Condition buildCondition(String conditionField, ConditionType conditionType, Iterator argsIterator)
buildCondition in interface QueryModelDAO<T,ID>public Projection buildProjection(String projectionField, ProjectionType projectionType, Iterator argsIterator)
buildProjection in interface QueryModelDAO<T,ID>Copyright © 2014. All Rights Reserved.