All Packages Class Hierarchy This Package Previous Next Index
Class xBaseJ.NumField
java.lang.Object
|
+----xBaseJ.Field
|
+----xBaseJ.NumField
- public class NumField
- extends Field
-
NumField(String, int, int)
-
public method for creating a numeric field object.
-
decPosition()
- return the number of decimal positions
Deprecated.
-
get()
-
public method for getting field value
-
getDecimalPositionCount()
-
-
getType()
- return the character 'N' indicating a numeric field
-
put(double)
- sets the field contents.
-
put(float)
- sets the field contents.
-
put(int)
- sets the field contents.
-
put(long)
- sets the field contents.
-
put(String)
- sets the field contents.
-
type()
- return the character 'N' indicating a numeric field
Deprecated.
NumField
public NumField(String iName,
int iLength,
int inDecPosition) 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.
- Parameters:
- Name - the name of the field
- Length - the length of Field. range is 1 to 19 bytes
- decPosition - 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
type
public char type()
- Note: type() is deprecated.
use getType
- return the character 'N' indicating a numeric field
- Overrides:
- type in class Field
getType
public char getType()
- return the character 'N' indicating a numeric field
- Overrides:
- getType in class Field
decPosition
public int decPosition()
- Note: decPosition() is deprecated.
use getDecimalPositionCount
- return the number of decimal positions
getDecimalPositionCount
public int getDecimalPositionCount()
- Returns:
- int - the number of decimal positions
- Overrides:
- getDecimalPositionCount in class Field
get
public String get()
- public method for getting field value
- Returns:
- s String of field value
- Overrides:
- get in class Field
put
public void put(String inValue) throws xBaseJException
- sets the field contents.
- Parameters:
- inValue - String
- Throws: xBaseJException
- most likely a format exception
- Overrides:
- put in class Field
put
public void put(long inValue) throws xBaseJException
- sets the field contents.
- Parameters:
- inValue - long
- Throws: xBaseJException
- most likely a format exception
put
public void put(int inValue) throws xBaseJException
- sets the field contents.
- Parameters:
- inValue - int
- Throws: xBaseJException
- most likely a format exception
put
public void put(float inValue) throws xBaseJException
- sets the field contents.
- Parameters:
- inValue - float
- Throws: xBaseJException
- most likely a format exception
put
public void put(double inValue) throws xBaseJException
- sets the field contents.
- Parameters:
- inValue - double
- Throws: xBaseJException
- most likely a format exception
All Packages Class Hierarchy This Package Previous Next Index