|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xBaseJ.Field | +--xBaseJ.DateField
Constructor Summary | |
DateField(java.lang.String iName)
public method for creating a DateField object. |
Method Summary | |
int |
compareTo(java.util.Calendar compareThis)
public method for comparing a Java Calendar object. |
int |
compareTo(xBaseJ.DateField compareThis)
public method for comparing a DateField object. |
java.lang.String |
get(int field)
public method for getting individual field values |
java.util.Calendar |
getCalendar()
public method for returing the date field in a Java Calendar object. |
char |
getType()
return the character 'D' indicating a date field |
void |
put(java.util.Calendar inValue)
sets field contents by a Java Calendar object. |
void |
put(java.util.Date inValue)
sets field contents by a Java Date object. |
void |
put(long inValue)
sets field contents by a long value |
void |
put(java.lang.String inValue)
sets field contents by a String parameter. |
void |
set(int field,
int value)
public method for setting individual field values |
char |
type()
Deprecated. use getType |
Methods inherited from class xBaseJ.Field |
decPoint, get, getBytes, getDecimalPositionCount, getLength, getName, length, name, put, readExternal, writeExternal |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateField(java.lang.String iName) throws java.io.IOException, xBaseJException
xBaseJException
- exception caused in calling methods
java.io.IOException
- can not occur but defined for calling methodsField
Method Detail |
public char type()
type
in class Field
public char getType()
getType
in class Field
public void put(java.lang.String inValue) throws xBaseJException
put
in class Field
inValue
- String value to store - format CCYYMMDD
xBaseJException
- most likely a format errorpublic void put(java.util.Date inValue) throws xBaseJException
inValue
- java.util.Date value to store
xBaseJException
- most likely a format errorpublic void put(java.util.Calendar inValue) throws xBaseJException
inValue
- java.util.Calendare value to store
xBaseJException
- most likely a format errorpublic void put(long inValue) throws xBaseJException
inValue
- long value to store - format CCYYMMDD
xBaseJException
- most likely a format errorpublic int compareTo(xBaseJ.DateField compareThis)
compareThis
- the other DateField object to compare
public int compareTo(java.util.Calendar compareThis) throws xBaseJException
compareThis
- the Date object to compare
xBaseJException
- exception caused in calling methodspublic java.util.Calendar getCalendar() throws xBaseJException
xBaseJException
- exception caused in calling methodspublic java.lang.String get(int field) throws xBaseJException
field
- id, use Calendar.YEAR, Calendar.MONTh, Calendar.DAY_OF_MONTH
xBaseJException
- exception caused in calling methodspublic void set(int field, int value) throws xBaseJException
field
- use Calendar.YEAR, Calendar.MONTh, Calendar.DAY_OF_MONTHvalue
- - int value to set field
xBaseJException
- exception caused in calling methods
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |