Package com.logicaldoc.report
Class HibernateReportDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Report>
com.logicaldoc.report.HibernateReportDAO
@Repository("reportDAO")
public class HibernateReportDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<Report>
implements ReportDAO
Hibernate implementation of 
ReportDAO- Since:
- 7.3.1
- Author:
- Marco Meschieri - LogicalDOC
- 
Field SummaryFields inherited from interface com.logicaldoc.core.PersistentObjectDAOENTITY
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanZombies(long tenantId) Cleans the status of zombie reportsvoiddelete(long reportId, int code) findByName(String name, long tenantId) Finds the report with the given namefindZombies(long tenantId) Retrieves all the reports that are running for more than one hourvoidStores the report and it's design fileMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, findAll, 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, queryForString, setSessionFactory, storeMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, deleteAll, deleteAll, evict, evict, findAll, 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, queryForString, store
- 
Method Details- 
deletepublic void delete(long reportId, int code) throws com.logicaldoc.core.PersistenceException 
- 
findByNamepublic Report findByName(String name, long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:ReportDAOFinds the report with the given name- Specified by:
- findByNamein interface- ReportDAO
- Parameters:
- name- unique name of the report
- tenantId- identifier of the tenant
- Returns:
- the found report
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
storeDescription copied from interface:ReportDAOStores the report and it's design file
- 
findZombiesDescription copied from interface:ReportDAORetrieves all the reports that are running for more than one hour- Specified by:
- findZombiesin interface- ReportDAO
- Parameters:
- tenantId- identifier of the tenant
- Returns:
- list of reports
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
cleanZombiespublic void cleanZombies(long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:ReportDAOCleans the status of zombie reports- Specified by:
- cleanZombiesin interface- ReportDAO
- Parameters:
- tenantId- identifier of the tenant
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
 
-