jasp.adodb
Class Parameters

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

public class Parameters
extends java.lang.Object

A Parameters collection contains all the Parameter objects of a Command object.


Method Summary
 void Append(Parameter obj)
          Append a Parameter to Collection
 void Delete(int index)
          Remove a Parameter from Collection with specific Index
 void Delete(java.lang.String name)
          Remove a Parameter from Collection with specific Name
 int getCount()
          Returns the number of the Parameter in the Parameters collectoin.
 Parameter getItem(int index)
          Gets a Parameter form this collection.
 Parameter getItem(java.lang.String name)
          Gets a Parameter form Parameters collection.
 Parameter getItem(variant var)
          Gets a Parameter form this collection.
 void Refresh()
          Updates the objects in a collection to reflect objects available from and specific to the provider.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

Refresh

public void Refresh()
             throws java.lang.Exception
Updates the objects in a collection to reflect objects available from and specific to the provider.

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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new value of the Parameter.

getItem

public Parameter getItem(int index)
                  throws java.lang.Exception
Gets a Parameter form this collection.
Parameters:
index - the index of the Parameter.
Returns:
a Parameter.

getItem

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

getItem

public Parameter getItem(java.lang.String name)
                  throws java.lang.Exception
Gets a Parameter form Parameters collection.
Parameters:
name - the name of the Parameter.
Returns:
a 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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new value of the Parameter.

getCount

public int getCount()
             throws java.lang.Exception
Returns the number of the Parameter in the Parameters collectoin.

Append

public void Append(Parameter obj)
            throws java.lang.Exception
Append a Parameter to Collection
Parameters:
obj - a Parameter Object

Delete

public void Delete(int index)
            throws java.lang.Exception
Remove a Parameter from Collection with specific Index
Parameters:
index - the index of the Parameter.

Delete

public void Delete(java.lang.String name)
            throws java.lang.Exception
Remove a Parameter from Collection with specific Name
Parameters:
name - the name of the Parameter.