Package com.logicaldoc.report
Interface ReportDAO
- All Superinterfaces:
- com.logicaldoc.core.PersistentObjectDAO<Report>
- All Known Implementing Classes:
- HibernateReportDAO
DAO for 
Report handling.- 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 reportsfindByName(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 interface com.logicaldoc.core.PersistentObjectDAObulkUpdate, delete, 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- 
storeStores the report and it's design file- Parameters:
- report- the report to store
- design- the file containing the report's design
- Throws:
- com.logicaldoc.core.PersistenceException- error at data layer
 
- 
findByNameFinds the report with the given name- 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
 
- 
findZombiesRetrieves all the reports that are running for more than one hour- Parameters:
- tenantId- identifier of the tenant
- Returns:
- list of reports
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
- 
cleanZombiesvoid cleanZombies(long tenantId) throws com.logicaldoc.core.PersistenceException Cleans the status of zombie reports- Parameters:
- tenantId- identifier of the tenant
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
 
 
-