| |
|
| java.lang.Object org.axiondb.types.BaseDataType org.axiondb.types.TimestampType org.axiondb.types.DateType
DateType | public class DateType extends TimestampType (Code) | | Implements a date type which can generate instances of java.sql.Date and other JDBC
date-related types.
author: Jonathan Giron author: Ahimanikya Satapathy version: $Revision: 1.7 $ |
INCREMENT_DAY | final static long INCREMENT_DAY(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
getPrecision | public int getPrecision()(Code) | | |
normalizeToUTCZeroHour | public static long normalizeToUTCZeroHour(long rawTimeMillis)(Code) | | |
read | public Object read(DataInput in) throws IOException(Code) | | Overrides parent implementation to read only milliseconds (as a long) from the
input stream, ignoring any nanoseconds written by TimestampType.write(). We read
TimeType data assuming that they are in the same form as that of TimestampType data
in order to preserve backwards compatibility, as java.sql.Time was originally
mapped to
org.axiondb.types.TimestampType .
Parameters: value - Date object (typically a java.sql.Date or otherconvertible form) to be unpersisted Parameters: out - DataOutput to supply serialized data throws: IOException - if error occurs during read See Also: org.axiondb.DataType.read |
write | public void write(Object value, DataOutput out) throws IOException(Code) | | 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().
Parameters: value - Date object (typically a java.sql.Date or otherconvertible form) to be persisted Parameters: out - DataOutput to receive serialized data throws: IOException - if error occurs during write See Also: org.axiondb.DataType.write |
|
|
|