|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - type of the operation result, use Void or Object
when no result neededpublic interface ForestTransaction<T>
Implement this interface to define a single transaction on the forests.
It is very important to implement ForestTransaction correctly. The transaction
may be executed under one or more write locks, preventing other transactions from changing the forests
concurrently (readers still have access) - so the amount of code should be minimal and the execution time
should be predictable and small.
StructureManager.updateForest(com.atlassian.crowd.embedded.api.User, boolean, com.almworks.jira.structure.api.forest.ForestTransaction) | Method Summary | |
|---|---|
T |
transaction(ForestAccessor accessor)
Perform an operation on the forests in the structure database. |
| Method Detail |
|---|
T transaction(@NotNull
ForestAccessor accessor)
throws StructureException
Perform an operation on the forests in the structure database.
If this method throws any exception, the whole transaction will be considered failed and changes will be rolled back.
accessor - accessor that is used to read forest and execute updates
StructureManager.updateForest(com.atlassian.crowd.embedded.api.User, boolean, com.almworks.jira.structure.api.forest.ForestTransaction) .
StructureException - when operation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||