Package com.ocs.dynamo.dao.impl
Class TreeDaoImpl<ID,T extends AbstractEntity<ID>>
- java.lang.Object
-
- com.ocs.dynamo.dao.impl.BaseDaoImpl<ID,T>
-
- com.ocs.dynamo.dao.impl.TreeDaoImpl<ID,T>
-
- Type Parameters:
ID- type of the primary keyT- type of the entity
public abstract class TreeDaoImpl<ID,T extends AbstractEntity<ID>> extends BaseDaoImpl<ID,T> implements TreeDao<ID,T>
Base implementation of a DAO with tree support- Author:
- bas.rutten
-
-
Constructor Summary
Constructors Constructor Description TreeDaoImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<T>findByParent(T parent)List<T>findByParentIsNull()protected abstract com.querydsl.core.types.dsl.EntityPathBase<T>getParentPath()-
Methods inherited from class com.ocs.dynamo.dao.impl.BaseDaoImpl
addParameter, count, count, createDeleteClause, createQuery, createUpdateClause, delete, delete, fetch, fetch, fetch, fetchById, fetchByIds, fetchByIds, fetchByUniqueProperty, find, find, findAll, findAll, findById, findByUniqueProperty, findDistinct, findDistinctInCollectionTable, findIds, findIds, findSelect, findSelect, flushAndClear, getDslRoot, getEntityManager, getFetchJoins, getFirstValue, getFirstValueOptional, save, save
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ocs.dynamo.dao.BaseDao
count, count, delete, delete, fetch, fetch, fetch, fetchById, fetchByIds, fetchByIds, fetchByUniqueProperty, find, find, findAll, findAll, findById, findByUniqueProperty, findDistinct, findDistinctInCollectionTable, findIds, findIds, findSelect, findSelect, flushAndClear, getEntityClass, save, save
-
-
-
-
Method Detail
-
getParentPath
protected abstract com.querydsl.core.types.dsl.EntityPathBase<T> getParentPath()
- Returns:
- the QueryDSL path to the parent
-
findByParentIsNull
public List<T> findByParentIsNull()
- Specified by:
findByParentIsNullin interfaceTreeDao<ID,T extends AbstractEntity<ID>>
-
findByParent
public List<T> findByParent(T parent)
- Specified by:
findByParentin interfaceTreeDao<ID,T extends AbstractEntity<ID>>
-
-