jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGTypes.PGbytea

java.lang.Object
  |
  +--org.sourceforge.jxutil.sql.type.AbstractType
        |
        +--org.sourceforge.jxutil.sql.type.AbstractLONGVARBINARY
              |
              +--org.sourceforge.jxdbcon.postgresql.PGTypes.PGbytea
Enclosing class:
PGTypes

public static class PGTypes.PGbytea
extends AbstractLONGVARBINARY

LONGVARBINARY type. Up to 7.0.3 this type has a storage limitation of ~8140 bytes. From 7.1 it can store any size.


Field Summary
static PGTypes.PGbytea INSTANCE
           
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
private PGTypes.PGbytea()
           
 
Method Summary
 byte[] getBytes(Object row, ConversionContext ctx)
           
 boolean getCaseSensitive()
           
 String getLiteral(Object row, ConversionContext ctx)
           
 String getLiteralPrefix()
           
 String getLiteralSuffix()
           
 int getPrecision()
           
 void setBytes(Object row, byte[] x, ConversionContext ctx)
           
 void setNull(Object row, ConversionContext ctx)
           
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractLONGVARBINARY
getJavaClass, getJavaType, getJDBCType, getObject, getString, setString
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType
dataTruncationRead, dataTruncationWrite, deriveType, getArray, getAsciiStream, getAutoInc, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getDate, getDouble, getFloat, getInt, getLocalName, getLong, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getRef, getScale, getSearchable, getShort, getTime, getTime, getTimestamp, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, 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

INSTANCE

public static final PGTypes.PGbytea INSTANCE
Constructor Detail

PGTypes.PGbytea

private PGTypes.PGbytea()
Method Detail

getBytes

public byte[] getBytes(Object row,
                       ConversionContext ctx)
Specified by:
getBytes in class AbstractLONGVARBINARY

getCaseSensitive

public boolean getCaseSensitive()
Overrides:
getCaseSensitive in class AbstractType

getLiteral

public String getLiteral(Object row,
                         ConversionContext ctx)
Overrides:
getLiteral in class AbstractType

getLiteralPrefix

public String getLiteralPrefix()
Overrides:
getLiteralPrefix in class AbstractType

getLiteralSuffix

public String getLiteralSuffix()
Overrides:
getLiteralSuffix in class AbstractType

getPrecision

public int getPrecision()
Overrides:
getPrecision in class AbstractType

setBytes

public void setBytes(Object row,
                     byte[] x,
                     ConversionContext ctx)
Specified by:
setBytes in class AbstractLONGVARBINARY

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.