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

    Modifier and Type
    Method
    Description
    void
    Damit kann man manuell eine Transaktion starten.
    void
    Beendet eine manuell gestartete Transaktion.
    void
    Rollt die angefangene Transaktion manuell zurueck.
  • Method Details

    • transactionBegin

      void transactionBegin() throws 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:
      RemoteException - im Fehlerfall.
    • transactionCommit

      void transactionCommit() throws RemoteException
      Beendet eine manuell gestartete Transaktion. Wenn vorher kein transactionBegin() aufgerufen wurde, wird dieser Aufruf ignoriert.
      Throws:
      RemoteException - im Fehlerfall.
    • transactionRollback

      void transactionRollback() throws RemoteException
      Rollt die angefangene Transaktion manuell zurueck.
      Throws:
      RemoteException - im Fehlerfall.