Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hp.hpl.jena.graph
Interface TransactionHandler  view TransactionHandler download TransactionHandler.java


public interface TransactionHandler

Preliminary interface for graphs supporting transactions.


Method Summary
 void abort()
          If transactions are supported and there is a tranaction in progress, abort it.
 void begin()
          If transactions are supported, begin a new transaction.
 void commit()
          If transactions are supported and there is a tranaction in progress, commit it.
 java.lang.Object executeInTransaction(com.hp.hpl.jena.shared.Command c)
          If transactions are supported, execute the command c within a transaction and return its result.
 boolean transactionsSupported()
          Does this handler support transactions at all?
 

Method Detail

transactionsSupported

public boolean transactionsSupported()
Does this handler support transactions at all?


begin

public void begin()
If transactions are supported, begin a new transaction. If tranactions are not supported, or they are but this tranaction is nested and nested transactions are not supported, throw an UnsupportedOperationException.


abort

public void abort()
If transactions are supported and there is a tranaction in progress, abort it. If transactions are not supported, or there is no transaction in progress, throw an UnsupportedOperationException.


commit

public void commit()
If transactions are supported and there is a tranaction in progress, commit it. If transactions are not supported, , or there is no transaction in progress, throw an UnsupportedOperationException.


executeInTransaction

public java.lang.Object executeInTransaction(com.hp.hpl.jena.shared.Command c)
If transactions are supported, execute the command c within a transaction and return its result. If not, throw an UnsupportedOperationException.