ValueTime
Implementation of the TIME data type.
| Methods |
| static ValueTime |
fromMillis(long ms)
Calculate the time value from a given time in
milliseconds in UTC.
|
| static ValueTime |
fromMillis(long ms)
Calculate the time value from a given time in
milliseconds in UTC.
Parameters:
ms - the milliseconds
Returns:
the value
|
| static ValueTime |
fromNanos(long nanos)
Get or create a time value.
|
| static ValueTime |
fromNanos(long nanos)
Get or create a time value.
Parameters:
nanos - the nanoseconds since midnight
Returns:
the value
|
| static ValueTime |
get(Time time)
Get or create a time value for the given time.
|
| static ValueTime |
get(Time time)
Get or create a time value for the given time.
Parameters:
time - the time
Returns:
the value
|
| static int |
getDisplaySize(int scale)
Get display size for the specified scale.
|
| static int |
getDisplaySize(int scale)
Get display size for the specified scale.
Parameters:
scale - scale
Returns:
display size
|
| static ValueTime |
parse(String s)
Parse a string to a ValueTime.
|
| static ValueTime |
parse(String s)
Parse a string to a ValueTime.
Parameters:
s - the string to parse
Returns:
the time
|
| Value |
add(Value v)
|
| Value |
add(Value v)
|
| boolean |
checkPrecision(long precision)
|
| boolean |
checkPrecision(long precision)
|
| int |
compareSecure(Value o, CompareMode mode)
|
| int |
compareSecure(Value o, CompareMode mode)
|
| Value |
convertScale(boolean onlyToSmallerScale, int targetScale)
|
| Value |
convertScale(boolean onlyToSmallerScale, int targetScale)
|
| Value |
divide(Value v)
|
| Value |
divide(Value v)
|
| boolean |
equals(Object other)
|
| boolean |
equals(Object other)
|
| int |
getDisplaySize()
|
| int |
getDisplaySize()
|
| long |
getNanos()
|
| long |
getNanos()
Returns:
nanoseconds since midnight
|
| Object |
getObject()
|
| Object |
getObject()
|
| long |
getPrecision()
|
| long |
getPrecision()
|
| String |
getSQL()
|
| String |
getSQL()
|
| int |
getSignum()
|
| int |
getSignum()
|
| String |
getString()
|
| String |
getString()
|
| Time |
getTime()
|
| Time |
getTime()
|
| int |
getType()
|
| int |
getType()
|
| int |
hashCode()
|
| int |
hashCode()
|
| Value |
multiply(Value v)
|
| Value |
multiply(Value v)
|
| Value |
negate()
|
| Value |
negate()
|
| void |
set(PreparedStatement prep, int parameterIndex)
|
| void |
set(PreparedStatement prep, int parameterIndex) throws SQLException
|
| Value |
subtract(Value v)
|
| Value |
subtract(Value v)
|
DEFAULT_SCALE
= 0
The default scale for time.
MAXIMUM_PRECISION
= 18
The maximum precision and display size of the textual representation of a time.
Example: 10:00:00.123456789
DEFAULT_PRECISION
= 8
The default precision and display size of the textual representation of a time.
Example: 10:00:00
MAXIMUM_SCALE
= 9
The maximum scale for time.