Package com.axelor.meta.db.repo
Class MetaWorkflowRunRepository
java.lang.Object
com.axelor.db.JpaRepository<MetaWorkflowRun>
com.axelor.meta.db.repo.AbstractMetaWorkflowRunRepository
com.axelor.meta.db.repo.MetaWorkflowRunRepository
- All Implemented Interfaces:
Repository<MetaWorkflowRun>
-
Field Summary
Fields inherited from class com.axelor.db.JpaRepository
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe runs recorded against one business record, unordered.voidremove(MetaWorkflowRun entity) Deleting a run takes its node rows with it.Methods inherited from class com.axelor.db.JpaRepository
all, all, copy, create, fields, find, findById, findByIds, flush, getReferenceById, isPermitted, isPermitted, merge, of, persist, populate, refresh, save, validate
-
Constructor Details
-
MetaWorkflowRunRepository
public MetaWorkflowRunRepository()
-
-
Method Details
-
forRecord
The runs recorded against one business record, unordered.Here rather than spelled out at each call site: the viewer, its run list and the toolbar all ask the same question, and a filter string repeated three times is three places to get the jsonModel handling wrong.
-
remove
Deleting a run takes its node rows with it. They are that run's history and mean nothing without it, and their FK would otherwise refuse the delete — so retention pruning, an administrator clearing history, and a test tidying up all behave the same way.- Specified by:
removein interfaceRepository<MetaWorkflowRun>- Overrides:
removein classJpaRepository<MetaWorkflowRun>- Parameters:
entity- the entity object
-