com.sibvisions.util.db
Class AbstractCommand

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

public abstract class AbstractCommand
extends java.lang.Object

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


Constructor Summary
AbstractCommand()
           
 
Method Summary
 java.lang.String getCommand()
          Gets the command.
 java.lang.String getCommandName()
          Gets the command name.
 java.lang.String[] getCommandParameters()
          Gets the command parameters.
 int getPosition()
          Gets the start position in the statement for the command.
 java.lang.Object getValue()
          Gets the value for the command.
 void setCommand(java.lang.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(java.lang.String pCommand)
Sets the whole command, with name and parameters.

Parameters:
pCommand - the command string

getCommand

public java.lang.String getCommand()
Gets the command.

Returns:
the command string, with name and parameters.

getCommandName

public java.lang.String getCommandName()
Gets the command name.

Returns:
the command name

getCommandParameters

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

Returns:
the parameters

getValue

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

Returns:
the value
Throws:
java.lang.Exception - if value detection fails


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.