Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
1.3.3. Transaction
The
Transaction interface allows operations to be performed on the transaction associated with the target object. Every top-level transaction is associated with one Transaction object when the transaction is created. The Transaction object has several uses, as described in Transaction Interface uses.
Transaction Interface uses
- Enlists the transactional resources in use by the application.
- Register for transaction synchronization call backs.
- Commit or roll back the transaction.
- Obtain the status of the transaction.
You can obtain a
Transaction object by invoking the getTransaction method of the TransactionManager interface, as shown in Example 1.3, “Obtaining a Transaction”.
Example 1.3. Obtaining a Transaction
Transaction txObj = TransactionManager.getTransaction();