|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITransaction
An ITransaction is the main work unit of a Transaction. It is made up of a series of ITransactionCommands
| Method Summary | |
|---|---|
void |
delete()
Delete the transaction from its store. |
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)
Use contents of ITransaction to filter the statements contained within the results collection |
int |
getCommandCount()
Get the number of the commands within this transaction. |
java.util.List<ITransactionCommand> |
getCommands()
Get a List of all the commands within this transaction. |
ITransactionCommand |
getCurrentCommand(boolean create)
Get the current command if one exists, and create if empty and create flag is true |
long |
getId()
|
ITransactionQueue |
getTransactionQueue()
Get the transactionQueue that this transaction is associated with. |
java.lang.Long |
getTransactionTimestamp()
Get the transaction's timestamp |
boolean |
isEmpty()
Does this transaction have any commands |
ITransactionCommand |
nextCommand(java.lang.String commandType)
Add a new command with the given type, and set it as the currentCommand for this transaction. |
void |
redo()
Redo the last command undone. |
void |
save()
Save the transaction to its store. |
void |
setId(long id)
Set the unique id for this transaction, useful when dealing with server transactions. |
void |
setTransactionQueue(ITransactionQueue transactionQueue)
Set the transaction queue that this transaction will be associated with. |
void |
setTransactionTimestamp(java.lang.Long transactionTimestamp)
Set the transaction's timestamp |
void |
undo()
Undo the last command. |
| Method Detail |
|---|
long getId()
void setId(long id)
id - unique if for this transactionjava.lang.Long getTransactionTimestamp()
void setTransactionTimestamp(java.lang.Long transactionTimestamp)
transactionTimestamp - Timestamp for transaction
void delete()
throws AnzoException
AnzoException - if there is an error deleting tranaction
void save()
throws AnzoException
AnzoException - if there is an error saving tranactionITransactionCommand nextCommand(java.lang.String commandType)
commandType - The CommandType for the new command
int getCommandCount()
java.util.List<ITransactionCommand> getCommands()
ITransactionCommand getCurrentCommand(boolean create)
create - Whether to create a new command if one doesn't exist.
ITransactionQueue getTransactionQueue()
void setTransactionQueue(ITransactionQueue transactionQueue)
transactionQueue - to which this transaction belongs
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)
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.
void undo()
throws AnzoException
AnzoException - if there was an error undoing transaction
void redo()
throws AnzoException
AnzoException - if there was an error redoing transactionboolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||