xBaseJ
Class Field

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

public abstract class Field
extends java.lang.Object
implements java.lang.Cloneable


Method Summary
 int decPoint()
          Deprecated. use getDecimalPositionCount
 java.lang.String get()
           
 byte[] getBytes()
          returns the original byte array as stored in the file.
 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
 

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()
Returns:
String field contents after any type of read.

getBytes

public byte[] getBytes()
returns the original byte array as stored in the file.
Returns:
byte[] - may return a null if not set

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:
inValue - value to set
Throws:
xBaseJException - value length too long