org.openanzo.model.transaction
Interface ITransactionQueueManager

All Superinterfaces:
ITransactionManager
All Known Implementing Classes:
TransactionQueueManager

public interface ITransactionQueueManager
extends ITransactionManager

The ITransactionQueueManager extends the standard TransactionHandler by adding in a TransactionQueue that holds a queue of transactions, as well as a flag to know if graph is currently in a transaction.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
 java.lang.Object executeInTransaction(Command command)
          Execute a command within a transaction, where the Command becomes on ICommand within the ITransaction.
 void executeInTransaction(CommandChain commandChain)
          Execute a CommandChain within a transaction, where each Command within chain becomes on ICommand within the ITransaction.
 void filter(java.util.Collection<org.openrdf.model.Statement> results, org.openrdf.model.Resource s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.Resource... contexts)
          Filter a set of statements with the ITransaction and ICommands within the ITransactionQueue.
 ITransactionQueue getTransactionQueue()
          Get the TransactionQueue for the manager
 
Methods inherited from interface org.openanzo.model.ITransactionManager
abort, begin, beginNonBlocking, commit, currentThreadOwnsTransaction, isInTransaction
 

Method Detail

getTransactionQueue

ITransactionQueue getTransactionQueue()
Get the TransactionQueue for the manager

Returns:
the TransactionQueue for the manager.

filter

void filter(java.util.Collection<org.openrdf.model.Statement> results,
            org.openrdf.model.Resource s,
            org.openrdf.model.URI p,
            org.openrdf.model.Value o,
            org.openrdf.model.Resource... contexts)
Filter a set of statements with the ITransaction and ICommands within the ITransactionQueue.

Parameters:
results - The collection to overlay with the additions and deletions within this transaction.
s - The subject of the statement pattern being searched on.
p - The property of the statement pattern being searched on.
o - The object of the statement pattern being searched on.
contexts - The contexts of the statement pattern being searched on.

executeInTransaction

java.lang.Object executeInTransaction(Command command)
                                      throws AnzoException
Execute a command within a transaction, where the Command becomes on ICommand within the ITransaction.

Parameters:
command - command to execute
Returns:
result of executing command
Throws:
AnzoException - if there was an error executing command

executeInTransaction

void executeInTransaction(CommandChain commandChain)
                          throws AnzoException
Execute a CommandChain within a transaction, where each Command within chain becomes on ICommand within the ITransaction.

Parameters:
commandChain - commandChain to execute *
Throws:
AnzoException - if there was an error executing commandChain


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.