org.space4j.command
Class IncrementSeqCmd

java.lang.Object
  extended by org.space4j.Command
      extended by org.space4j.command.IncrementSeqCmd
All Implemented Interfaces:
java.io.Serializable

public class IncrementSeqCmd
extends Command

See Also:
Serialized Form

Constructor Summary
IncrementSeqCmd(java.lang.Object target)
           
 
Method Summary
 int execute(Space space)
          This method accesses the Space and its objects to do any modifications it wants.
 void setSequence(int x)
           
 
Methods inherited from class org.space4j.Command
executeSQL, getLogNumber, getReplicaId, setLogNumber, setReplicaId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementSeqCmd

public IncrementSeqCmd(java.lang.Object target)
Method Detail

setSequence

public void setSequence(int x)

execute

public int execute(Space space)
            throws CommandException
Description copied from class: Command
This method accesses the Space and its objects to do any modifications it wants.

Specified by:
execute in class Command
Parameters:
space - The Space where the objects are stored.
Returns:
An int with the number of objects altered by this operation.
Throws:
CommandException - If there was an error executing this command.


Copyright © 2005 Space4J Team. All Rights Reserved.