|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategy
uk.org.ogsadai.converters.webrowset.resultset.types.TimestampStrategy
Converts an element of column type timestamp.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
Constructor Summary | |
TimestampStrategy()
|
Method Summary | |
java.sql.Date |
getDate(java.lang.String data)
Returns the input string as a Date object. |
java.lang.Object |
getObject(java.lang.String data)
Returns the input string as an object. |
java.lang.String |
getString(java.lang.String data)
Returns the input string. |
java.sql.Time |
getTime(java.lang.String data)
Returns the input string as a Time object. |
java.sql.Timestamp |
getTimestamp(java.lang.String data)
Returns the input string as a Timestamp object. |
Methods inherited from class uk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategy |
getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getDouble, getFloat, getInt, getLong, getRef, getShort, getTime, getTimestamp, getUnicodeStream, getURL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
Constructor Detail |
public TimestampStrategy()
Method Detail |
public java.lang.String getString(java.lang.String data) throws java.sql.SQLException
TypeStrategy
getString
in class TypeStrategy
data
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Timestamp getTimestamp(java.lang.String data) throws java.sql.SQLException
TypeStrategy
Timestamp
object.
getTimestamp
in class TypeStrategy
data
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Date getDate(java.lang.String data) throws java.sql.SQLException
TypeStrategy
Date
object.
getDate
in class TypeStrategy
data
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.sql.Time getTime(java.lang.String data) throws java.sql.SQLException
TypeStrategy
Time
object.
getTime
in class TypeStrategy
data
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.public java.lang.Object getObject(java.lang.String data) throws java.sql.SQLException
TypeStrategy
getObject
in class TypeStrategy
data
- Input data.
java.sql.SQLException
- if there was a problem with the conversion.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |