jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class NetConnection

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.AbstractConnection
        |
        +--org.sourceforge.jxdbcon.postgresql.PGConnection
              |
              +--org.sourceforge.jxdbcon.postgresql.NetConnection
All Implemented Interfaces:
Cloneable, Connection, InfoKeys, PGConstants, PGInfoKeys

public class NetConnection
extends PGConnection
implements PGConstants

This class implements PGConnection via a Socket connection using PostgreSQL's Frontend/Backend network protocol.

Version:
$Revision: 1.9 $
Author:
Keve Müller

Field Summary
private  Thread protoThread
          The protocol handler's thread.
 
Fields inherited from class org.sourceforge.jxdbcon.postgresql.PGConnection
autoCommit, clientEncoding, dbEncoding, isBigEndian, oidTypeMap
 
Fields inherited from class org.sourceforge.jxdbcon.AbstractConnection
info, typeMap, warning
 
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.PGConstants
AUTH_REQ_CRYPT, AUTH_REQ_KRB4, AUTH_REQ_KRB5, AUTH_REQ_MD5, AUTH_REQ_OK, AUTH_REQ_PASSWORD, AUTH_REQ_SCM, NUMERIC_DSCALE_MASK, NUMERIC_NAN, NUMERIC_NEG, NUMERIC_POS, NUMERIC_SIGN_MASK, PG_VERSION_STR, PG_VERSION_STR1, TRIGGER_TYPE_BEFORE, TRIGGER_TYPE_DELETE, TRIGGER_TYPE_INSERT, TRIGGER_TYPE_ROW, TRIGGER_TYPE_UPDATE
 
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.PGInfoKeys
FORCECLIENTENC, OPTIONS, PROTOVERSION, SETTIMEZONE, STRICTSCHEMA, TTY, USEASYNC, USECLIENTENC, USEDBENC, USESSL
 
Fields inherited from interface org.sourceforge.jxdbcon.InfoKeys
CATALOG, DESCRIPTION, DRIVER, HOST, PASSWORD, PORT, SUBDRIVER, USER
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
NetConnection()
           
 
Method Summary
protected  PGProtocol connect(Properties info)
          Open a connection.
 
Methods inherited from class org.sourceforge.jxdbcon.postgresql.PGConnection
close, commit, createStatement, exec, exec, exec, executeBatch, executeSQL, fillPropertyInfo, findFunc, findFunc, findFunc, getAutoCommit, getConversionContext, getEscapeContext, getGeneratedKeys, getMetaData, getProtocol, getResultSet, getResultSet, getTransactionIsolation, getType, getType, getTypeOid, open, prepareCall, prepareStatement, res2Types, rollback, setAutoCommit, setCatalog, setTransactionIsolation, takeOver, toString
 
Methods inherited from class org.sourceforge.jxdbcon.AbstractConnection
clearWarnings, clone, createStatement, createStatement, duplicate, finalize, getCatalog, getHoldability, getInfo, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTypeMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

protoThread

private Thread protoThread
The protocol handler's thread.

Constructor Detail

NetConnection

public NetConnection()
Method Detail

connect

protected PGProtocol connect(Properties info)
                      throws SQLException
Description copied from class: PGConnection
Open a connection.

Specified by:
connect in class PGConnection
SQLException

jxDBCon 0.9z

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