|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.transaction.impl.TransactionCommand
org.openanzo.model.transaction.impl.RDBPersistedCommand
public class RDBPersistedCommand
TransactionCommand that is backed by an RDB persisted store
| Constructor Summary | |
|---|---|
RDBPersistedCommand(RDBNamedGraphContainer container,
RDBPersistedTransaction transaction)
Create a new RDB persisted command with no type |
|
RDBPersistedCommand(RDBNamedGraphContainer container,
RDBPersistedTransaction transaction,
long commandId,
java.lang.String commandType,
java.util.Set<IPrecondition> preconditions)
Create a RDBPersistedCommand for a persisted command |
|
RDBPersistedCommand(RDBNamedGraphContainer container,
RDBPersistedTransaction transaction,
java.lang.String commandType)
Create a new RDB persisted command with a command type |
|
| Method Summary | |
|---|---|
void |
delete()
Delete the command from its store. |
long |
getCommandId()
Get the command's unique id |
void |
save()
Save the command to its store. |
void |
setCommandType(java.lang.String commandType)
Set the type name for this command. |
| Methods inherited from class org.openanzo.model.transaction.impl.TransactionCommand |
|---|
addStatementAddition, addStatementRemoval, filter, getAdditionContexts, getAdditions, getCommandType, getDeletionContexts, getDeletions, getParentTransaction, getPreconditions, isEmpty, setParentTransaction, setPreconditions, sizeAdditions, sizeAdditions, sizeDeletions, sizeDeletions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDBPersistedCommand(RDBNamedGraphContainer container,
RDBPersistedTransaction transaction,
java.lang.String commandType)
container - JDBC container for datatransaction - Parent transactioncommandType - Type of this command
public RDBPersistedCommand(RDBNamedGraphContainer container,
RDBPersistedTransaction transaction)
container - JDBC container for datatransaction - Parent transaction
public RDBPersistedCommand(RDBNamedGraphContainer container,
RDBPersistedTransaction transaction,
long commandId,
java.lang.String commandType,
java.util.Set<IPrecondition> preconditions)
throws AnzoException
container - JDBC container for datatransaction - Parent transactioncommandId - Id for persisted commandcommandType - Type for the commandpreconditions - Precondition for command
AnzoException, - if there was an error loading command from the RDB
AnzoException| Method Detail |
|---|
public void save()
throws AnzoException
ITransactionCommand
save in interface ITransactionCommandsave in class TransactionCommandAnzoException - if there is an error saving command
public void delete()
throws AnzoException
ITransactionCommand
delete in interface ITransactionCommanddelete in class TransactionCommandAnzoException - if there is an error deleting commandpublic void setCommandType(java.lang.String commandType)
ITransactionCommand
setCommandType in interface ITransactionCommandsetCommandType in class TransactionCommandcommandType - Command's type Stringpublic long getCommandId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||