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, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, setSessionFactory, storeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isMySQL, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForObject, queryForResultSet, queryForString, store
-
Method Details
-
findAll
- Specified by:
findAllin interfacecom.logicaldoc.core.PersistentObjectDAO<RetentionPolicy>- Overrides:
findAllin 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:RetentionPolicyDAOFinds all active policies in the given tenant- Specified by:
findAllEnabledin 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:RetentionPolicyDAOFinds all active policies- Specified by:
findAllEnabledin interfaceRetentionPolicyDAO- Returns:
- list of policies
- Throws:
com.logicaldoc.core.PersistenceException- User existingUser;
-