|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.commands.read.AbstractDataCommand org.jboss.cache.commands.write.AbstractVersionedDataCommand org.jboss.cache.commands.write.PutDataMapCommand
public class PutDataMapCommand
Implements functionality defined by Cache.put(String, java.util.Map)
.
Field Summary | |
---|---|
protected Map |
data
|
protected boolean |
erase
|
static int |
ERASE_METHOD_ID
|
static int |
ERASE_VERSIONED_METHOD_ID
|
protected static org.apache.commons.logging.Log |
log
|
static int |
METHOD_ID
|
protected static boolean |
trace
|
static int |
VERSIONED_METHOD_ID
|
Fields inherited from class org.jboss.cache.commands.write.AbstractVersionedDataCommand |
---|
dataVersion, globalTransaction, notifier |
Fields inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
---|
dataContainer, fqn |
Constructor Summary | |
---|---|
PutDataMapCommand()
|
|
PutDataMapCommand(GlobalTransaction globalTransaction,
Fqn fqn,
Map data)
|
Method Summary | |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor. |
boolean |
equals(Object o)
|
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming. |
Map |
getData()
|
Object[] |
getParameters()
Basic versions of these methods |
int |
hashCode()
|
boolean |
isErase()
Returns a flag indicating the node data should be erased. |
protected boolean |
isVersionedId(int id)
|
Object |
perform(InvocationContext ctx)
Adds the provided data map to the data map in the node referenced by the specified Fqn. |
void |
setData(Map data)
|
void |
setErase(boolean erase)
Sets a flag indicating the node data should be erased. |
void |
setParameters(int commandId,
Object[] args)
Basic versions of these methods |
String |
toString()
|
Methods inherited from class org.jboss.cache.commands.write.AbstractVersionedDataCommand |
---|
getDataVersion, getGlobalTransaction, initialize, isVersioned, peekVersioned, setDataVersion, setGlobalTransaction |
Methods inherited from class org.jboss.cache.commands.read.AbstractDataCommand |
---|
getFqn, initialize |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.cache.commands.DataCommand |
---|
getFqn |
Field Detail |
---|
public static final int METHOD_ID
public static final int ERASE_METHOD_ID
public static final int VERSIONED_METHOD_ID
public static final int ERASE_VERSIONED_METHOD_ID
protected static final org.apache.commons.logging.Log log
protected static final boolean trace
protected Map data
protected boolean erase
Constructor Detail |
---|
public PutDataMapCommand(GlobalTransaction globalTransaction, Fqn fqn, Map data)
public PutDataMapCommand()
Method Detail |
---|
public Object perform(InvocationContext ctx)
ctx
- invocation context
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
ctx
- invocation contextvisitor
- visitor to accept
Throwable
- in the event of problemspublic Map getData()
public void setData(Map data)
public int getCommandId()
ReplicableCommand
public Object[] getParameters()
AbstractDataCommand
getParameters
in interface ReplicableCommand
getParameters
in class AbstractVersionedDataCommand
public void setParameters(int commandId, Object[] args)
AbstractDataCommand
setParameters
in interface ReplicableCommand
setParameters
in class AbstractVersionedDataCommand
commandId
- command id to set. This is usually unused but *could* be used in the event of a command having multiple IDs, such as PutKeyValueCommand
.args
- object array of argsprotected boolean isVersionedId(int id)
isVersionedId
in class AbstractVersionedDataCommand
public boolean equals(Object o)
equals
in class AbstractVersionedDataCommand
public int hashCode()
hashCode
in class AbstractVersionedDataCommand
public void setErase(boolean erase)
public boolean isErase()
public String toString()
toString
in class AbstractDataCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |