jasp.adodb
Class Command

java.lang.Object
  |
  +--jasp.adodb.Command

public class Command
extends java.lang.Object

A Command object is a definition of a specific command that you intend to execute against a data source.


Constructor Summary
Command()
           
 
Method Summary
 void AssignProps()
          Sets all properties of the Command object.
 void Cancel()
          Cancel execution of a pending, asynchronous execute method call
 Parameter CreateParameter()
          Creates a new parameter
 Parameter CreateParameter(java.lang.String name)
          Creates a new parameter with the specific name
 Parameter CreateParameter(java.lang.String name, int type)
          Creates a new parameter with the specific name and type.
 Parameter CreateParameter(java.lang.String name, int type, int direction)
          Creates a new Parameter object with the specified name, type, direction.
 Parameter CreateParameter(java.lang.String name, int type, int direction, int size)
          Creates a new Parameter object with the specified name, type, direction and size.
 Parameter CreateParameter(java.lang.String name, int type, int direction, int size, java.lang.Object val)
          Creates a new Parameter object with the specified name, type, direction, size and value.
 Parameter CreateParameter(java.lang.String name, int type, int direction, variant size, java.lang.Object val)
          Creates a new Parameter object with the specified name, type, direction, size and value.
 Parameter CreateParameter(java.lang.String name, int type, variant direction, int size)
          Creates a new Parameter object with the specified name, type, direction and size.
 Parameter CreateParameter(java.lang.String name, int type, variant direction, int size, java.lang.Object val)
          Creates a new Parameter object with the specified name, type, direction, size and value.
 Parameter CreateParameter(java.lang.String name, variant type, int direction)
          Creates a new Parameter object with the specified name, type, direction.
 Parameter CreateParameter(variant name, int type)
          Creates a new parameter with the specific name and type.
 Parameter CreateParameter(variant name, int type, int direction)
          Creates a new Parameter object with the specified name, type, direction.
 Parameter CreateParameter(variant name, int type, int direction, int size)
          Creates a new Parameter object with the specified name, type, direction and size.
 Parameter CreateParameter(variant name, variant type, int direction)
          Creates a new Parameter object with the specified name, type and direction.
 Parameter CreateParameter(variant name, variant type, int direction, int size)
          Creates a new Parameter object with the specified name, type, direction and size.
 Parameter CreateParameter(variant name, variant type, variant direction, int size)
          Creates a new Parameter object with the specified name, type, direction and size.
 Parameter CreateParameter(variant name, variant type, variant direction, variant size, java.lang.Object val)
          Creates a new Parameter object with the specified name, type, direction, size and value.
 Parameter CreateParameter(variant name, variant type, variant direction, variant size, variant val)
          Creates a new Parameter object with the specified name, type, direction, size and value.
 Recordset Execute()
          Execute a SQL statement with the specific CommandText if have reords back, return a Recordset object.
 Recordset Execute(variant AffectNum)
          Execute a SQL statement with the specific CommandText, and returns the number of records that the operation affected.
 Recordset Execute(variant AffectNum, variant pars)
          Execute a SQL statement with the specific CommandText and Parameters array, and returns the number of records that the operation affected.
 Recordset Execute(variant AffectNum, variant pars, int Option)
          Execute a SQL statement with the specific CommandText and Parameters array, and returns the number of records that the operation affected.
 Connection getActiveConnection()
          Returns the Active Connection object.
 java.lang.String getCommandText()
          Returns the CommandText of the Command object.
 int getCommandTimeout()
          Returns the CommandTimeout value of the Command object.
 int getCommandType()
          Returns the CommandType of the Command object.
 Parameter getItem(int idx)
          Gets the parameter object
 Parameter getItem(java.lang.String name)
          Sets the value of the Parameter
 Parameter getItem(variant var)
          Gets a Parameter.
 java.lang.String getName()
          Returns the name of Command
 int getObjectState()
          Returns the objectstate of ActiveConnection.
 Parameters getParameters()
          Returns the Parameters collection
 Parameter getParameters(int idx)
          Gets the parameter
 Parameter getParameters(java.lang.String name)
          Gets the parameter
 Parameter getParameters(variant var)
          Gets the parameter
 boolean getPrepared()
          Returns the Prepared flag
 Properties getProperties()
          Returns the properties collection
 int getState()
          Returns the state of the ActiveConnection.
 Property Properties(int index)
          Gets a property from Properties Collection.
 Property Properties(java.lang.String name)
          Gets the property from Properties Collection.
 Property Properties(variant var)
          Gets the property item from Properties Collection.
 void setActiveConnection(Connection con)
          Sets the active connection.
 void setActiveConnection(java.lang.String connectStr)
          Sets the active connection .
 void setCommandText(java.lang.String cmdtxt)
          Sets the Commandtext to specific cmdtxt
 void setCommandTimeout(int cmdout)
          Sets the CommandTimeout to specific value
 void setCommandType(int cmdtype)
          Sets the CommandType to specific type.
 void setItem(int index, boolean val)
          Sets the value of the Parameter
 void setItem(int index, double val)
          Sets the value of the Parameter
 void setItem(int index, float val)
          Sets the value of the Parameter
 void setItem(int index, int val)
          Sets the value of the Parameter
 void setItem(int index, long val)
          Sets the value of the Parameter
 void setItem(int index, short val)
          Sets the value of the Parameter
 void setItem(int index, java.lang.String val)
          Sets the value of the Parameter
 void setItem(int index, variant val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, boolean val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, double val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, float val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, int val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, long val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, short val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, java.lang.String val)
          Sets the value of the Parameter
 void setItem(java.lang.String name, variant val)
          Sets the value of the Parameter
 void setItem(variant var, variant val)
          Sets the value of the Parameter
 void setName(java.lang.String name)
          Sets the name of Command
 void setParameters(int index, boolean val)
          Sets the parameter.
 void setParameters(int index, double val)
          Sets the parameter.
 void setParameters(int index, float val)
          Sets the parameter.
 void setParameters(int index, int val)
          Sets the parameter.
 void setParameters(int index, long val)
          Sets the parameter.
 void setParameters(int index, short val)
          Sets the parameter.
 void setParameters(int index, java.lang.String val)
          Sets the parameter.
 void setParameters(int index, variant val)
          Sets the parameter.
 void setParameters(java.lang.String name, boolean val)
          Sets the value of the Parameter.
 void setParameters(java.lang.String name, double val)
          Sets the value of the Parameter.
 void setParameters(java.lang.String name, float val)
          Sets the value of the Parameter.
 void setParameters(java.lang.String name, int val)
          Sets the value of the Parameter.
 void setParameters(java.lang.String name, long val)
          Sets the value of the Parameter.
 void setParameters(java.lang.String name, short val)
          Sets the value of the Parameter.
 void setParameters(java.lang.String name, java.lang.String val)
          Sets the value of the Parameter.
 void setParameters(java.lang.String name, variant val)
          Sets the value of the Parameter.
 void setParameters(variant var, variant val)
          Sets the parameter.
 void setPrepared(boolean flag)
          Sets the Prepared flag
 void setState(int state)
          Sets the state of the ActiveConnection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

setActiveConnection

public void setActiveConnection(Connection con)
                         throws java.lang.Exception
Sets the active connection.
Parameters:
con - a Connection Object
See Also:
setActiveConnection(String connectstring)

setActiveConnection

public void setActiveConnection(java.lang.String connectStr)
                         throws java.lang.Exception
Sets the active connection .
Parameters:
db - a string value
See Also:
setActiveConnection(String connectstring)

getState

public int getState()
Returns the state of the ActiveConnection.

setState

public void setState(int state)
              throws java.lang.Exception
Sets the state of the ActiveConnection.

getPrepared

public boolean getPrepared()
Returns the Prepared flag

setPrepared

public void setPrepared(boolean flag)
                 throws java.lang.Exception
Sets the Prepared flag

setCommandType

public void setCommandType(int cmdtype)
Sets the CommandType to specific type.

getCommandType

public int getCommandType()
Returns the CommandType of the Command object.

getCommandTimeout

public int getCommandTimeout()
Returns the CommandTimeout value of the Command object.

setCommandTimeout

public void setCommandTimeout(int cmdout)
Sets the CommandTimeout to specific value
Parameters:
cmdout - the specific value.

getCommandText

public java.lang.String getCommandText()
Returns the CommandText of the Command object.

setCommandText

public void setCommandText(java.lang.String cmdtxt)
Sets the Commandtext to specific cmdtxt

getProperties

public Properties getProperties()
                         throws java.lang.Exception
Returns the properties collection

getObjectState

public int getObjectState()
Returns the objectstate of ActiveConnection.

AssignProps

public void AssignProps()
                 throws java.lang.Exception
Sets all properties of the Command object.

Properties

public Property Properties(int index)
                    throws java.lang.Exception
Gets a property from Properties Collection.
Parameters:
index - the property index.
Returns:
the property.

Properties

public Property Properties(java.lang.String name)
                    throws java.lang.Exception
Gets the property from Properties Collection.
Parameters:
name - the name of the property.
Returns:
the property.

Properties

public Property Properties(variant var)
                    throws java.lang.Exception
Gets the property item from Properties Collection.
Parameters:
var - the name or index of the property.
Returns:
the property.

getName

public java.lang.String getName()
Returns the name of Command

setName

public void setName(java.lang.String name)
Sets the name of Command

CreateParameter

public Parameter CreateParameter()
                          throws java.lang.Exception
Creates a new parameter
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name)
                          throws java.lang.Exception
Creates a new parameter with the specific name
Parameters:
name - a String representing the name of the Parameter object.
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 int type)
                          throws java.lang.Exception
Creates a new parameter with the specific name and type.
Parameters:
name - a String representing the name of the Parameter object.
type - an Integer value specifying the data type of the Parameter object.
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 int type)
                          throws java.lang.Exception
Creates a new parameter with the specific name and type.
Parameters:
name - a variant representing the name of the Parameter object.
type - an Integer value specifying the data type of the Parameter object.
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 int type,
                                 int direction)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction.
Parameters:
name - a String representing the name of the Parameter object.
type - an Integer value specifying the data type of the Parameter object.
direction - an Integer value specifying the type of Parameter object
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 variant type,
                                 int direction)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction.
Parameters:
name - a String representing the name of the Parameter object.
type - a variant value specifying the data type of the Parameter object.
direction - an integer value specifying the type of Parameter object
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 int type,
                                 int direction)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction.
Parameters:
name - a variant representing the name of the Parameter object.
type - an integer value specifying the data type of the Parameter object.
direction - an integer value specifying the type of Parameter object
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 variant type,
                                 int direction)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type and direction.
Parameters:
name - a variant representing the name of the Parameter object.
type - a variant value specifying the data type of the Parameter object.
direction - an integer value specifying the type of Parameter object
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 int type,
                                 int direction,
                                 int size)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction and size.
Parameters:
name - a String representing the name of the Parameter object.
type - an Integer value specifying the data type of the Parameter object.
direction - an Integer value specifying the type of Parameter object
size - an Integer value specifying the maximum length for the value of the Parameter in characters or bytes
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 variant type,
                                 variant direction,
                                 int size)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction and size.
Parameters:
name - a variant representing the name of the Parameter object.
type - a variant value specifying the data type of the Parameter object.
direction - a variant value specifying the type of Parameter object
size - an Integer value specifying the maximum length for the value of the Parameter in characters or bytes
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 int type,
                                 int direction,
                                 int size)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction and size.
Parameters:
name - a variant representing the name of the Parameter object.
type - an Integer value specifying the data type of the Parameter object.
direction - an Integer value specifying the type of Parameter object
size - an Integer value specifying the maximum length for the value of the Parameter in characters or bytes
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 variant type,
                                 int direction,
                                 int size)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction and size.
Parameters:
name - a variant representing the name of the Parameter object.
type - a variant value specifying the data type of the Parameter object.
direction - an Integer value specifying the type of Parameter object
size - an Integer value specifying the maximum length for the value of the Parameter in characters or bytes
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 int type,
                                 variant direction,
                                 int size)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction and size.
Parameters:
name - a String representing the name of the Parameter object.
type - an Integer value specifying the data type of the Parameter object.
direction - an variant value specifying the type of Parameter object
size - an Integer value specifying the maximum length for the value of the Parameter in characters or bytes.
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 int type,
                                 int direction,
                                 int size,
                                 java.lang.Object val)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction, size and value.
Parameters:
name - a String representing the name of the Parameter object.
type - an Integer value specifying the data type of the Parameter object.
direction - an Integer value specifying the type of Parameter object
size - an Integer value specifying the maximum length for the value of the Parameter in characters or bytes.
val - the Object specifying the value for the Parameter object.
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 variant type,
                                 variant direction,
                                 variant size,
                                 variant val)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction, size and value.
Parameters:
name - a variant representing the name of the Parameter object.
type - a variant specifying the data type of the Parameter object.
direction - a variant specifying the type of Parameter object
size - a variant specifying the maximum length for the value of the Parameter in characters or bytes.
val - the variant specifying the value for the Parameter object.
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(variant name,
                                 variant type,
                                 variant direction,
                                 variant size,
                                 java.lang.Object val)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction, size and value.
Parameters:
name - a variant representing the name of the Parameter object.
type - a variant specifying the data type of the Parameter object.
direction - a variant specifying the type of Parameter object
size - a variant specifying the maximum length for the value of the Parameter in characters or bytes.
val - the Object specifying the value for the Parameter object.
Returns:
a Parameter Object
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 int type,
                                 variant direction,
                                 int size,
                                 java.lang.Object val)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction, size and value.
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

CreateParameter

public Parameter CreateParameter(java.lang.String name,
                                 int type,
                                 int direction,
                                 variant size,
                                 java.lang.Object val)
                          throws java.lang.Exception
Creates a new Parameter object with the specified name, type, direction, size and value.
See Also:
CreateParameter(String name,int type,int direction,int size,Object val)

getParameters

public Parameters getParameters()
                         throws java.lang.Exception
Returns the Parameters collection

Execute

public Recordset Execute()
                  throws java.lang.Exception
Execute a SQL statement with the specific CommandText if have reords back, return a Recordset object. else return null.
Returns:
a Recordset object

Execute

public Recordset Execute(variant AffectNum)
                  throws java.lang.Exception
Execute a SQL statement with the specific CommandText, and returns the number of records that the operation affected.
Parameters:
AffectNum - A variant variable to which the provider returns the number of records that the operation affected.
Returns:
a Recordset object

Execute

public Recordset Execute(variant AffectNum,
                         variant pars)
                  throws java.lang.Exception
Execute a SQL statement with the specific CommandText and Parameters array, and returns the number of records that the operation affected.
Parameters:
AffectNum - A variant variable to which the provider returns the number of records that the operation affected.
pars - A Variant array of parameter values passed with an SQL statement.
Returns:
a Recordset object

Execute

public Recordset Execute(variant AffectNum,
                         variant pars,
                         int Option)
                  throws java.lang.Exception
Execute a SQL statement with the specific CommandText and Parameters array, and returns the number of records that the operation affected.
Parameters:
AffectNum - A variant variable to which the provider returns the number of records that the operation affected.
pars - A Variant array of parameter values passed with an SQL statement.
Option - An integer value that indicates how the provider should evaluate the CommandText property of the Command object.
Returns:
a Recordset object

Cancel

public void Cancel()
Cancel execution of a pending, asynchronous execute method call

getActiveConnection

public Connection getActiveConnection()
                               throws java.lang.Exception
Returns the Active Connection object.

setItem

public void setItem(variant var,
                    variant val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
var - the name or index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    java.lang.String val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    int val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    double val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    float val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    long val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    short val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    boolean val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

setItem

public void setItem(int index,
                    variant val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
index - the index of the parameter.
val - the value of the parameter.

getItem

public Parameter getItem(variant var)
                  throws java.lang.Exception
Gets a Parameter.
Parameters:
index - the name or index of the parameter.
Returns:
the parameter.

getItem

public Parameter getItem(int idx)
                  throws java.lang.Exception
Gets the parameter object
Parameters:
index - the index of the parameter.
Returns:
the parameter.

setItem

public void setItem(java.lang.String name,
                    java.lang.String val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

setItem

public void setItem(java.lang.String name,
                    int val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

setItem

public void setItem(java.lang.String name,
                    double val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

setItem

public void setItem(java.lang.String name,
                    float val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

setItem

public void setItem(java.lang.String name,
                    long val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

setItem

public void setItem(java.lang.String name,
                    short val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

setItem

public void setItem(java.lang.String name,
                    boolean val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

setItem

public void setItem(java.lang.String name,
                    variant val)
             throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

getItem

public Parameter getItem(java.lang.String name)
                  throws java.lang.Exception
Sets the value of the Parameter
Parameters:
name - the name of the Parameter.
val - the value of the Parameter.

getParameters

public Parameter getParameters(variant var)
                        throws java.lang.Exception
Gets the parameter
Parameters:
var - the name or index of the Parameter.
Returns:
the parameter.

getParameters

public Parameter getParameters(int idx)
                        throws java.lang.Exception
Gets the parameter
Parameters:
idx - the index of the Parameter.
Returns:
the parameter.

getParameters

public Parameter getParameters(java.lang.String name)
                        throws java.lang.Exception
Gets the parameter
Parameters:
name - the name of the parameter.
Returns:
the parameter.

setParameters

public void setParameters(variant var,
                          variant val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
var - the name or index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          java.lang.String val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          int val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          double val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          float val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          long val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          short val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          boolean val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(int index,
                          variant val)
                   throws java.lang.Exception
Sets the parameter.
Parameters:
index - the index of the Parameter.
val - the value of the Parameter.

setParameters

public void setParameters(java.lang.String name,
                          java.lang.String val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.

setParameters

public void setParameters(java.lang.String name,
                          int val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.

setParameters

public void setParameters(java.lang.String name,
                          double val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.

setParameters

public void setParameters(java.lang.String name,
                          float val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.

setParameters

public void setParameters(java.lang.String name,
                          long val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.

setParameters

public void setParameters(java.lang.String name,
                          short val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.

setParameters

public void setParameters(java.lang.String name,
                          boolean val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.

setParameters

public void setParameters(java.lang.String name,
                          variant val)
                   throws java.lang.Exception
Sets the value of the Parameter.
Parameters:
name - the name of the Parameter.
val - the value of teh Parameter.