jasp.adodb
Class Field

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

public class Field
extends java.lang.Object

A Field object represents a columns's information.


Constructor Summary
Field()
           
 
Method Summary
 void AppendChunk(java.lang.Object obj)
          Appends data to a large text or binary data.
 void AssignProps()
          Sets all properties for the currect object.
 int getActualSize()
          Returns the actual size of the Field.
 int getAttributes()
          Returns the attributes of the Filed.
 java.lang.Object GetChunk(int size)
          Returns all or a portion of the contents of a large text or binary data.
 int getDefinedSize()
          Returns the defined size of the Field.
 java.lang.String getName()
          Returns the name of the Field.
 int getNumericScale()
          Returns the Scale of the Field.
 int getObjectState()
          Returns the State of the current recordset.
 variant getOriginalValue()
          Returns the original value of the Field.
 byte getPrecision()
          Returns the precision of the Field.
 Properties getProperties()
          Returns the Properties collection of the Field.
 int getType()
          Returns the type of the Field.
 java.lang.Object getUnderlyingValue()
          Returns the underlying value of the Field.
 variant getValue()
          Returns the value of the Field.
 Property Properties(int index)
          Gets a Property from the Properties collection.
 Property Properties(java.lang.String index)
          Gets a Property from the Properties collection.
 Property Properties(variant var)
          Gets a Property from the Properties collection.
 void setAttributes(int attrib)
          Sets the attributes of the Field
 void setDefinedSize(int definedsize)
          Sets the defined-size of the Field.
 void setNumericScale(byte scale)
          Sets the Scale of the Field.
 void setPrecision(byte precision)
          Sets the precision of the Field.
 void setType(int type)
          Sets type of the Field.
 void setValue(boolean val)
          Sets the value of the Field.
 void setValue(double val)
          Sets the value of the Field.
 void setValue(float val)
          Sets the value of the Field.
 void setValue(int val)
          Sets the value of the Field.
 void setValue(long val)
          Sets the value of the Field.
 void setValue(java.lang.Object objval)
          Sets the value of the Field.
 void setValue(short value)
          Sets the value of the Field.
 void setValue(java.lang.String val)
          Sets the value of the Field.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field()
Method Detail

getNumericScale

public int getNumericScale()
Returns the Scale of the Field.

setPrecision

public void setPrecision(byte precision)
                  throws java.lang.Exception
Sets the precision of the Field.

setNumericScale

public void setNumericScale(byte scale)
                     throws java.lang.Exception
Sets the Scale of the Field.

getValue

public variant getValue()
                 throws java.lang.Exception
Returns the value of the Field.

setValue

public void setValue(int val)
              throws java.lang.Exception
Sets the value of the Field.
Parameters:
val - the new value of the Field.

setValue

public void setValue(long val)
              throws java.lang.Exception
Sets the value of the Field.
Parameters:
val - the new value of the Field.

setValue

public void setValue(short value)
              throws java.lang.Exception
Sets the value of the Field.
Parameters:
val - the new value of the Field.

setValue

public void setValue(boolean val)
              throws java.lang.Exception
Sets the value of the Field.
Parameters:
val - the new value of the Field.

setValue

public void setValue(float val)
              throws java.lang.Exception
Sets the value of the Field.
Parameters:
val - the new value of the Field.

setValue

public void setValue(double val)
              throws java.lang.Exception
Sets the value of the Field.
Parameters:
val - the new value of the Field.

setValue

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

setValue

public void setValue(java.lang.Object objval)
              throws java.lang.Exception
Sets the value of the Field.
Parameters:
val - the new value of the Field.

getOriginalValue

public variant getOriginalValue()
                         throws java.lang.Exception
Returns the original value of the Field.

AppendChunk

public void AppendChunk(java.lang.Object obj)
                 throws java.lang.Exception
Appends data to a large text or binary data.
Parameters:
obj - An object containing the data you want to append to the Field.

getAttributes

public int getAttributes()
Returns the attributes of the Filed.

getActualSize

public int getActualSize()
                  throws java.lang.Exception
Returns the actual size of the Field.

setAttributes

public void setAttributes(int attrib)
Sets the attributes of the Field
Parameters:
attrib - the new value of the attributes.

getProperties

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

getObjectState

public int getObjectState()
Returns the State of the current recordset.

Properties

public Property Properties(variant var)
                    throws java.lang.Exception
Gets a Property from the Properties collection.
Parameters:
var - the name or index of the Property.

Properties

public Property Properties(int index)
                    throws java.lang.Exception
Gets a Property from the Properties collection.
Parameters:
index - the index of the Property.

Properties

public Property Properties(java.lang.String index)
                    throws java.lang.Exception
Gets a Property from the Properties collection.
Parameters:
name - the name of the Property.

AssignProps

public void AssignProps()
                 throws java.lang.Exception
Sets all properties for the currect object.

getDefinedSize

public int getDefinedSize()
Returns the defined size of the Field.

getName

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

getType

public int getType()
Returns the type of the Field.

setType

public void setType(int type)
             throws java.lang.Exception
Sets type of the Field.
Parameters:
type - the new type of the Field.

setDefinedSize

public void setDefinedSize(int definedsize)
                    throws java.lang.Exception
Sets the defined-size of the Field.
Parameters:
definedsize - the new defined-size of the Field.

getUnderlyingValue

public java.lang.Object getUnderlyingValue()
                                    throws java.lang.Exception
Returns the underlying value of the Field.

GetChunk

public java.lang.Object GetChunk(int size)
                          throws java.lang.Exception
Returns all or a portion of the contents of a large text or binary data.
Parameters:
size - An integer expression equal to the number of bytes or characters you want to retrieve
Returns:
a Object value

getPrecision

public byte getPrecision()
Returns the precision of the Field.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object