|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xBaseJ.Field | +--xBaseJ.NumField
Constructor Summary | |
NumField(java.lang.String iName,
int iLength,
int inDecPosition)
public method for creating a numeric field object. |
Method Summary | |
int |
decPosition()
Deprecated. use getDecimalPositionCount |
java.lang.String |
get()
public method for getting field value |
int |
getDecimalPositionCount()
|
char |
getType()
return the character 'N' indicating a numeric field |
void |
put(double inValue)
sets the field contents. |
void |
put(float inValue)
sets the field contents. |
void |
put(int inValue)
sets the field contents. |
void |
put(long inValue)
sets the field contents. |
void |
put(java.lang.String inValue)
sets the field contents. |
char |
type()
Deprecated. use getType |
Methods inherited from class xBaseJ.Field |
decPoint,
getBytes,
getLength,
getName,
length,
name |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public NumField(java.lang.String iName, int iLength, int inDecPosition) throws xBaseJException, java.io.IOException
Name
- the name of the fieldLength
- the length of Field. range is 1 to 19 bytesdecPosition
- the number of decimal positions range from 2 to 17 bytes. Relative to Length.Field
Method Detail |
public char type()
public char getType()
public int decPosition()
public int getDecimalPositionCount()
public java.lang.String get()
public void put(java.lang.String inValue) throws xBaseJException
inValue
- Stringpublic void put(long inValue) throws xBaseJException
inValue
- longpublic void put(int inValue) throws xBaseJException
inValue
- intpublic void put(float inValue) throws xBaseJException
inValue
- floatpublic void put(double inValue) throws xBaseJException
inValue
- double
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |