Package com.ocs.dynamo.dao.impl
Class DefaultDaoImpl<ID,T extends AbstractEntity<ID>>
- java.lang.Object
-
- com.ocs.dynamo.dao.impl.BaseDaoImpl<ID,T>
-
- com.ocs.dynamo.dao.impl.DefaultDaoImpl<ID,T>
-
- Type Parameters:
ID- the type of the primary keyT- the type of the entity
- All Implemented Interfaces:
BaseDao<ID,T>
@Transactional public class DefaultDaoImpl<ID,T extends AbstractEntity<ID>> extends BaseDaoImpl<ID,T>
A default DAO implementation- Author:
- bas.rutten
-
-
Constructor Summary
Constructors Constructor Description DefaultDaoImpl(com.querydsl.core.types.dsl.EntityPathBase<T> dslRoot, Class<T> entityClass)DefaultDaoImpl(com.querydsl.core.types.dsl.EntityPathBase<T> dslRoot, Class<T> entityClass, String... fetchPropertyIds)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.querydsl.core.types.dsl.EntityPathBase<T>getDslRoot()Returns the query DSL rootClass<T>getEntityClass()protected FetchJoinInformation[]getFetchJoins()Returns the fetch joins that must be included in a query to fetch the IDs.-
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, getEntityManager, getFirstValue, getFirstValueOptional, save, save
-
-
-
-
Method Detail
-
getDslRoot
public com.querydsl.core.types.dsl.EntityPathBase<T> getDslRoot()
Description copied from class:BaseDaoImplReturns the query DSL root- Specified by:
getDslRootin classBaseDaoImpl<ID,T extends AbstractEntity<ID>>- Returns:
-
getFetchJoins
protected FetchJoinInformation[] getFetchJoins()
Description copied from class:BaseDaoImplReturns the fetch joins that must be included in a query to fetch the IDs. This method return an empty array by default - override when needed- Overrides:
getFetchJoinsin classBaseDaoImpl<ID,T extends AbstractEntity<ID>>- Returns:
-
-