jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGArrayTypes.PGarray

java.lang.Object
  |
  +--org.sourceforge.jxutil.sql.type.AbstractType
        |
        +--org.sourceforge.jxutil.sql.type.AbstractARRAY
              |
              +--org.sourceforge.jxdbcon.postgresql.PGArrayTypes.PGarray
Direct Known Subclasses:
PGArrayTypes.PGoid8, PGArrayTypes.PGoidvector
Enclosing class:
PGArrayTypes

public static class PGArrayTypes.PGarray
extends AbstractARRAY

ARRAY of some basetype. For JDBC1 the semantics change, getObject returns the Java array directly instead of a java.sql.Array INSTANCE.


Field Summary
protected  int baseLen
          Binary length in bytes of the base elements.
protected  AbstractType baseType
           
protected  String delimiter
           
protected  String endBrace
           
protected  String startBrace
           
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
PGArrayTypes.PGarray(String name, AbstractType baseType, int baseLen, String delimiter)
           
PGArrayTypes.PGarray(String name, AbstractType baseType, int baseLen, String delimiter, String startBrace, String endBrace)
           
 
Method Summary
 Array getArray(Object row, ConversionContext ctx)
           
 byte[] getBytes(Object row, ConversionContext ctx)
           
 Class getJavaClass()
           
 Class getJavaType()
           
 void setArray(Object row, Array val, ConversionContext ctx)
           
 void setNull(Object row, ConversionContext ctx)
           
protected  byte[][] split(byte[] data)
           
protected  byte[][] split(String val, PGConversionContext pctx)
           
 String toString()
           
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractARRAY
getJDBCType, getObject, getString
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType
dataTruncationRead, dataTruncationWrite, deriveType, getAsciiStream, getAutoInc, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getCaseSensitive, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getDate, getDouble, getFloat, getInt, getLiteral, getLiteralPrefix, getLiteralSuffix, getLocalName, getLong, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getPrecision, getRef, getScale, getSearchable, getShort, getTime, getTime, getTimestamp, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setStruct, setTime, setTime, setTimestamp, setTimestamp, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

baseLen

protected final int baseLen
Binary length in bytes of the base elements.


baseType

protected final AbstractType baseType

delimiter

protected final String delimiter

endBrace

protected final String endBrace

startBrace

protected final String startBrace
Constructor Detail

PGArrayTypes.PGarray

public PGArrayTypes.PGarray(String name,
                            AbstractType baseType,
                            int baseLen,
                            String delimiter)

PGArrayTypes.PGarray

public PGArrayTypes.PGarray(String name,
                            AbstractType baseType,
                            int baseLen,
                            String delimiter,
                            String startBrace,
                            String endBrace)
Method Detail

getArray

public Array getArray(Object row,
                      ConversionContext ctx)
               throws SQLException
Specified by:
getArray in class AbstractARRAY
SQLException

getBytes

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

getJavaClass

public Class getJavaClass()
Overrides:
getJavaClass in class AbstractType

getJavaType

public Class getJavaType()
Overrides:
getJavaType in class AbstractType

setArray

public void setArray(Object row,
                     Array val,
                     ConversionContext ctx)
              throws SQLException
Specified by:
setArray in class AbstractARRAY
SQLException

setNull

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

split

protected byte[][] split(byte[] data)

split

protected byte[][] split(String val,
                         PGConversionContext pctx)
                  throws SQLException
SQLException

toString

public String toString()
Overrides:
toString in class AbstractType

jxDBCon 0.9z

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