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
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionfindAll
(long tenantId) Orders the result by ascending positionFinds all active policiesfindAllEnabled
(long tenantId) Finds all active policies in the given tenantMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, 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, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
-
Method Details
-
findAll
Orders the result by ascending position- Specified by:
findAll
in interfacecom.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>
- Overrides:
findAll
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy>
-
findAllEnabled
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
Description copied from interface:RetentionPolicyDAO
Finds all active policies- Specified by:
findAllEnabled
in interfaceRetentionPolicyDAO
- Returns:
- list of policies
-