|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.sourceforge.jxutil.sql.type.AbstractType
|
+--org.sourceforge.jxutil.sql.type.AbstractTIMESTAMP
A type defining the generics of the TIMESTAMP type.
| Field Summary |
| Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
BD_ONE, BD_ZERO, name |
| Constructor Summary | |
protected |
AbstractTIMESTAMP(String name)
|
| Method Summary | |
Date |
getDate(Object row,
Calendar cal,
ConversionContext ctx)
Get the TIMESTAMP value as a Date. |
Class |
getJavaClass()
Get the Java Class returned when calling getObject on this type. |
Class |
getJavaType()
Get the Java Class of the primitive type best representing data of this database type. |
int |
getJDBCType()
Get the type's closest representation as a JDBC type. |
String |
getLiteralPrefix()
Get the prefix to use for literal data of this type. |
String |
getLiteralSuffix()
Get the suffix to use for literal data of this type. |
Object |
getObject(Object row,
Map map,
ConversionContext ctx)
Get the TIMESTAMP value as an Object. |
String |
getString(Object row,
ConversionContext ctx)
Get the TIMESTAMP value as a String. |
Time |
getTime(Object row,
Calendar cal,
ConversionContext ctx)
Get the TIMESTAMP value as a Time. |
abstract Timestamp |
getTimestamp(Object row,
Calendar cal,
ConversionContext ctx)
Get the TIMESTAMP value. |
void |
setDate(Object row,
Date val,
Calendar cal,
ConversionContext ctx)
Set the TIMESTAMP value from a Date. |
void |
setString(Object row,
String val,
ConversionContext ctx)
Set the TIMESTAMP value from a String. |
abstract void |
setTimestamp(Object row,
Timestamp val,
Calendar cal,
ConversionContext ctx)
Set the TIMESTAMP value. |
| Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
dataTruncationRead, dataTruncationWrite, deriveType, getArray, getAsciiStream, getAutoInc, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCaseSensitive, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getDouble, getFloat, getInt, getLiteral, getLocalName, getLong, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getPrecision, getRef, getScale, getSearchable, getShort, getTime, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setStruct, setTime, setTime, setTimestamp, setURL, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected AbstractTIMESTAMP(String name)
| Method Detail |
public final Date getDate(Object row,
Calendar cal,
ConversionContext ctx)
throws SQLException
getDate in class AbstractTypeSQLExceptionpublic final Class getJavaClass()
AbstractType
getJavaClass in class AbstractTypepublic final Class getJavaType()
AbstractType
getJavaType in class AbstractTypepublic final int getJDBCType()
AbstractType
getJDBCType in class AbstractTypeTypespublic String getLiteralPrefix()
AbstractType
getLiteralPrefix in class AbstractTypepublic String getLiteralSuffix()
AbstractType
getLiteralSuffix in class AbstractType
public final Object getObject(Object row,
Map map,
ConversionContext ctx)
throws SQLException
getObject in class AbstractTypeSQLExceptionAbstractType.getTimestamp(Object, ConversionContext)
public final String getString(Object row,
ConversionContext ctx)
throws SQLException
getString in class AbstractTypeSQLException
public final Time getTime(Object row,
Calendar cal,
ConversionContext ctx)
throws SQLException
getTime in class AbstractTypeSQLException
public abstract Timestamp getTimestamp(Object row,
Calendar cal,
ConversionContext ctx)
throws SQLException
getTimestamp in class AbstractTypeSQLException
public final void setDate(Object row,
Date val,
Calendar cal,
ConversionContext ctx)
throws SQLException
setDate in class AbstractTypeSQLException
public void setString(Object row,
String val,
ConversionContext ctx)
throws SQLException
setString in class AbstractTypeSQLException
public abstract void setTimestamp(Object row,
Timestamp val,
Calendar cal,
ConversionContext ctx)
throws SQLException
setTimestamp in class AbstractTypeSQLException
|
jxUtil 0.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||