Package de.willuhn.datasource.rmi
Interface Transactionable
-
- All Known Subinterfaces:
DBObject
,DBObjectNode
- All Known Implementing Classes:
AbstractDBObject
,AbstractDBObjectNode
public interface Transactionable
Bildet Funktionen zur Unterstuetzung von Transaktionen ab.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
transactionBegin()
Damit kann man manuell eine Transaktion starten.void
transactionCommit()
Beendet eine manuell gestartete Transaktion.void
transactionRollback()
Rollt die angefangene Transaktion manuell zurueck.
-
-
-
Method Detail
-
transactionBegin
void transactionBegin() throws java.rmi.RemoteException
Damit kann man manuell eine Transaktion starten. Normalerweise wir bei store() oder delete() sofort bei Erfolg ein commit gemacht. Wenn man aber von aussen das Transaktionsverhalten beeinflussen will, kann man diese Methode aufrufen. Hat man dies getan, werden store() und delete() erst dann in der Datenbank ausgefuehrt, wenn man anschliessend transactionCommit() aufruft.- Throws:
java.rmi.RemoteException
- im Fehlerfall.
-
transactionCommit
void transactionCommit() throws java.rmi.RemoteException
Beendet eine manuell gestartete Transaktion. Wenn vorher keintransactionBegin()
aufgerufen wurde, wird dieser Aufruf ignoriert.- Throws:
java.rmi.RemoteException
- im Fehlerfall.
-
transactionRollback
void transactionRollback() throws java.rmi.RemoteException
Rollt die angefangene Transaktion manuell zurueck.- Throws:
java.rmi.RemoteException
- im Fehlerfall.
-
-