jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGDateTimeTypes.PGdate

java.lang.Object
  |
  +--org.sourceforge.jxutil.sql.type.AbstractType
        |
        +--org.sourceforge.jxutil.sql.type.AbstractDATE
              |
              +--org.sourceforge.jxdbcon.postgresql.PGDateTimeTypes.PGdate
Enclosing class:
PGDateTimeTypes

public static class PGDateTimeTypes.PGdate
extends AbstractDATE

DATE type. Stores internally number of days since 2000.1.1 in ant int4 value.


Field Summary
static PGDateTimeTypes.PGdate INSTANCE
           
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
private PGDateTimeTypes.PGdate()
           
 
Method Summary
 byte[] getBytes(Object row, ConversionContext ctx)
           
 Date getDate(Object row, Calendar cal, ConversionContext ctx)
           
 String getLiteralPrefix()
           
 String getLiteralSuffix()
           
 void setDate(Object row, Date val, Calendar cal, ConversionContext ctx)
           
 void setNull(Object row, ConversionContext ctx)
           
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractDATE
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, getDouble, getFloat, getInt, getLiteral, getLocalName, getLong, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getPrecision, getRef, getScale, getSearchable, getShort, getTime, getTime, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDouble, setFloat, setInt, setLong, 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
 

Field Detail

INSTANCE

public static final PGDateTimeTypes.PGdate INSTANCE
Constructor Detail

PGDateTimeTypes.PGdate

private PGDateTimeTypes.PGdate()
Method Detail

getBytes

public byte[] getBytes(Object row,
                       ConversionContext ctx)
Overrides:
getBytes in class AbstractType

getDate

public Date getDate(Object row,
                    Calendar cal,
                    ConversionContext ctx)
             throws SQLException
Specified by:
getDate in class AbstractDATE
SQLException

getLiteralPrefix

public String getLiteralPrefix()
Overrides:
getLiteralPrefix in class AbstractDATE

getLiteralSuffix

public String getLiteralSuffix()
Overrides:
getLiteralSuffix in class AbstractDATE

setDate

public void setDate(Object row,
                    Date val,
                    Calendar cal,
                    ConversionContext ctx)
             throws SQLException
Specified by:
setDate in class AbstractDATE
SQLException

setNull

public void setNull(Object row,
                    ConversionContext ctx)
             throws SQLException
Overrides:
setNull in class AbstractType
SQLException

jxDBCon 0.9z

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