|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Date
com.davisor.data.TimestampData
com.davisor.data.DateData
DateData represents a date, as opposed to time values that represent the time of day and timestamps that represent them both.
setTime(long),
DateType,
Serialized Form| Field Summary |
| Fields inherited from class com.davisor.data.TimestampData |
M_type, NaT |
| Constructor Summary | |
DateData()
Create a new date data object with the current date and default type. |
|
DateData(DateData data,
boolean deep)
Deep or shallow copy constructor. |
|
DateData(DateFormatType type)
Create a new date data object with the current date and given type. |
|
DateData(DateFormatType type,
java.util.Date value)
Create a new date data object with the given type and value. |
|
DateData(DateFormatType type,
long milliseconds)
Create a new date data object with the given type and value. |
|
DateData(DateFormatType type,
java.lang.String stringValue,
java.text.ParsePosition status)
Creates a date data value from a string value. |
|
| Method Summary | |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
void |
setTime(long milliseconds)
Sets the current date value, but enforcing dates over time by stripping all the time of day information from the given timestamp value. |
void |
toStatement(java.sql.PreparedStatement statement,
int parameter)
Convert data to a prepared statement input parameter. |
| Methods inherited from class com.davisor.data.TimestampData |
abs, add, ceil, ceil, compareTo, compareTo, createCalendar, deinterpolate, div, floor, floor, getFormat, getType, initTime, interpolate, isNull, max, min, mul, negate, setTime, setValue, sub, toString, toXML, unit |
| Methods inherited from class java.util.Date |
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DateData()
public DateData(DateData data,
boolean deep)
data - source data (may be null)deep - determine if the copying is deep or shallowTimestampData.getType(),
Type.dup()public DateData(DateFormatType type)
type - date type
public DateData(DateFormatType type,
java.util.Date value)
type - date typevalue - date value (may be null)DateData(DateFormatType,long)
public DateData(DateFormatType type,
long milliseconds)
type - date typemilliseconds - date valueDateData(DateFormatType,java.util.Date),
TimestampData.initTime(com.davisor.data.DateFormatType, long)
public DateData(DateFormatType type,
java.lang.String stringValue,
java.text.ParsePosition status)
throws InvalidDataException
stringValue - string value to be parsedstatus - parse status (may be null)
InvalidDataException - if string value could not be parserTimestampData.setValue(String,ParsePosition)| Method Detail |
public void toStatement(java.sql.PreparedStatement statement,
int parameter)
throws java.sql.SQLException
toStatement in interface DataValuetoStatement in class TimestampDatajava.sql.SQLException - if a SQL error occurs.public void setTime(long milliseconds)
milliseconds - date time valueTimestampData.initTime(com.davisor.data.DateFormatType, long),
TimeData.setTime(long)public com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupabledup in class TimestampData
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||