All Packages  This Package  Class Hierarchy  Class Search  Index

Class xBaseJ.NumField
java.lang.Object
   |
   +----xBaseJ.Field
           |
           +----xBaseJ.NumField

  Summary

public class  NumField
     extends xBaseJ.Field
{
          // Constructors 1
     public NumField(String, int, int) throws xBaseJException, IOException;

          // Methods 10
     public int decPoint();
     public String get();
     public int getDecimalPositionCount();
     public char getType();
     public void put(double) throws xBaseJException;
     public void put(float) throws xBaseJException;
     public void put(int) throws xBaseJException;
     public void put(String) throws xBaseJException;
     public void put(long) throws xBaseJException;
     public char type();
}


  Cross Reference

Extended By:
FloatField





  Constructors

· NumField

Summary  |  Top
   public NumField(String iName, 
                   int iLength, 
                   int DecPoint)  throws xBaseJException, IOException

public method for creating a numeric field object. It is not associated with a database but can be when used with some DBF methods.

Parameter Description
Name the name of the field
Length the length of Field. range is 1 to 19 bytes
DecPoint the number of decimal positions range from 2 to 17 bytes. Relative to Length.

Throws: xBaseJException
bad name, length or decimal positions specified
Throws: IOException
can not occur but defined for calling methods

See Also: Field



  Methods

· type

Summary  |  Top
   public char type() 
Note: type() is deprecateduse getType

return the character 'N' indicating a numeric field

Overrides:
type in class Field


· getType

Summary  |  Top
   public char getType() 

return the character 'N' indicating a numeric field

Overrides:
getType in class Field


· decPoint

Summary  |  Top
   public int decPoint() 
Note: decPoint() is deprecateduse getDecimalPositionCount

return the number of decimal positions

Overrides:
decPoint in class Field


· getDecimalPositionCount

Summary  |  Top
   public int getDecimalPositionCount() 

Returns:
int - the number of decimal positions
Overrides:
getDecimalPositionCount in class Field


· get

Summary  |  Top
   public String get() 

public method for getting field value

Overrides:
get in class Field


· put

Summary  |  Top
   public void put(String inValue)  throws xBaseJException

sets the field contents.

Parameter Description
inValue String

Throws: xBaseJException
most likely a format exception
Overrides:
put in class Field


· put

Summary  |  Top
   public void put(long inValue)  throws xBaseJException

sets the field contents.

Parameter Description
inValue long

Throws: xBaseJException
most likely a format exception


· put

Summary  |  Top
   public void put(int inValue)  throws xBaseJException

sets the field contents.

Parameter Description
inValue int

Throws: xBaseJException
most likely a format exception


· put

Summary  |  Top
   public void put(float inValue)  throws xBaseJException

sets the field contents.

Parameter Description
inValue float

Throws: xBaseJException
most likely a format exception


· put

Summary  |  Top
   public void put(double inValue)  throws xBaseJException

sets the field contents.

Parameter Description
inValue double

Throws: xBaseJException
most likely a format exception


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7