Package de.xima.fc.dao.impl
Class WorkflowStateDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
  
- All Implemented Interfaces:
 de.xima.cmn.dao.interfaces.IAbstractDao<WorkflowState,,Long, IEntityContext> IGenericDao<WorkflowState>,IWorkflowStateDao
The default implementation of 
IWorkflowStateDao that can be accessed via DaoProvider.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
- 
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionDeprecated.createDefaultStates(Locale locale) Creates the system default workflow statesgetAllByWorkflowVersion(IEntityContext ec, Projekt project, long versionNumber) Finds all states of the given workflow version.getAllByWorkflowVersion(IEntityContext ec, WorkflowVersion workflowVersion) Finds all states of the given workflow version.getAllForActiveVersion(IEntityContext ec, Projekt project) Finds all states of the active workflow version of the given project.getByUuid(IEntityContext ec, WorkflowVersion workflowVersion, UUID uuid) Finds the state with the given UUID contained in the given workflow version.getEntityRefs(IEntityContext ec, WorkflowState state) Returns a set of entities that reference the given entity and depend on it.getOrCreateSystemState(IEntityContext ec, WorkflowVersion workflowVersion, EWorkflowStateType type) Finds the given built-in workflow state.protected IFCDaoActionHook<WorkflowState>protected static voidinitLazy(WorkflowState state) Methods inherited from class de.xima.fc.dao.impl.GenericDao
getPostActionHook, readMethods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, read 
- 
Constructor Details
- 
WorkflowStateDao
public WorkflowStateDao()Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.WORKFLOWSTATE_DAO. 
 - 
 - 
Method Details
- 
getPreActionHook
- Overrides:
 getPreActionHookin classGenericDao<WorkflowState>
 - 
createDefaultStates
Deprecated.Description copied from interface:IWorkflowStateDaoCreates the system default workflow states- Specified by:
 createDefaultStatesin interfaceIWorkflowStateDao- Returns:
 - list of system default states
 
 - 
createDefaultStates
Description copied from interface:IWorkflowStateDaoCreates the system default workflow states- Specified by:
 createDefaultStatesin interfaceIWorkflowStateDao- Parameters:
 locale- the current locale- Returns:
 - list of system default states
 
 - 
getAllByWorkflowVersion
public List<WorkflowState> getAllByWorkflowVersion(IEntityContext ec, Projekt project, long versionNumber) Description copied from interface:IWorkflowStateDaoFinds all states of the given workflow version.- Specified by:
 getAllByWorkflowVersionin interfaceIWorkflowStateDao- Parameters:
 ec- Entity context for accessing the database.project- Project which contains the workflow version.versionNumber- Version number of the workflow version, must belong to the given project.- Returns:
 - A list of all 
WorkflowStatecontained in the given workflow version. 
 - 
getAllByWorkflowVersion
public List<WorkflowState> getAllByWorkflowVersion(IEntityContext ec, WorkflowVersion workflowVersion) Description copied from interface:IWorkflowStateDaoFinds all states of the given workflow version.- Specified by:
 getAllByWorkflowVersionin interfaceIWorkflowStateDao- Parameters:
 ec- Entity context for accessing the database.workflowVersion- Workflow version for which to retrieve the states.- Returns:
 - A list of all 
WorkflowStatecontained in the given workflow version. 
 - 
getAllForActiveVersion
Description copied from interface:IWorkflowStateDaoFinds all states of the active workflow version of the given project.- Specified by:
 getAllForActiveVersionin interfaceIWorkflowStateDao- Parameters:
 ec- Entity context for accessing the database.project- Project which contains the workflow version.- Returns:
 - A list of all 
WorkflowStatecontained in the active workflow version of the given project. 
 - 
getByUuid
Description copied from interface:IWorkflowStateDaoFinds the state with the given UUID contained in the given workflow version. Note that theWorkflowState.getUuid()is unique only within all states of a certain workflow version.- Specified by:
 getByUuidin interfaceIWorkflowStateDao- Parameters:
 ec- Entity context for accessing the database.workflowVersion- The workflow version for which to retrieve the state.uuid- The UUID of the workflow state to retrieve.- Returns:
 - A workflow state with the given UUID that is contained in the given workflow version, or 
nullif no such state exists. 
 - 
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, WorkflowState state) Description copied from interface:IGenericDaoReturns a set of entities that reference the given entity and depend on it. An entity can usually not be deleted if it is still being referenced by and depended on by other entities.- Specified by:
 getEntityRefsin interfaceIGenericDao<WorkflowState>- Overrides:
 getEntityRefsin classGenericDao<WorkflowState>- Parameters:
 ec- entity context for database transactions.state- to get references for.- Returns:
 - a set of entities that reference the given entity and depend on it.
 
 - 
getOrCreateSystemState
public WorkflowState getOrCreateSystemState(IEntityContext ec, WorkflowVersion workflowVersion, EWorkflowStateType type) Description copied from interface:IWorkflowStateDaoFinds the given built-in workflow state. Creates it if it does not exist yet.- Specified by:
 getOrCreateSystemStatein interfaceIWorkflowStateDao- Parameters:
 ec- Entity context for accessing the database.workflowVersion- Workflow version with states to search.type- Workflow state type to find.- Returns:
 - The state with the given type.
 
 - 
initLazy
 
 - 
 
createDefaultStates(Locale)