public interface ITransaction
extends java.lang.AutoCloseable
A transaction is a set of individual model changes. Each transaction must succeed or fail as a complete unit; it cannot remain in an intermediate state.
All the model updates have to be carried out in the context of a transaction, which has to be created, through the
use of the IModelingSession.createTransaction(String)
method, and committed using the
commit()
method.
Modifier and Type | Method and Description |
---|---|
void |
close()
Failsafe mechanism that will automatically rollback the transaction if it has not been commited nor rolled back.
|
void |
commit()
Commit a transaction
|
void |
rollback()
Rollback the currently active transaction.
|
void commit()
void rollback()
The actions of the currently active transaction are undone and the transaction removed from the active stack
void close() throws java.lang.RuntimeException
close
in interface java.lang.AutoCloseable
java.lang.RuntimeException