com.hp.hpl.jena.graph
Interface TransactionHandler


public interface TransactionHandler

Preliminary interface for graphs supporting transactions.

Author:
kers

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?

Returns:
true iff begin/abort/commit are implemented and make sense.

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.



Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.