net.sf.farrago.type.runtime
Class SqlDateTimeWithoutTZ.SqlDate

java.lang.Object
  extended by net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ
SqlDateTimeWithoutTZ.SqlDate, SqlDateTimeWithoutTZ.SqlTime, SqlDateTimeWithoutTZ.SqlTimestamp
 
Field Summary
 
Fields inherited from class net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ
ADJUST_PRECISION_METHOD_NAME, CEIL_METHOD_NAME, DateFormatStr, FLOOR_METHOD_NAME, INTERNAL_TIME_FIELD_NAME, isNull, TimeFormatStr, TimestampFormatStr, value
 
Fields inherited from interface net.sf.farrago.type.runtime.AssignableValue
ASSIGNMENT_METHOD_NAME
 
Constructor Summary
SqlDateTimeWithoutTZ.SqlDate()
          Constructs a new SqlDate
 
Method Summary
protected  void assignFromString(String s, String format, TimeZone timeZone)
          Assigns the value from a string.
protected  String getFormat()
          Returns the format string for this type.
protected  Object getJdbcValue()
          Gets data, casted as a Jdbc value.
protected  String getTypeName()
          Returns the name of this type: DATE, TIME, or TIMESTAMP.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SqlDateTimeWithoutTZ.SqlDate

public SqlDateTimeWithoutTZ.SqlDate()
Constructs a new SqlDate

Method Detail

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 format
format - format string as per SimpleDateFormat, not null
timeZone - 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