1 /*-------------------------------------------------------------------------
4 * The public interface definition for a Postgresql Connection
5 * This interface defines PostgreSQL extentions to the java.sql.Connection
6 * interface. Any java.sql.Connection object returned by the driver will
7 * also implement this interface
9 * Copyright (c) 2003, PostgreSQL Global Development Group
12 * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.4 2003/03/07 18:39:41 barry Exp $
14 *-------------------------------------------------------------------------
16 package org.postgresql;
19 import java.util.Properties;
20 import java.util.Vector;
21 import org.postgresql.core.Encoding;
22 import org.postgresql.fastpath.Fastpath;
23 import org.postgresql.largeobject.LargeObjectManager;
25 public interface PGConnection
28 * This method returns any notifications that have been received
29 * since the last call to this method.
30 * Returns null if there have been no notifications.
33 public PGNotification[] getNotifications();
36 * This returns the LargeObject API for the current connection.
39 public LargeObjectManager getLargeObjectAPI() throws SQLException;
42 * This returns the Fastpath API for the current connection.
45 public Fastpath getFastpathAPI() throws SQLException;
49 public Encoding getEncoding() throws SQLException;
52 public int getSQLType(String pgTypeName) throws SQLException;
55 public int getSQLType(int oid) throws SQLException;
58 public String getPGType(int oid) throws SQLException;
61 public int getPGType(String typeName) throws SQLException;
64 public Object getObject(String type, String value) throws SQLException;