com.sibvisions.util.db
Class AbstractCommand

java.lang.Object
  extended by com.sibvisions.util.db.AbstractCommand

public abstract class AbstractCommand
extends Object

The AbstractCommand is a default ICommand implementation and should be used as superclass for all commands.


Constructor Summary
AbstractCommand()
           
 
Method Summary
 String getCommand()
          Gets the command.
 String getCommandName()
          Gets the command name.
 String[] getCommandParameters()
          Gets the command parameters.
 int getPosition()
          Gets the start position in the statement for the command.
 Object getValue()
          Gets the value for the command.
 void setCommand(String pCommand)
          Sets the whole command, with name and parameters.
 void setPosition(int pPosition)
          Sets the start position in the statement for the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCommand

public AbstractCommand()
Method Detail

setPosition

public void setPosition(int pPosition)
Sets the start position in the statement for the command.

Parameters:
pPosition - the start index

getPosition

public int getPosition()
Gets the start position in the statement for the command.

Returns:
the start index

setCommand

public void setCommand(String pCommand)
Sets the whole command, with name and parameters.

Parameters:
pCommand - the command string

getCommand

public String getCommand()
Gets the command.

Returns:
the command string, with name and parameters.

getCommandName

public String getCommandName()
Gets the command name.

Returns:
the command name

getCommandParameters

public String[] getCommandParameters()
Gets the command parameters.

Returns:
the parameters

getValue

public Object getValue()
                throws Exception
Gets the value for the command.

Returns:
the value
Throws:
Exception - if value detection fails


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.