|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Command
An Command is basic unit of work that can be execute within a transaction. Command's can be nested arbitrarily deep in a tree structure. When executed, it is the responsibility of each command to, in turn, execute its children (if any).
| Method Summary | |
|---|---|
void |
addPrecondition(IPrecondition precondition)
Add a precondition to this command that will get evaluated on the server to decide if the command can get commited. |
java.lang.Object |
execute()
Method that is executed by local transaction manager when this command is processed. |
java.lang.String |
getCommandType()
Returns a string representing the command type encompassed by this command. |
IDataset |
getDataset()
Get the Dataset used by this command. |
java.util.Set<IPrecondition> |
getPreconditions()
Return the set of preconditions for this command. |
void |
setDataset(IDataset dataset)
Set the Dataset used by this command, for example to create new resources. |
void |
setInputProperty(java.lang.String name,
java.lang.Object value)
An input property is a name/value pair that can be used by the command during its execution. |
void |
setPreconditions(java.util.Set<IPrecondition> preconditions)
Set this commands preconditions to the given set. |
| Method Detail |
|---|
java.lang.String getCommandType()
void setDataset(IDataset dataset)
dataset - the dataset where statements are added or removedIDataset getDataset()
void setInputProperty(java.lang.String name,
java.lang.Object value)
name - Name of input propertyvalue - Value of input propertyvoid addPrecondition(IPrecondition precondition)
precondition - Precondition that is evaluated on the servervoid setPreconditions(java.util.Set<IPrecondition> preconditions)
preconditions - Set of preconditions that are evaluated on the serverjava.util.Set<IPrecondition> getPreconditions()
java.lang.Object execute()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||