org.sourceforge.jxdbcon.postgresql
Class PGDateTimeTypes.PGtime
java.lang.Object
|
+--org.sourceforge.jxutil.sql.type.AbstractType
|
+--org.sourceforge.jxutil.sql.type.AbstractTIME
|
+--org.sourceforge.jxdbcon.postgresql.PGDateTimeTypes.PGtime
- Enclosing class:
- PGDateTimeTypes
- public static class PGDateTimeTypes.PGtime
- extends AbstractTIME
TIME type.
Stored internally as seconds in a float8.
FLAW: setTimestamp does not work in all cases
because there is no database conversion
routine from timestamp to time.
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType |
dataTruncationRead, dataTruncationWrite, deriveType, getArray, getAsciiStream, getAutoInc, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, 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, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setStruct, setTime, setTimestamp, setURL, toString |
INSTANCE
public static final PGDateTimeTypes.PGtime INSTANCE
PGDateTimeTypes.PGtime
private PGDateTimeTypes.PGtime()
getBytes
public byte[] getBytes(Object row,
ConversionContext ctx)
- Overrides:
getBytes
in class AbstractType
getLiteralPrefix
public String getLiteralPrefix()
- Overrides:
getLiteralPrefix
in class AbstractTIME
getLiteralSuffix
public String getLiteralSuffix()
- Overrides:
getLiteralSuffix
in class AbstractTIME
getTime
public Time getTime(Object row,
Calendar cal,
ConversionContext ctx)
throws SQLException
- Specified by:
getTime
in class AbstractTIME
SQLException
setDouble
public void setDouble(Object row,
double val,
ConversionContext ctx)
throws SQLException
- Overrides:
setDouble
in class AbstractType
SQLException
setNull
public void setNull(Object row,
ConversionContext ctx)
throws SQLException
- Overrides:
setNull
in class AbstractType
SQLException
setTime
public void setTime(Object row,
Time val,
Calendar cal,
ConversionContext ctx)
throws SQLException
- Specified by:
setTime
in class AbstractTIME
SQLException
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.