org.iternine.jeppetto.dao.jdbc
Class JDBCQueryModelDAO<T,ID>
java.lang.Object
org.iternine.jeppetto.dao.jdbc.JDBCQueryModelDAO<T,ID>
- Type Parameters:
T - Persistent classID - ID type of the persistent class.
- All Implemented Interfaces:
- GenericDAO<T,ID>, QueryModelDAO<T,ID>
public class JDBCQueryModelDAO<T,ID>
- extends Object
- implements QueryModelDAO<T,ID>
An implementation of the QueryModelDAO interface that works atop JDBC.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCQueryModelDAO
protected JDBCQueryModelDAO(Class<T> entityClass,
Map<String,Object> daoProperties)
JDBCQueryModelDAO
protected JDBCQueryModelDAO(Class<T> entityClass,
Map<String,Object> daoProperties,
AccessControlContextProvider accessControlContextProvider)
findById
public T findById(ID id)
throws NoSuchItemException,
JeppettoException
- Specified by:
findById in interface GenericDAO<T,ID>
- Throws:
NoSuchItemException
JeppettoException
findAll
public Iterable<T> findAll()
throws JeppettoException
- Specified by:
findAll in interface GenericDAO<T,ID>
- Throws:
JeppettoException
save
public void save(T entity)
throws OptimisticLockException,
JeppettoException
- Specified by:
save in interface GenericDAO<T,ID>
- Throws:
OptimisticLockException
JeppettoException
delete
public void delete(T entity)
throws JeppettoException
- Specified by:
delete in interface GenericDAO<T,ID>
- Throws:
JeppettoException
deleteById
public void deleteById(ID id)
throws JeppettoException
- Specified by:
deleteById in interface GenericDAO<T,ID>
- Throws:
JeppettoException
flush
public void flush()
throws JeppettoException
- Specified by:
flush in interface GenericDAO<T,ID>
- Throws:
JeppettoException
findUniqueUsingQueryModel
public T findUniqueUsingQueryModel(QueryModel queryModel)
throws NoSuchItemException,
TooManyItemsException,
JeppettoException
- Specified by:
findUniqueUsingQueryModel in interface QueryModelDAO<T,ID>
- Throws:
NoSuchItemException
TooManyItemsException
JeppettoException
findUsingQueryModel
public Iterable<T> findUsingQueryModel(QueryModel queryModel)
throws JeppettoException
- Specified by:
findUsingQueryModel in interface QueryModelDAO<T,ID>
- Throws:
JeppettoException
projectUsingQueryModel
public Object projectUsingQueryModel(QueryModel queryModel)
throws JeppettoException
- Specified by:
projectUsingQueryModel in interface QueryModelDAO<T,ID>
- Throws:
JeppettoException
deleteUsingQueryModel
public void deleteUsingQueryModel(QueryModel queryModel)
throws JeppettoException
- Specified by:
deleteUsingQueryModel in interface QueryModelDAO<T,ID>
- Throws:
JeppettoException
buildCondition
public Condition buildCondition(String conditionField,
ConditionType conditionType,
Iterator argsIterator)
- Specified by:
buildCondition in interface QueryModelDAO<T,ID>
buildProjection
public Projection buildProjection(String projectionField,
ProjectionType projectionType,
Iterator argsIterator)
- Specified by:
buildProjection in interface QueryModelDAO<T,ID>
Copyright © 2012. All Rights Reserved.