|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.util14.ZonelessDatetime
org.eigenbase.util14.ZonelessDate
public class ZonelessDate
ZonelessDate is a date value without a time zone.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
SerialVersionUID created with JDK 1.5 serialver tool. |
protected Date |
tempDate
|
| Fields inherited from class org.eigenbase.util14.ZonelessDatetime |
|---|
internalTime, lastFormat, tempCal, tempFormatter |
| Constructor Summary | |
|---|---|
ZonelessDate()
Constructs a ZonelessDate. |
|
| Method Summary | |
|---|---|
protected Date |
getTempDate(long value)
Gets a temporary Date object. |
static ZonelessDate |
parse(String s)
Parses a string as a ZonelessDate. |
static ZonelessDate |
parse(String s,
String format)
Parses a string as a ZonelessDate with a given format string. |
void |
setZonedTime(long value,
TimeZone zone)
Sets this datetime via a zoned time value. |
void |
setZonelessTime(long value)
Sets this datetime via a zoneless time value. |
Object |
toJdbcObject()
Returns this datetime as a Jdbc object |
String |
toString()
Converts this ZonelessDate to a java.sql.Date and formats it via the toString() method of that class. |
String |
toString(String format)
Formats this ZonelessDate via a SimpleDateFormat |
| Methods inherited from class org.eigenbase.util14.ZonelessDatetime |
|---|
clearDate, clearTime, getCalendar, getDateValue, getFormatter, getJdbcDate, getJdbcTime, getJdbcTimestamp, getTime, getTimeValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
protected transient Date tempDate
| Constructor Detail |
|---|
public ZonelessDate()
| Method Detail |
|---|
public void setZonelessTime(long value)
BasicDatetime
setZonelessTime in interface BasicDatetimesetZonelessTime in class ZonelessDatetime
public void setZonedTime(long value,
TimeZone zone)
BasicDatetime
setZonedTime in interface BasicDatetimesetZonedTime in class ZonelessDatetimepublic Object toJdbcObject()
ZonelessDatetime
toJdbcObject in class ZonelessDatetimepublic String toString()
toString() method of that class.
toString in class Objectpublic String toString(String format)
format - format string, as required by SimpleDateFormat
public static ZonelessDate parse(String s)
s - a string representing a date in ISO format, i.e. according to
the SimpleDateFormat string "yyyy-MM-dd"
public static ZonelessDate parse(String s,
String format)
s - a string representing a date in ISO format, i.e. according to
the SimpleDateFormat string "yyyy-MM-dd"format - format string as per SimpleDateFormat
protected Date getTempDate(long value)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||