org.space4j.command
Class CreateSequenceCmd

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

public class CreateSequenceCmd
extends Command

See Also:
Serialized Form

Constructor Summary
CreateSequenceCmd(java.lang.Object key)
           
CreateSequenceCmd(java.lang.Object key, int startWith)
           
 
Method Summary
 int execute(Space space)
          This method accesses the Space and its objects to do any modifications it wants.
 
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

CreateSequenceCmd

public CreateSequenceCmd(java.lang.Object key)

CreateSequenceCmd

public CreateSequenceCmd(java.lang.Object key,
                         int startWith)
Method Detail

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.