Package com.logicaldoc.retention
Class HibernateRetentionPolicyDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy>
-
- com.logicaldoc.retention.HibernateRetentionPolicyDAO
-
- All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>
,RetentionPolicyDAO
public class HibernateRetentionPolicyDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy> implements RetentionPolicyDAO
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RetentionPolicy>
findAll(long tenantId)
Orders the result by ascending positionList<RetentionPolicy>
findAllEnabled()
Finds all active policiesList<RetentionPolicy>
findAllEnabled(long tenantId)
Finds all active policies in the given tenant-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, setSessionFactory, store
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
findAll
public List<RetentionPolicy> findAll(long tenantId)
Orders the result by ascending position- Specified by:
findAll
in interfacecom.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>
- Overrides:
findAll
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy>
-
findAllEnabled
public List<RetentionPolicy> findAllEnabled(long tenantId)
Description copied from interface:RetentionPolicyDAO
Finds all active policies in the given tenant- Specified by:
findAllEnabled
in interfaceRetentionPolicyDAO
- Parameters:
tenantId
- identifier of the tenant- Returns:
- list of policies
-
findAllEnabled
public List<RetentionPolicy> findAllEnabled()
Description copied from interface:RetentionPolicyDAO
Finds all active policies- Specified by:
findAllEnabled
in interfaceRetentionPolicyDAO
- Returns:
- list of policies
-
-