~ubuntu-branches/ubuntu/oneiric/libpgjava/oneiric

« back to all changes in this revision

Viewing changes to src/interfaces/jdbc/org/postgresql/core/BaseConnection.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2005-04-21 14:25:11 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050421142511-wibh5vc31fkrorx7
Tags: 7.4.7-3
Built with sources...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * BaseConnection.java
 
4
 *        The internal interface definition for a jdbc connection
 
5
 *
 
6
 * Copyright (c) 2003, PostgreSQL Global Development Group
 
7
 *
 
8
 * IDENTIFICATION
 
9
 *        $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/BaseConnection.java,v 1.4 2003/10/29 02:39:09 davec Exp $
 
10
 *
 
11
 *-------------------------------------------------------------------------
 
12
 */
 
13
package org.postgresql.core;
 
14
 
 
15
import java.sql.DatabaseMetaData;
 
16
import java.sql.Statement;
 
17
import java.sql.SQLException;
 
18
import org.postgresql.PGConnection;
 
19
import org.postgresql.PGNotification;
 
20
 
 
21
public interface BaseConnection extends PGConnection
 
22
{
 
23
 
 
24
        public void addNotification(PGNotification p_notification);
 
25
        public void addWarning(String msg);
 
26
        public void cancelQuery() throws SQLException;
 
27
        public Statement createStatement() throws SQLException;
 
28
        public BaseResultSet execSQL(String s) throws SQLException;
 
29
        public boolean getAutoCommit();
 
30
        public String getCursorName() throws SQLException;
 
31
        public Encoding getEncoding() throws SQLException;
 
32
        public DatabaseMetaData getMetaData() throws SQLException;
 
33
        public Object getObject(String type, String value) throws SQLException;
 
34
        public int getPGProtocolVersionMajor();
 
35
        public int getPGProtocolVersionMinor();
 
36
        public PGStream getPGStream();
 
37
        public String getPGType(int oid) throws SQLException;
 
38
        public int getPGType(String pgTypeName) throws SQLException;
 
39
        public int getSQLType(int oid) throws SQLException;
 
40
        public int getSQLType(String pgTypeName) throws SQLException;
 
41
        public boolean haveMinimumCompatibleVersion(String ver) throws SQLException;
 
42
        public boolean haveMinimumServerVersion(String ver) throws SQLException;
 
43
        public void setAutoCommit(boolean autoCommit) throws SQLException;
 
44
        public void setCursorName(String cursor) throws SQLException;
 
45
 
 
46
}
 
47