Package com.logicaldoc.report
Class HibernateReportDAO
java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<Report>
com.logicaldoc.report.HibernateReportDAO
public class HibernateReportDAO
extends com.logicaldoc.core.HibernatePersistentObjectDAO<Report>
implements ReportDAO
Hibernate implementation of
ReportDAO
- Since:
- 7.3.1
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO
ENTITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanZombies
(long tenantId) Cleans the status of zombie reportsvoid
delete
(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 hourvoid
Stores the report and it's design fileMethods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, delete, deleteAll, deleteAll, findAll, 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, 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, deleteAll, deleteAll, 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, store
-
Method Details
-
delete
public void delete(long reportId, int code) throws com.logicaldoc.core.PersistenceException -
findByName
public Report findByName(String name, long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:ReportDAO
Finds the report with the given name- Specified by:
findByName
in interfaceReportDAO
- Parameters:
name
- unique name of the reporttenantId
- identifier of the tenant- Returns:
- the found report
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-
store
Description copied from interface:ReportDAO
Stores the report and it's design file -
findZombies
Description copied from interface:ReportDAO
Retrieves all the reports that are running for more than one hour- Specified by:
findZombies
in interfaceReportDAO
- Parameters:
tenantId
- identifier of the tenant- Returns:
- list of reports
- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-
cleanZombies
public void cleanZombies(long tenantId) throws com.logicaldoc.core.PersistenceException Description copied from interface:ReportDAO
Cleans the status of zombie reports- Specified by:
cleanZombies
in interfaceReportDAO
- Parameters:
tenantId
- identifier of the tenant- Throws:
com.logicaldoc.core.PersistenceException
- Error in the database
-