org.axiondb.types
public class TimestampType extends BaseDataType implements Comparator
Version: $Revision: 1.33 $ $Date: 2005/08/24 00:37:25 $
| Field Summary | |
|---|---|
| static Locale | LOCALE |
| Constructor Summary | |
|---|---|
| TimestampType() | |
| Method Summary | |
|---|---|
| boolean | accepts(Object value)
Returns true iff value is null, a
Number, or a String that can be converted to a Long. |
| int | compare(Object left, Object right) |
| Object | convert(Object value)
Returns an Byte converted from the given value , or throws
IllegalArgumentExceptionif the given value isn't
acceptable. |
| int | getColumnDisplaySize() |
| protected Comparator | getComparator() |
| int | getJdbcType() |
| int | getPrecision() |
| String | getPreferredValueClassName() |
| static TimeZone | getTimeZone() |
| DataType | makeNewInstance() |
| Object | read(DataInput in) |
| 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)
Writes the given value to the given DataOutput.
|
true iff value is null, a
Number, or a String that can be converted to a Long.acceptable.See Also: TimestampType
DataOutput.
Null values are written as Integer.MIN_VALUE. All
other values are written directly with an int representing
nanoseconds first, and a long representing the time.
Parameters: value the value to write, which must be acceptable