Class HibernateWorkflowTriggerDAO

java.lang.Object
com.logicaldoc.core.HibernatePersistentObjectDAO<WorkflowTrigger>
com.logicaldoc.workflow.trigger.HibernateWorkflowTriggerDAO
All Implemented Interfaces:
com.logicaldoc.core.PersistentObjectDAO<WorkflowTrigger>, WorkflowTriggerDAO

public class HibernateWorkflowTriggerDAO extends com.logicaldoc.core.HibernatePersistentObjectDAO<WorkflowTrigger> implements WorkflowTriggerDAO
  • 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
    void
    setFolderDAO(com.logicaldoc.core.folder.FolderDAO folderDAO)
     

    Methods inherited from class com.logicaldoc.core.HibernatePersistentObjectDAO

    bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDatabaseMetadata, getDbms, getSessionFactory, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, query, queryForDouble, queryForDouble, queryForInt, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, 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, 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, queryForInt, queryForList, queryForList, queryForList, queryForLong, queryForLong, queryForObject, queryForRowSet, queryForRowSet, queryForString, store
  • Method Details

    • applyTriggersToTree

      public int applyTriggersToTree(long rootId) throws com.logicaldoc.core.PersistenceException
      Description copied from interface: WorkflowTriggerDAO
      Replicates the triggers of a parent folder to all the tree
      Specified by:
      applyTriggersToTree in interface WorkflowTriggerDAO
      Parameters:
      rootId - identifier of the folder root of the tree
      Returns:
      number of altered folders
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • findByFolderId

      public List<WorkflowTrigger> findByFolderId(long folderId) throws com.logicaldoc.core.PersistenceException
      Description copied from interface: WorkflowTriggerDAO
      This method selects all triggers associated to a folder
      Specified by:
      findByFolderId in interface WorkflowTriggerDAO
      Parameters:
      folderId - identifier of the folder
      Returns:
      list of triggers
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • setFolderDAO

      public void setFolderDAO(com.logicaldoc.core.folder.FolderDAO folderDAO)