]> granicus.if.org Git - postgresql/blob - src/interfaces/jdbc/org/postgresql/PGConnection.java
Cleanup and reorganization.
[postgresql] / src / interfaces / jdbc / org / postgresql / PGConnection.java
1 /*-------------------------------------------------------------------------
2  *
3  * PGConnection.java
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
8  *
9  * Copyright (c) 2003, PostgreSQL Global Development Group
10  *
11  * IDENTIFICATION
12  *        $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGConnection.java,v 1.4 2003/03/07 18:39:41 barry Exp $
13  *
14  *-------------------------------------------------------------------------
15  */
16 package org.postgresql;
17
18 import java.sql.*;
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;
24
25 public interface PGConnection
26 {
27         /**
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.
31          * @since 7.3
32          */
33         public PGNotification[] getNotifications();
34
35         /**
36          * This returns the LargeObject API for the current connection.
37          * @since 7.3
38          */
39         public LargeObjectManager getLargeObjectAPI() throws SQLException;
40
41         /**
42          * This returns the Fastpath API for the current connection.
43          * @since 7.3
44          */
45         public Fastpath getFastpathAPI() throws SQLException;
46
47
48         /** @deprecated */
49         public Encoding getEncoding() throws SQLException;
50
51         /** @deprecated */
52         public int getSQLType(String pgTypeName) throws SQLException;
53
54         /** @deprecated */
55         public int getSQLType(int oid) throws SQLException;
56
57         /** @deprecated */
58         public String getPGType(int oid) throws SQLException;
59
60         /** @deprecated */
61         public int getPGType(String typeName) throws SQLException;
62
63         /** @deprecated */
64         public Object getObject(String type, String value) throws SQLException;
65
66 }
67