jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Class LibConnection

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

public class LibConnection
extends PGConnection

This class implements PGConnection via native calls to libPQ. At runtime it binds to libpq, which must be locatable by the system's link loader.
The driver currently uses the simple, blocking, functions of libPQ.

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

Field Summary
 
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.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
LibConnection()
           
 
Method Summary
protected  PGProtocol connect(Properties uinfo)
          Open the 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
 

Constructor Detail

LibConnection

public LibConnection()
Method Detail

connect

protected PGProtocol connect(Properties uinfo)
                      throws SQLException
Open the connection. This function delegates to LibProtocol.

Specified by:
connect in class PGConnection
SQLException
See Also:
LibProtocol, LibProtocol.connect(java.util.Properties)

jxDBCon 0.9z

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