1
/*-------------------------------------------------------------------------
4
* The internal interface definition for a jdbc connection
6
* Copyright (c) 2003, PostgreSQL Global Development Group
9
* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/core/Attic/BaseConnection.java,v 1.4 2003/10/29 02:39:09 davec Exp $
11
*-------------------------------------------------------------------------
13
package org.postgresql.core;
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;
21
public interface BaseConnection extends PGConnection
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;