jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGNumericTypes.PGnumeric

java.lang.Object
  |
  +--org.sourceforge.jxutil.sql.type.AbstractType
        |
        +--org.sourceforge.jxutil.sql.type.AbstractNUMERIC
              |
              +--org.sourceforge.jxdbcon.postgresql.PGNumericTypes.PGnumeric
Enclosing class:
PGNumericTypes

public static class PGNumericTypes.PGnumeric
extends AbstractNUMERIC

NUMERIC type.


Field Summary
static PGNumericTypes.PGnumeric DEFINSTANCE
           
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractNUMERIC
precision, scale
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
private PGNumericTypes.PGnumeric()
           
  PGNumericTypes.PGnumeric(int prec, int scale)
           
 
Method Summary
 AbstractType deriveType(int d)
           
 BigDecimal getBigDecimal(Object row, ConversionContext ctx)
           
 byte[] getBytes(Object row, ConversionContext ctx)
           
 short getMaxScale()
           
 short getMinScale()
           
 void setBigDecimal(Object row, BigDecimal val, ConversionContext ctx)
           
 void setBytes(Object row, byte[] val, ConversionContext ctx)
           
 void setNull(Object row, ConversionContext ctx)
           
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractNUMERIC
getBoolean, getByte, getDouble, getFloat, getInt, getJavaClass, getJavaType, getJDBCType, getLong, getObject, getPrecision, getScale, getShort, getString, setBoolean, setByte, setDouble, setFloat, setInt, setLong, setShort, setString
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType
dataTruncationRead, dataTruncationWrite, getArray, getAsciiStream, getAutoInc, getBinaryStream, getBlob, getCaseSensitive, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getDate, getLiteral, getLiteralPrefix, getLiteralSuffix, getLocalName, getName, getNullable, getNumRadix, getObject, getRef, getSearchable, getTime, getTime, getTimestamp, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBinaryStream, setBlob, setCharacterStream, setClob, setDate, setDate, setNull, setNull, setObject, setObject, setObject, setRef, setStruct, setTime, setTime, setTimestamp, setTimestamp, setURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFINSTANCE

public static final PGNumericTypes.PGnumeric DEFINSTANCE
Constructor Detail

PGNumericTypes.PGnumeric

private PGNumericTypes.PGnumeric()

PGNumericTypes.PGnumeric

public PGNumericTypes.PGnumeric(int prec,
                                int scale)
Method Detail

deriveType

public AbstractType deriveType(int d)
Overrides:
deriveType in class AbstractType

getBigDecimal

public BigDecimal getBigDecimal(Object row,
                                ConversionContext ctx)
                         throws SQLException
Specified by:
getBigDecimal in class AbstractNUMERIC
SQLException

getBytes

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

getMaxScale

public short getMaxScale()
Overrides:
getMaxScale in class AbstractType

getMinScale

public short getMinScale()
Overrides:
getMinScale in class AbstractType

setBigDecimal

public void setBigDecimal(Object row,
                          BigDecimal val,
                          ConversionContext ctx)
                   throws SQLException
Specified by:
setBigDecimal in class AbstractNUMERIC
SQLException

setBytes

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

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.