mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Modified Files: jdbc/org/postgresql/Driver.java.in jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc1/Jdbc1Connection.java jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java jdbc/org/postgresql/jdbc2/Jdbc2Connection.java jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java Added Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java jdbc/org/postgresql/jdbc1/Jdbc1DatabaseMetaData.java jdbc/org/postgresql/jdbc1/Jdbc1ResultSetMetaData.java jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java jdbc/org/postgresql/jdbc2/Jdbc2DatabaseMetaData.java jdbc/org/postgresql/jdbc2/Jdbc2ResultSetMetaData.java Removed Files: jdbc/org/postgresql/jdbc1/DatabaseMetaData.java jdbc/org/postgresql/jdbc1/ResultSetMetaData.java jdbc/org/postgresql/jdbc2/DatabaseMetaData.java jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
52 lines
1.7 KiB
Java
52 lines
1.7 KiB
Java
package org.postgresql.jdbc1;
|
|
|
|
|
|
import java.util.Vector;
|
|
import java.sql.*;
|
|
import org.postgresql.Field;
|
|
import org.postgresql.util.PSQLException;
|
|
|
|
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/Jdbc1Connection.java,v 1.4 2002/07/26 05:29:35 barry Exp $
|
|
* This class implements the java.sql.Connection interface for JDBC1.
|
|
* However most of the implementation is really done in
|
|
* org.postgresql.jdbc1.AbstractJdbc1Connection
|
|
*/
|
|
public class Jdbc1Connection extends org.postgresql.jdbc1.AbstractJdbc1Connection implements java.sql.Connection
|
|
{
|
|
|
|
public java.sql.Statement createStatement() throws SQLException
|
|
{
|
|
return new org.postgresql.jdbc1.Jdbc1Statement(this);
|
|
}
|
|
|
|
public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException
|
|
{
|
|
return new org.postgresql.jdbc1.Jdbc1PreparedStatement(this, sql);
|
|
}
|
|
|
|
public java.sql.CallableStatement prepareCall(String sql) throws SQLException
|
|
{
|
|
return new org.postgresql.jdbc1.Jdbc1CallableStatement(this, sql);
|
|
}
|
|
|
|
public java.sql.DatabaseMetaData getMetaData() throws SQLException
|
|
{
|
|
if (metadata == null)
|
|
metadata = new org.postgresql.jdbc1.Jdbc1DatabaseMetaData(this);
|
|
return metadata;
|
|
}
|
|
|
|
public java.sql.ResultSet getResultSet(java.sql.Statement stat, Field[] fields, Vector tuples, String status, int updateCount, long insertOID, boolean binaryCursor) throws SQLException
|
|
{
|
|
return new Jdbc1ResultSet(this, stat, fields, tuples, status, updateCount, insertOID, binaryCursor);
|
|
}
|
|
|
|
public java.sql.ResultSet getResultSet(java.sql.Statement stat, Field[] fields, Vector tuples, String status, int updateCount) throws SQLException
|
|
{
|
|
return new Jdbc1ResultSet(this, stat, fields, tuples, status, updateCount, 0, false);
|
|
}
|
|
|
|
}
|
|
|
|
|