T - persistent class.ID - ID type for the persistent class.public class HibernateQueryModelDAO<T,ID extends Serializable> extends Object implements QueryModelDAO<T,ID>, AccessControlDAO<T,ID>
| Modifier | Constructor and Description |
|---|---|
protected |
HibernateQueryModelDAO(Class<T> persistentClass,
Map<String,Object> daoProperties) |
protected |
HibernateQueryModelDAO(Class<T> persistentClass,
Map<String,Object> daoProperties,
AccessControlContextProvider accessControlContextProvider) |
protected HibernateQueryModelDAO(Class<T> persistentClass, Map<String,Object> daoProperties)
public T findById(ID id) throws NoSuchItemException, JeppettoException
findById in interface GenericDAO<T,ID extends Serializable>NoSuchItemExceptionJeppettoExceptionpublic Iterable<T> findByIds(ID... ids) throws JeppettoException
findByIds in interface GenericDAO<T,ID extends Serializable>JeppettoExceptionpublic Iterable<T> findAll() throws JeppettoException
findAll in interface GenericDAO<T,ID extends Serializable>JeppettoExceptionpublic void save(T entity) throws OptimisticLockException, JeppettoException
save in interface GenericDAO<T,ID extends Serializable>OptimisticLockExceptionJeppettoExceptionpublic void delete(T entity) throws JeppettoException
delete in interface GenericDAO<T,ID extends Serializable>JeppettoExceptionpublic void deleteById(ID id) throws JeppettoException
deleteById in interface GenericDAO<T,ID extends Serializable>JeppettoExceptionpublic void deleteByIds(ID... ids) throws FailedBatchException, JeppettoException
deleteByIds in interface GenericDAO<T,ID extends Serializable>FailedBatchExceptionJeppettoExceptionpublic <U extends T> U getUpdateObject()
getUpdateObject in interface GenericDAO<T,ID extends Serializable>public <U extends T> T updateById(U updateObject, ID id) throws JeppettoException
updateById in interface GenericDAO<T,ID extends Serializable>JeppettoExceptionpublic <U extends T> Iterable<T> updateByIds(U updateObject, ID... ids) throws FailedBatchException, JeppettoException
updateByIds in interface GenericDAO<T,ID extends Serializable>FailedBatchExceptionJeppettoExceptionpublic void flush()
throws JeppettoException
flush in interface GenericDAO<T,ID extends Serializable>JeppettoExceptionpublic T findUniqueUsingQueryModel(QueryModel queryModel) throws NoSuchItemException, TooManyItemsException, JeppettoException
findUniqueUsingQueryModel in interface QueryModelDAO<T,ID extends Serializable>NoSuchItemExceptionTooManyItemsExceptionJeppettoExceptionpublic Iterable<T> findUsingQueryModel(QueryModel queryModel) throws JeppettoException
findUsingQueryModel in interface QueryModelDAO<T,ID extends Serializable>JeppettoExceptionpublic Object projectUsingQueryModel(QueryModel queryModel) throws JeppettoException
projectUsingQueryModel in interface QueryModelDAO<T,ID extends Serializable>JeppettoExceptionpublic void deleteUsingQueryModel(QueryModel queryModel) throws JeppettoException
deleteUsingQueryModel in interface QueryModelDAO<T,ID extends Serializable>JeppettoExceptionpublic <U extends T> T updateUniqueUsingQueryModel(U updateObject, QueryModel queryModel) throws JeppettoException
updateUniqueUsingQueryModel in interface QueryModelDAO<T,ID extends Serializable>JeppettoExceptionpublic <U extends T> Iterable<T> updateUsingQueryModel(U updateObject, QueryModel queryModel) throws JeppettoException
updateUsingQueryModel in interface QueryModelDAO<T,ID extends Serializable>JeppettoExceptionpublic Condition buildCondition(String conditionField, ConditionType conditionType, Iterator argsIterator)
buildCondition in interface QueryModelDAO<T,ID extends Serializable>public Projection buildProjection(String projectionField, ProjectionType projectionType, Iterator argsIterator)
buildProjection in interface QueryModelDAO<T,ID extends Serializable>public void save(T object, AccessControlContext accessControlContext) throws OptimisticLockException, AccessControlException, JeppettoException
save in interface AccessControlDAO<T,ID extends Serializable>OptimisticLockExceptionAccessControlExceptionJeppettoExceptionpublic void grantAccess(ID id, String accessId, AccessType accessType) throws NoSuchItemException, AccessControlException
grantAccess in interface AccessControlDAO<T,ID extends Serializable>NoSuchItemExceptionAccessControlExceptionpublic void grantAccess(ID id, String accessId, AccessType accessType, AccessControlContext accessControlContext) throws NoSuchItemException, AccessControlException
grantAccess in interface AccessControlDAO<T,ID extends Serializable>NoSuchItemExceptionAccessControlExceptionpublic void revokeAccess(ID id, String accessId) throws NoSuchItemException, AccessControlException
revokeAccess in interface AccessControlDAO<T,ID extends Serializable>NoSuchItemExceptionAccessControlExceptionpublic void revokeAccess(ID id, String accessId, AccessControlContext accessControlContext) throws NoSuchItemException, AccessControlException
revokeAccess in interface AccessControlDAO<T,ID extends Serializable>NoSuchItemExceptionAccessControlExceptionpublic Map<String,AccessType> getGrantedAccesses(ID id) throws NoSuchItemException, AccessControlException
getGrantedAccesses in interface AccessControlDAO<T,ID extends Serializable>NoSuchItemExceptionAccessControlExceptionpublic Map<String,AccessType> getGrantedAccesses(ID id, AccessControlContext accessControlContext) throws NoSuchItemException, AccessControlException
getGrantedAccesses in interface AccessControlDAO<T,ID extends Serializable>NoSuchItemExceptionAccessControlExceptionpublic AccessControlContextProvider getAccessControlContextProvider()
getAccessControlContextProvider in interface AccessControlDAO<T,ID extends Serializable>protected org.hibernate.Session getCurrentSession()
Copyright © 2014. All Rights Reserved.