Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68c6eff

Browse files
author
Barry Lind
committed
Third phase of restructuring to add jdbc3 support.
Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java jdbc/org/postgresql/jdbc1/DatabaseMetaData.java jdbc/org/postgresql/jdbc1/Jdbc1Connection.java jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java jdbc/org/postgresql/jdbc2/Array.java jdbc/org/postgresql/jdbc2/DatabaseMetaData.java jdbc/org/postgresql/jdbc2/Jdbc2Connection.java jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java Added Files: jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java Removed Files: jdbc/org/postgresql/jdbc1/CallableStatement.java jdbc/org/postgresql/jdbc2/CallableStatement.java jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
1 parent73eb2df commit68c6eff

17 files changed

+1873
-3123
lines changed

‎src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
importorg.postgresql.util.*;
1414

1515

16-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.1 2002/07/23 03:59:55 barry Exp $
16+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Connection.java,v 1.2 2002/07/25 22:45:27 barry Exp $
1717
* This class defines methods of the jdbc1 specification. This class is
1818
* extended by org.postgresql.jdbc2.AbstractJdbc2Connection which adds the jdbc2
1919
* methods. The real Connection class (for jdbc1) is org.postgresql.jdbc1.Jdbc1Connection
@@ -359,8 +359,7 @@ public org.postgresql.Driver getDriver()
359359
// are common to all implementations (JDBC1 or 2), they are placed here.
360360
// This should make it easy to maintain the two specifications.
361361

362-
//BJL TODO this method shouldn't need to take a Connection since this can be used.
363-
publicabstractjava.sql.ResultSetgetResultSet(java.sql.Statementstat,org.postgresql.Field[]fields,Vectortuples,Stringstatus,intupdateCount,longinsertOID,booleanbinaryCursor)throwsSQLException;
362+
publicabstractjava.sql.ResultSetgetResultSet(Statementstatement,org.postgresql.Field[]fields,Vectortuples,Stringstatus,intupdateCount,longinsertOID,booleanbinaryCursor)throwsSQLException;
364363

365364
/*
366365
* This adds a warning to the warning chain.

‎src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
importorg.postgresql.util.PGbytea;
1414
importorg.postgresql.util.PSQLException;
1515

16-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.1 2002/07/23 03:59:55 barry Exp $
16+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1ResultSet.java,v 1.2 2002/07/25 22:45:27 barry Exp $
1717
* This class defines methods of the jdbc1 specification. This class is
1818
* extended by org.postgresql.jdbc2.AbstractJdbc2ResultSet which adds the jdbc2
1919
* methods. The real ResultSet class (for jdbc1) is org.postgresql.jdbc1.Jdbc1ResultSet
2020
*/
2121
publicabstractclassAbstractJdbc1ResultSet
2222
{
23-
2423
protectedVectorrows;// The results
24+
protectedStatementstatement;
2525
protectedFieldfields[];// The field descriptions
2626
protectedStringstatus;// Status of the result
2727
protectedbooleanbinaryCursor =false;// is the data binary or Strings
@@ -33,17 +33,18 @@ public abstract class AbstractJdbc1ResultSet
3333
protectedSQLWarningwarnings =null;// The warning chain
3434
protectedbooleanwasNullFlag =false;// the flag for wasNull()
3535

36-
//We can chain multiple resultSets together - this points to
36+
//We can chain multiple resultSets together - this points to
3737
// next resultSet in the chain.
3838
protectedResultSetnext =null;
3939

4040
protectedStringBuffersbuf =null;
4141
publicbyte[][]rowBuffer=null;
4242

4343

44-
publicAbstractJdbc1ResultSet(org.postgresql.PGConnectionconn,Field[]fields,Vectortuples,Stringstatus,intupdateCount,longinsertOID,booleanbinaryCursor)
44+
publicAbstractJdbc1ResultSet(org.postgresql.PGConnectionconn,Statementstatement,Field[]fields,Vectortuples,Stringstatus,intupdateCount,longinsertOID,booleanbinaryCursor)
4545
{
4646
this.connection =conn;
47+
this.statement =statement;
4748
this.fields =fields;
4849
this.rows =tuples;
4950
this.status =status;
@@ -116,7 +117,7 @@ public byte getByte(int columnIndex) throws SQLException
116117
thrownewPSQLException("postgresql.res.badbyte",s);
117118
}
118119
}
119-
return0;// SQL NULL
120+
return0;// SQL NULL
120121
}
121122

122123
publicshortgetShort(intcolumnIndex)throwsSQLException
@@ -134,7 +135,7 @@ public short getShort(int columnIndex) throws SQLException
134135
thrownewPSQLException("postgresql.res.badshort",s);
135136
}
136137
}
137-
return0;// SQL NULL
138+
return0;// SQL NULL
138139
}
139140

140141
publicintgetInt(intcolumnIndex)throwsSQLException

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp