jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class PGTypes

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.postgresql.PGTypes
Direct Known Subclasses:
PGArrayTypes, PGDateTimeTypes, PGNumericTypes, PGStructTypes

public class PGTypes
extends Object

The types used in the PostgreSQL database system. These are type handlers for the different types used in PostgreSQL. All types need to implement both a binary and a text mode conversion. All types except bytea in text mode will return the raw bytes transmitted by the backend as the result of getBytes.

Version:
$Revision: 1.21 $
Author:
Keve Müller, Peter Brant

Nested Class Summary
static class PGTypes.DefaultParamType
          The default type for unspecified positional parameters.
static class PGTypes.PGaclitem
          Item in an access control list.
static class PGTypes.PGbit
          Full support.
static class PGTypes.PGbool
          One byte boolean type.
static class PGTypes.PGbytea
          LONGVARBINARY type.
static class PGTypes.PGmacaddr
           
static class PGTypes.PGoid
          Unsigned 4 byte 2's complements integer value.
static class PGTypes.PGunknown
           
static class PGTypes.PGvarbit
          Full support.
 
Field Summary
protected static DataConverter be
           
(package private) static Map defKnownTypes
           
protected static DataConverter le
           
 
Constructor Summary
PGTypes()
           
 
Method Summary
static byte[] doEscape(byte[] input)
          Escape byte data for use in a literal.
static byte[] genericGetBytes(Object row, ConversionContext ctx)
           
static void genericSetBytes(Object row, byte[] x, ConversionContext ctx)
           
static void genericSetNull(Object row, ConversionContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

be

protected static final DataConverter be

defKnownTypes

static final Map defKnownTypes

le

protected static final DataConverter le
Constructor Detail

PGTypes

public PGTypes()
Method Detail

doEscape

public static byte[] doEscape(byte[] input)
Escape byte data for use in a literal.


genericGetBytes

public static final byte[] genericGetBytes(Object row,
                                           ConversionContext ctx)

genericSetBytes

public static final void genericSetBytes(Object row,
                                         byte[] x,
                                         ConversionContext ctx)

genericSetNull

public static final void genericSetNull(Object row,
                                        ConversionContext ctx)

jxDBCon 0.9z

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