jasp.adodb
Class Fields

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

public class Fields
extends java.lang.Object

A Fields collection contains all the Field objects of a Recordset object.


Constructor Summary
Fields()
           
 
Method Summary
 void Append(java.lang.String name)
          Appends a new Field object to currect collection.
 void Append(java.lang.String name, int type)
          Appends a new Field object to currect collection.
 void Append(java.lang.String name, int type, int size)
          Appends a new Field object to currect collection.
 void Append(java.lang.String name, int type, int size, int attrib)
          Appends a new Field object to currect collection.
 void Append(java.lang.String name, int type, variant size)
          Appends a new Field object to currect collection.
 void Append(java.lang.String name, variant type, int size)
          Appends a new Field object to currect collection.
 void Append(java.lang.String name, variant type, variant size)
          Appends a new Field object to currect collection.
 void Append(variant name, int type)
          Appends a new Field object to currect collection.
 void Append(variant name, int type, int size)
          Appends a new Field object to currect collection.
 void Append(variant name, int type, int size, int attrib)
          Appends a new Field object to currect collection.
 void Append(variant name, variant type)
          Appends a new Field object to currect collection.
 void Append(variant name, variant type, int size)
          Appends a new Field object to currect collection.
 void Append(variant name, variant type, int size, int attrib)
          Appends a new Field object to currect collection.
 void Append(variant name, variant type, variant size)
          Appends a new Field object to currect collection.
 void Append(variant name, variant type, variant size, int attrib)
          Appends a new Field object to currect collection.
 void Append(variant name, variant type, variant size, variant attrib)
          Appends a new Field object to currect collection.
 void Delete(int idx)
          Remove a Field Object from currect collection with a specific index.
 void Delete(java.lang.String name)
          Remove a Field Object from currect collection with a specific name
 int getCount()
          Returns the number of Field in currect collection
 Field getItem(int index)
          Gets a Field form this collection.
 Field getItem(java.lang.String Name)
          Gets a Field with a specific name.
 Field getItem(variant var)
          Gets a Field 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 Field.
 void setItem(int index, double val)
          Sets the value of the Field.
 void setItem(int index, float val)
          Sets the value of the Field.
 void setItem(int index, int val)
          Sets the value of the Field.
 void setItem(int index, long val)
          Sets the value of the Field.
 void setItem(int index, short val)
          Sets the value of the Field.
 void setItem(int index, java.lang.String val)
          Sets the value of the Field.
 void setItem(int index, variant val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, boolean val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, double val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, float val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, int val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, long val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, short val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, java.lang.String val)
          Sets the value of the Field.
 void setItem(java.lang.String Name, variant val)
          Sets the value of the Field.
 void setItem(variant var, variant val)
          Sets the value of the Field.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fields

public Fields()
Method Detail

Refresh

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

getItem

public Field getItem(variant var)
              throws java.lang.Exception
Gets a Field form this collection.
Parameters:
var - A variant that evaluates either to the name or to the ordinal number of an object in Fields collection.
Returns:
a Field.

getItem

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

setItem

public void setItem(variant var,
                    variant val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
var - A variant that evaluates either to the name or to the ordinal number of an object in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    variant val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    int val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    java.lang.String val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    double val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    float val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    boolean val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    short val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

public void setItem(int index,
                    long val)
             throws java.lang.Exception
Sets the value of the Field.
Parameters:
index - the ordinal number of the Field in Fields collection.
val - the new value of the Field.

setItem

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

setItem

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

setItem

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

setItem

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

setItem

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

setItem

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

setItem

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

setItem

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

getItem

public Field getItem(java.lang.String Name)
              throws java.lang.Exception
Gets a Field with a specific name.
Parameters:
Name - the name of the Field.
Returns:
a Field.

getCount

public int getCount()
Returns the number of Field in currect collection

Append

public void Append(java.lang.String name)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.

Append

public void Append(java.lang.String name,
                   int type)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.

Append

public void Append(variant name,
                   int type)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.

Append

public void Append(variant name,
                   variant type)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.

Append

public void Append(java.lang.String name,
                   int type,
                   int size)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.

Append

public void Append(variant name,
                   variant type,
                   int size)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.

Append

public void Append(variant name,
                   int type,
                   int size)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.

Append

public void Append(java.lang.String name,
                   variant type,
                   int size)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.

Append

public void Append(java.lang.String name,
                   variant type,
                   variant size)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.

Append

public void Append(java.lang.String name,
                   int type,
                   variant size)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.

Append

public void Append(variant name,
                   variant type,
                   variant size)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.

Append

public void Append(variant name,
                   variant type,
                   variant size,
                   variant attrib)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.
attrib - Specifies attributes for the new field.

Append

public void Append(variant name,
                   variant type,
                   variant size,
                   int attrib)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.
attrib - Specifies attributes for the new field.

Append

public void Append(variant name,
                   variant type,
                   int size,
                   int attrib)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.
attrib - Specifies attributes for the new field.

Append

public void Append(variant name,
                   int type,
                   int size,
                   int attrib)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.
attrib - Specifies attributes for the new field.

Append

public void Append(java.lang.String name,
                   int type,
                   int size,
                   int attrib)
            throws java.lang.Exception
Appends a new Field object to currect collection.
Parameters:
name - The name of the new Field object.
type - The data type of the new field.
size - The defined size in characters or bytes of the new field.
attrib - Specifies attributes for the new field.

Delete

public void Delete(int idx)
            throws java.lang.Exception
Remove a Field Object from currect collection with a specific index.
Parameters:
idx - an ordinal position of the Field.

Delete

public void Delete(java.lang.String name)
            throws java.lang.Exception
Remove a Field Object from currect collection with a specific name
Parameters:
name - the name of the Field.