jxDBCon 0.9z

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.


Field Summary
static PGDateTimeTypes.PGtime INSTANCE
           
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
private PGDateTimeTypes.PGtime()
           
 
Method Summary
 byte[] getBytes(Object row, ConversionContext ctx)
           
 String getLiteralPrefix()
           
 String getLiteralSuffix()
           
 Time getTime(Object row, Calendar cal, ConversionContext ctx)
           
 void setDouble(Object row, double val, ConversionContext ctx)
           
 void setNull(Object row, ConversionContext ctx)
           
 void setTime(Object row, Time val, Calendar cal, ConversionContext ctx)
           
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractTIME
getJavaClass, getJavaType, getJDBCType, getObject, getString, getTimestamp, setString, setTimestamp
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final PGDateTimeTypes.PGtime INSTANCE
Constructor Detail

PGDateTimeTypes.PGtime

private PGDateTimeTypes.PGtime()
Method Detail

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

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.