Package com.logicaldoc.report
Class HibernateReportDAO
- java.lang.Object
-
- com.logicaldoc.core.HibernatePersistentObjectDAO<Report>
-
- com.logicaldoc.report.HibernateReportDAO
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanZombies(long tenantId)
Cleans the status of zombie reportsboolean
delete(long reportId, int code)
Report
findByName(String name, long tenantId)
Finds the report with the given nameList<Report>
findZombies(long tenantId)
Retrieves all the reports that are running for more than one hourstatic File
getDesignsDirectory()
Computes the directory in which all design files must be maintained, that is the plugin dirstatic File
resolveDesignFile(long reportId)
static File
resolveLogFile(long reportId)
boolean
store(Report report, File design)
Stores the report and it's design file-
Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO
bulkUpdate, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, 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, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
resolveDesignFile
public static File resolveDesignFile(long reportId)
-
resolveLogFile
public static File resolveLogFile(long reportId)
-
getDesignsDirectory
public static File getDesignsDirectory()
Computes the directory in which all design files must be maintained, that is the plugin dir- Returns:
- folder containing the designs
-
delete
public boolean delete(long reportId, int code)
-
findByName
public Report findByName(String name, long tenantId)
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
-
store
public boolean store(Report report, File design) throws com.logicaldoc.core.PersistenceException
Description copied from interface:ReportDAO
Stores the report and it's design file
-
findZombies
public List<Report> findZombies(long tenantId)
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
-
cleanZombies
public void cleanZombies(long tenantId)
Description copied from interface:ReportDAO
Cleans the status of zombie reports- Specified by:
cleanZombies
in interfaceReportDAO
- Parameters:
tenantId
- identifier of the tenant
-
-