Questo contenuto non è disponibile nella lingua selezionata.

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();
Copy to Clipboard Toggle word wrap
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat