|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.transaction.impl.TransactionManager
org.openanzo.model.transaction.impl.TransactionQueueManager
public class TransactionQueueManager
Standard implementation of the ITransactionQueueManager
| Constructor Summary | |
|---|---|
TransactionQueueManager()
Create new TransactionQueueManager |
|
TransactionQueueManager(ITransactionQueue transactionQueue)
Create new TransactionQueueManager with provided TransactionQueue |
|
| Method Summary | |
|---|---|
java.lang.Object |
executeInTransaction(Command c)
Execute a command within a transaction, where the Command becomes on ICommand within the ITransaction. |
void |
executeInTransaction(CommandChain commands)
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... context)
Filter a set of statements with the ITransaction and ICommands within the ITransactionQueue. |
ITransactionQueue |
getTransactionQueue()
Get the TransactionQueue for the manager |
void |
performAbort()
Perform internal processes needed to abort the current transaction |
void |
performBegin()
Perform internal processes needed to begin a new transaction |
void |
performCommit()
Perform internal processes needed to commit the current transaction |
| Methods inherited from class org.openanzo.model.transaction.impl.TransactionManager |
|---|
abort, begin, beginNonBlocking, commit, currentThreadOwnsTransaction, isInTransaction |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openanzo.model.ITransactionManager |
|---|
abort, begin, beginNonBlocking, commit, currentThreadOwnsTransaction, isInTransaction |
| Constructor Detail |
|---|
public TransactionQueueManager()
public TransactionQueueManager(ITransactionQueue transactionQueue)
transactionQueue - on which this manager operates| Method Detail |
|---|
public void performAbort()
throws AnzoException
TransactionManager
performAbort in class TransactionManagerAnzoException - if there was an error aborting transaction
public void performBegin()
throws AnzoException
TransactionManager
performBegin in class TransactionManagerAnzoException - if there was an error beginning a transaction
public void performCommit()
throws AnzoException
TransactionManager
performCommit in class TransactionManagerAnzoException - if there was an error committing transactionpublic ITransactionQueue getTransactionQueue()
ITransactionQueueManager
getTransactionQueue in interface ITransactionQueueManager
public void executeInTransaction(CommandChain commands)
throws AnzoException
ITransactionQueueManager
executeInTransaction in interface ITransactionQueueManagercommands - commandChain to execute *
AnzoException - if there was an error executing commandChain
public java.lang.Object executeInTransaction(Command c)
throws AnzoException
ITransactionQueueManager
executeInTransaction in interface ITransactionQueueManagerc - command to execute
AnzoException - if there was an error executing command
public 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... context)
ITransactionQueueManager
filter in interface ITransactionQueueManagerresults - 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.context - The contexts of the statement pattern being searched on.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||