|
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.AbstractTIME
A type defining the generics of the TIME type.
Field Summary |
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
BD_ONE, BD_ZERO, name |
Constructor Summary | |
protected |
AbstractTIME(String name)
|
Method Summary | |
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 TIME value as an Object. |
String |
getString(Object row,
ConversionContext ctx)
Get the TIME value as a String. |
abstract Time |
getTime(Object row,
Calendar cal,
ConversionContext ctx)
Get the TIME value. |
Timestamp |
getTimestamp(Object row,
Calendar cal,
ConversionContext ctx)
Get the TIME value as a Timestamp. |
void |
setString(Object row,
String val,
ConversionContext ctx)
Set the TIME value from a String. |
abstract void |
setTime(Object row,
Time val,
Calendar cal,
ConversionContext ctx)
Set the TIME value. |
void |
setTimestamp(Object row,
Timestamp val,
Calendar cal,
ConversionContext ctx)
Set the TIME value from a Timestamp. |
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, 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, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setStruct, setTime, setTimestamp, setURL, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected AbstractTIME(String name)
Method Detail |
public final Class getJavaClass()
AbstractType
getJavaClass
in class AbstractType
public final Class getJavaType()
AbstractType
getJavaType
in class AbstractType
public final int getJDBCType()
AbstractType
getJDBCType
in class AbstractType
Types
public String getLiteralPrefix()
AbstractType
getLiteralPrefix
in class AbstractType
public String getLiteralSuffix()
AbstractType
getLiteralSuffix
in class AbstractType
public final Object getObject(Object row, Map map, ConversionContext ctx) throws SQLException
getObject
in class AbstractType
SQLException
AbstractType.getTime(Object, ConversionContext)
public final String getString(Object row, ConversionContext ctx) throws SQLException
getString
in class AbstractType
SQLException
public abstract Time getTime(Object row, Calendar cal, ConversionContext ctx) throws SQLException
getTime
in class AbstractType
SQLException
public final Timestamp getTimestamp(Object row, Calendar cal, ConversionContext ctx) throws SQLException
getTimestamp
in class AbstractType
SQLException
public final void setString(Object row, String val, ConversionContext ctx) throws SQLException
setString
in class AbstractType
SQLException
public abstract void setTime(Object row, Time val, Calendar cal, ConversionContext ctx) throws SQLException
setTime
in class AbstractType
SQLException
public final void setTimestamp(Object row, Timestamp val, Calendar cal, ConversionContext ctx) throws SQLException
setTimestamp
in class AbstractType
SQLException
|
jxUtil 0.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |