ValueDate
Implementation of the DATE data type.
| Methods |
| static ValueDate |
fromDateValue(long dateValue)
Get or create a date value for the given date.
|
| static ValueDate |
fromDateValue(long dateValue)
Get or create a date value for the given date.
Parameters:
dateValue - the date value
Returns:
the value
|
| static ValueDate |
fromMillis(long ms)
Calculate the date value (in the default timezone) from a given time in
milliseconds in UTC.
|
| static ValueDate |
fromMillis(long ms)
Calculate the date value (in the default timezone) from a given time in
milliseconds in UTC.
Parameters:
ms - the milliseconds
Returns:
the value
|
| static ValueDate |
get(Date date)
Get or create a date value for the given date.
|
| static ValueDate |
get(Date date)
Get or create a date value for the given date.
Parameters:
date - the date
Returns:
the value
|
| static ValueDate |
parse(String s)
Parse a string to a ValueDate.
|
| static ValueDate |
parse(String s)
Parse a string to a ValueDate.
Parameters:
s - the string to parse
Returns:
the date
|
| int |
compareSecure(Value o, CompareMode mode)
|
| int |
compareSecure(Value o, CompareMode mode)
|
| boolean |
equals(Object other)
|
| boolean |
equals(Object other)
|
| Date |
getDate()
|
| Date |
getDate()
|
| long |
getDateValue()
|
| long |
getDateValue()
|
| int |
getDisplaySize()
|
| int |
getDisplaySize()
|
| Object |
getObject()
|
| Object |
getObject()
|
| long |
getPrecision()
|
| long |
getPrecision()
|
| String |
getSQL()
|
| String |
getSQL()
|
| String |
getString()
|
| String |
getString()
|
| int |
getType()
|
| int |
getType()
|
| int |
hashCode()
|
| int |
hashCode()
|
| void |
set(PreparedStatement prep, int parameterIndex)
|
| void |
set(PreparedStatement prep, int parameterIndex) throws SQLException
|
PRECISION
= 10
The default precision and display size of the textual representation of a date.
Example: 2000-01-02