Interface WorkflowTriggerDAO

All Superinterfaces:
com.logicaldoc.core.PersistentObjectDAO<WorkflowTrigger>
All Known Implementing Classes:
HibernateWorkflowTriggerDAO

public interface WorkflowTriggerDAO extends com.logicaldoc.core.PersistentObjectDAO<WorkflowTrigger>
DAO to operate on Workflow triggers.
Since:
6.6.2
Author:
Marco Meschieri - LogicalDOC
  • Field Summary

    Fields inherited from interface com.logicaldoc.core.PersistentObjectDAO

    ENTITY
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    applyTriggersToTree(long rootId)
    Replicates the triggers of a parent folder to all the tree
    findByFolderId(long folderId)
    This method selects all triggers associated to a folder

    Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO

    bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
  • Method Details

    • findByFolderId

      List<WorkflowTrigger> findByFolderId(long folderId) throws com.logicaldoc.core.PersistenceException
      This method selects all triggers associated to a folder
      Parameters:
      folderId - identifier of the folder
      Returns:
      list of triggers
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • applyTriggersToTree

      int applyTriggersToTree(long rootId) throws com.logicaldoc.core.PersistenceException
      Replicates the triggers of a parent folder to all the tree
      Parameters:
      rootId - identifier of the folder root of the tree
      Returns:
      number of altered folders
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database