xBaseJ.Client
Class Field

java.lang.Object
  |
  +--xBaseJ.Client.Field
Direct Known Subclasses:
CharField, DateField, LogicalField, MemoField, NumField

public abstract class Field
extends java.lang.Object


Field Summary
 java.lang.String Name
           
 
Constructor Summary
Field()
          creates a Field object.
 
Method Summary
 int decPoint()
          Deprecated. use getDecimalPositionCount
 java.lang.String get()
          return String - field contents after any type of read.
 int getDecimalPositionCount()
           
 int getLength()
           
 java.lang.String getName()
           
 char getType()
           
 int length()
          Deprecated. use getLength
 java.lang.String name()
          Deprecated. use getName
 void put(java.lang.String inValue)
          set field contents, no database updates until a DBF update or write is issued
 char type()
          Deprecated. use getType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Name

public java.lang.String Name
Constructor Detail

Field

public Field()
creates a Field object. not useful for the abstract Field class
See Also:
CharField, DateField, LogicalField, MemoField, NumField
Method Detail

name

public java.lang.String name()
Deprecated. use getName

Returns:
String contianing the field name

getName

public java.lang.String getName()
Returns:
String contianing the field name

length

public int length()
Deprecated. use getLength

Returns:
int - the field length

getLength

public int getLength()
Returns:
int - the field length

type

public char type()
          throws xBaseJException
Deprecated. use getType

Returns:
char field type
Throws:
xBaseJException - undefined field type

getType

public char getType()
             throws xBaseJException
Returns:
char field type
Throws:
xBaseJException - undefined field type

decPoint

public int decPoint()
Deprecated. use getDecimalPositionCount

Returns:
int - the number of decimal positions for numeric fields, zero returned otherwise

getDecimalPositionCount

public int getDecimalPositionCount()
Returns:
int - the number of decimal positions for numeric fields, zero returned otherwise

get

public java.lang.String get()
return String - field contents after any type of read.

put

public void put(java.lang.String inValue)
         throws xBaseJException
set field contents, no database updates until a DBF update or write is issued
Parameters:
String - value to set
Throws:
xBaseJException - value length too long