Package com.logicaldoc.workflow.trigger
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
applyTriggersToTree(long rootId)
Replicates the triggers of a parent folder to all the treeList<WorkflowTrigger>
findByFolderId(long folderId)
This method selects all triggers associated to a foldervoid
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, 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, 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
-
applyTriggersToTree
public int applyTriggersToTree(long rootId)
Description copied from interface:WorkflowTriggerDAO
Replicates the triggers of a parent folder to all the tree- Specified by:
applyTriggersToTree
in interfaceWorkflowTriggerDAO
- Parameters:
rootId
- identifier of the folder root of the tree- Returns:
- number of altered folders
-
findByFolderId
public List<WorkflowTrigger> findByFolderId(long folderId)
Description copied from interface:WorkflowTriggerDAO
This method selects all triggers associated to a folder- Specified by:
findByFolderId
in interfaceWorkflowTriggerDAO
- Parameters:
folderId
- identifier of the folder- Returns:
- list of triggers
-
setFolderDAO
public void setFolderDAO(com.logicaldoc.core.folder.FolderDAO folderDAO)
-
-