Package com.nomagic.uml2.transaction
Class TransactionManager.TransactionOptions
java.lang.Object
com.nomagic.uml2.transaction.TransactionManager.TransactionOptions
- Enclosing interface:
- TransactionManager
Transaction options. ReadOnly - if transaction is readonly any model modification throws
ReadOnlyModelException
default value is false; FirePostCommit fires events when
transaction is done. Default value is true.-
Field Summary
Modifier and TypeFieldDescriptionstatic final TransactionManager.TransactionOptions
Read write, with post commit events.Read write without any notification.static final TransactionManager.TransactionOptions
Read write without post commit.static final TransactionManager.TransactionOptions
Readonly transaction with post commit. -
Constructor Summary
ConstructorDescriptionTransactionOptions
(boolean readonly, boolean firePostCommit, boolean validateModel) TransactionOptions
(boolean readonly, boolean firePostCommit, boolean fireAllTransactionsCommitted, boolean validateModel) -
Method Summary
-
Field Details
-
DEFAULT
Read write, with post commit events. -
READONLY
Readonly transaction with post commit. -
NO_POSTCOMMIT
Read write without post commit. -
NO_NOTIFICATION
Read write without any notification. Use this only for the temporary model modification - after the transaction the model must be the same as before, i.e. if element is created in transaction it must be removed in the same transaction, etc.
-
-
Constructor Details
-
TransactionOptions
public TransactionOptions(boolean readonly, boolean firePostCommit, boolean validateModel) -
TransactionOptions
public TransactionOptions(boolean readonly, boolean firePostCommit, boolean fireAllTransactionsCommitted, boolean validateModel)
-