Interface ITransaction
- All Superinterfaces:
ITransactionalAction
,Serializable
- All Known Implementing Classes:
Transaction
This interface defines a single transaction.
- Since:
- 6.5
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ITransactionalAction transaction) This method will add the transaction to the stack.getId()
This method returns the unique ID of the transaction (never null).getName()
This method returns the name of the transaction, or null is none was defined.boolean
isEmpty()
This method returns a boolean indicating if this transaction stack does not contain any (sub)transactions.int
size()
This method returns the number of actions that are present in this transaction.Methods inherited from interface com.aquima.interactions.foundation.tx.ITransactionalAction
duplicate, rollback
-
Method Details
-
getId
GUID getId()This method returns the unique ID of the transaction (never null).- Returns:
- The unique ID of the transaction.
-
getName
String getName()This method returns the name of the transaction, or null is none was defined.- Returns:
- the name of the transaction, or null is none was defined.
-
isEmpty
boolean isEmpty()This method returns a boolean indicating if this transaction stack does not contain any (sub)transactions.- Returns:
- a boolean indicating if this transaction stack does not contain any (sub)transactions.
-
size
int size()This method returns the number of actions that are present in this transaction.- Returns:
- the number of actions that are present in this transaction.
-
add
This method will add the transaction to the stack.- Parameters:
transaction
- The transaction that should be added.
-