|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | 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(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
Name - the name of the fieldxBaseJException - exception caused in calling methodsjava.io.IOException - can not occur but defined for calling methodsField| Method Detail |
public char type()
type in class FieldxBaseJ.FieldxBaseJException - undefined field typepublic char getType()
getType in class FieldxBaseJ.FieldxBaseJException - undefined field type
public void put(java.lang.String inValue)
throws xBaseJException
put in class FieldinValue - String value to store - format CCYYMMDDxBaseJException - most likely a format error
public void put(java.util.Date inValue)
throws xBaseJException
inValue - java.util.Date value to storexBaseJException - most likely a format error
public void put(java.util.Calendar inValue)
throws xBaseJException
inValue - java.util.Calendare value to storexBaseJException - most likely a format error
public void put(long inValue)
throws xBaseJException
inValue - long value to store - format CCYYMMDDxBaseJException - most likely a format errorpublic int compareTo(DateField compareThis)
compareThis - the other DateField object to compare
public int compareTo(java.util.Calendar compareThis)
throws xBaseJException
compareThis - the Date object to comparexBaseJException - exception caused in calling methods
public java.util.Calendar getCalendar()
throws xBaseJException
xBaseJException - exception caused in calling methods
public java.lang.String get(int field)
throws xBaseJException
field - id, use Calendar.YEAR, Calendar.MONTh, Calendar.DAY_OF_MONTHxBaseJException - exception caused in calling methods
public void set(int field,
int value)
throws xBaseJException
field - use Calendar.YEAR, Calendar.MONTh, Calendar.DAY_OF_MONTHvalue - - int value to set fieldxBaseJException - exception caused in calling methods
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||