net.sf.farrago.type.runtime
Class SqlDateTimeWithoutTZ.SqlDate
java.lang.Object
net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ
net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ.SqlDate
- All Implemented Interfaces:
- AssignableValue, DataValue, SpecialDataValue
- Enclosing class:
- SqlDateTimeWithoutTZ
public static class SqlDateTimeWithoutTZ.SqlDate
- extends SqlDateTimeWithoutTZ
SQL date value. The value field of this object represents milliseconds of
a FarragoDate.
Methods inherited from class net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ |
adjustPrecision, assignFrom, assignFrom, assignFrom, ceil, ceil, floor, floor, getCal, getClientTimeZone, getNullableData, getPrimitiveClass, getSpecialData, getTempCal, getValueTimeZone, isNull, setCal, setNull, toString, toString |
SqlDateTimeWithoutTZ.SqlDate
public SqlDateTimeWithoutTZ.SqlDate()
- Constructs a new SqlDate
getJdbcValue
protected Object getJdbcValue()
- Description copied from class:
SqlDateTimeWithoutTZ
- Gets data, casted as a Jdbc value.
- Specified by:
getJdbcValue
in class SqlDateTimeWithoutTZ
assignFromString
protected void assignFromString(String s,
String format,
TimeZone timeZone)
- Description copied from class:
SqlDateTimeWithoutTZ
- Assigns the value from a string.
- Specified by:
assignFromString
in class SqlDateTimeWithoutTZ
- Parameters:
s
- a string representing a datetime in the given formatformat
- format string as per SimpleDateFormat
, not nulltimeZone
- target timezone
getFormat
protected String getFormat()
- Description copied from class:
SqlDateTimeWithoutTZ
- Returns the format string for this type.
- Specified by:
getFormat
in class SqlDateTimeWithoutTZ
getTypeName
protected String getTypeName()
- Description copied from class:
SqlDateTimeWithoutTZ
- Returns the name of this type: DATE, TIME, or TIMESTAMP.
- Specified by:
getTypeName
in class SqlDateTimeWithoutTZ