org.axiondb.types
public class TimeType extends TimestampType
Version: $Revision: 1.8 $
Method Summary | |
---|---|
boolean | accepts(Object value) |
Object | convert(Object value)
Returns a java.sql.Date converted from the given value , or
throws AxionExceptionif the given value isn't
acceptable . |
int | getColumnDisplaySize() |
int | getJdbcType() |
int | getPrecision() |
static TimeZone | getTimeZone() |
DataType | makeNewInstance() |
static long | normalizeTime(long rawTimeMillis) |
Object | read(DataInput in)
Overrides parent implementation to read only milliseconds (as a long) from the
input stream, ignoring any nanoseconds written by TimestampType.write(). |
static void | setTimeZone(String id) |
Object | successor(Object value) |
boolean | supportsSuccessor() |
BigDecimal | toBigDecimal(Object value) |
Date | toDate(Object value) |
String | toString() |
String | toString(Object value) |
Time | toTime(Object value) |
Timestamp | toTimestamp(Object value) |
void | write(Object value, DataOutput out)
Overrides parent implementation to always write time (in milliseconds) as a long,
writing a placeholder zero for the nanosecond field usually written by
TimestampType.write(). |
See Also: DataType
acceptable
.See Also: getColumnDisplaySize
See Also: getJdbcType
See Also: makeNewInstance
Parameters: value Time object (typically a java.sql.Time
or other
convertible form) to be unpersisted out DataOutput to supply serialized data
Throws: IOException if error occurs during read
See Also: DataType
See Also: DataType
See Also: supportsSuccessor
See Also: DataType
See Also: DataType
See Also: java.lang.Object#toString()
See Also: DataType
See Also: DataType
See Also: DataType
Parameters: value time object (typically a java.sql.Time
or other
convertible form) to be persisted out DataOutput to receive serialized data
Throws: IOException if error occurs during write
See Also: DataType