org.space4j.command
Class CreateObjectCmd

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

public class CreateObjectCmd
extends Command

See Also:
Serialized Form

Constructor Summary
CreateObjectCmd(java.lang.Object key, java.lang.Object obj)
           
 
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

CreateObjectCmd

public CreateObjectCmd(java.lang.Object key,
                       java.lang.Object obj)
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.