|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ.SqlTimestamp
public static class SqlDateTimeWithoutTZ.SqlTimestamp
SQL timestamp value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ |
---|
SqlDateTimeWithoutTZ.SqlDate, SqlDateTimeWithoutTZ.SqlTime, SqlDateTimeWithoutTZ.SqlTimestamp |
Field Summary | |
---|---|
protected ZonelessDate |
currentDate
The current date as returned by the current_date context variable |
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.SqlTimestamp()
Constructs a SqlTimestamp. |
Method Summary | |
---|---|
void |
assignFrom(Object o)
Assigns a value from another object. |
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. |
void |
setCurrentDate(SqlDateTimeWithoutTZ date)
Sets the current date for use by time to timestamp conversion |
Methods inherited from class net.sf.farrago.type.runtime.SqlDateTimeWithoutTZ |
---|
adjustPrecision, 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 |
Field Detail |
---|
protected ZonelessDate currentDate
Constructor Detail |
---|
public SqlDateTimeWithoutTZ.SqlTimestamp()
Method Detail |
---|
public void setCurrentDate(SqlDateTimeWithoutTZ date)
date
- the value of the current_date context variablepublic void assignFrom(Object o)
SqlDateTimeWithoutTZ
The Object may be a Long
or long
if it is being
intialized from a constant, or being translated from a Fennel value. If
so, then the Fennel type must match the Farrago type. It is legal to
assign a ZonelessDate
to a ZonelessDate
and a ZonelessTime
to a ZonelessTime
, but it is not valid to assign a
Timestamp to either, or vice versa.
assignFrom
in interface AssignableValue
assignFrom
in class SqlDateTimeWithoutTZ
o
- value to assign, or null to set nullprotected Object getJdbcValue()
SqlDateTimeWithoutTZ
getJdbcValue
in class SqlDateTimeWithoutTZ
protected void assignFromString(String s, String format, TimeZone timeZone)
SqlDateTimeWithoutTZ
assignFromString
in class SqlDateTimeWithoutTZ
s
- a string representing a datetime in the given formatformat
- format string as per SimpleDateFormat
, not nulltimeZone
- target timezoneprotected String getFormat()
SqlDateTimeWithoutTZ
getFormat
in class SqlDateTimeWithoutTZ
protected String getTypeName()
SqlDateTimeWithoutTZ
getTypeName
in class SqlDateTimeWithoutTZ
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |