Package de.willuhn.datasource.rmi
Interface Transactionable
-
- All Known Subinterfaces:
DBObject,DBObjectNode
- All Known Implementing Classes:
AbstractDBObject,AbstractDBObjectNode
public interface TransactionableBildet Funktionen zur Unterstuetzung von Transaktionen ab.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransactionBegin()Damit kann man manuell eine Transaktion starten.voidtransactionCommit()Beendet eine manuell gestartete Transaktion.voidtransactionRollback()Rollt die angefangene Transaktion manuell zurueck.
-
-
-
Method Detail
-
transactionBegin
void transactionBegin() throws java.rmi.RemoteExceptionDamit 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.RemoteExceptionBeendet 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.RemoteExceptionRollt die angefangene Transaktion manuell zurueck.- Throws:
java.rmi.RemoteException- im Fehlerfall.
-
-