|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.transaction.impl.Transaction
org.openanzo.model.transaction.impl.RDBPersistedTransaction
public class RDBPersistedTransaction
Transaction that is backed by a RDB persisted store
| Constructor Summary | |
|---|---|
RDBPersistedTransaction(ITransactionQueue queue,
RDBNamedGraphContainer container)
Create a new RDB persisted transaction |
|
RDBPersistedTransaction(ITransactionQueue queue,
RDBNamedGraphContainer container,
long transactionId)
Create a RDBPersistedTransaction for a persisted transaction |
|
| Method Summary | |
|---|---|
ITransactionCommand |
createNewCommand(java.lang.String commandType)
Create a new command , but do not add it to queue yet |
ITransactionCommand |
createNewCommand(java.lang.String commandType,
java.util.Set<IPrecondition> preconditions)
Create a new command, but do not add it to queue yet |
void |
delete()
Delete the transaction from its store. |
void |
save()
Save the transaction to its store. |
| Methods inherited from class org.openanzo.model.transaction.impl.Transaction |
|---|
filter, getCommandCount, getCommands, getCurrentCommand, getId, getTransactionQueue, getTransactionTimestamp, isEmpty, nextCommand, redo, setId, setTransactionQueue, setTransactionTimestamp, undo |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDBPersistedTransaction(ITransactionQueue queue,
RDBNamedGraphContainer container)
queue - Parent TransactionQueue for this transactioncontainer - JDBC container for data
public RDBPersistedTransaction(ITransactionQueue queue,
RDBNamedGraphContainer container,
long transactionId)
throws AnzoException
queue - Parent TransactionQueue for this transactioncontainer - JDBC container for datatransactionId - ID of Transaction
AnzoException - if there was an error loading transaction for the RDB| Method Detail |
|---|
public void delete()
throws AnzoException
ITransaction
delete in interface ITransactiondelete in class TransactionAnzoException - if there is an error deleting tranaction
public void save()
throws AnzoException
ITransaction
save in interface ITransactionsave in class TransactionAnzoException - if there is an error saving tranactionpublic ITransactionCommand createNewCommand(java.lang.String commandType)
commandType - for new command
public ITransactionCommand createNewCommand(java.lang.String commandType,
java.util.Set<IPrecondition> preconditions)
createNewCommand in class TransactioncommandType - Type of commandpreconditions - Precondition for command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||