public class SizeCommand extends AbstractLocalCommand implements VisitableCommand
Constructor and Description |
---|
SizeCommand(DataContainer container) |
Modifier and Type | Method and Description |
---|---|
Object |
acceptVisitor(InvocationContext ctx,
Visitor visitor)
Accept a visitor, and return the result of accepting this visitor.
|
Integer |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
String |
toString() |
getCommandId, getParameters, ignoreCommandOnStatus, isReturnValueExpected, noTxModifications, setParameters, shouldInvoke
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ignoreCommandOnStatus, shouldInvoke
getCommandId, getParameters, isReturnValueExpected, setParameters
public SizeCommand(DataContainer container)
public Object acceptVisitor(InvocationContext ctx, Visitor visitor) throws Throwable
VisitableCommand
acceptVisitor
in interface VisitableCommand
ctx
- invocation contextvisitor
- visitor to acceptThrowable
- in the event of problemspublic Integer perform(InvocationContext ctx) throws Throwable
ReplicableCommand
perform
in interface ReplicableCommand
ctx
- invocation contextThrowable
- in the event of problems.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.