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) Finds 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, queryForDouble, queryForDouble, 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, queryForDouble, queryForDouble, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
-
Method Details
-
findAll
- Specified by:
findAll
in interfacecom.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>
- Overrides:
findAll
in classcom.logicaldoc.core.HibernatePersistentObjectDAO<RetentionPolicy>
- Throws:
com.logicaldoc.core.PersistenceException
-
findAllEnabled
public List<RetentionPolicy> findAllEnabled(long tenantId) throws com.logicaldoc.core.PersistenceException 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
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-
findAllEnabled
Description copied from interface:RetentionPolicyDAO
Finds all active policies- Specified by:
findAllEnabled
in interfaceRetentionPolicyDAO
- Returns:
- list of policies
- Throws:
com.logicaldoc.core.PersistenceException
- User existingUser;
-