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.
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 |
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
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)
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
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.