-
Notifications
You must be signed in to change notification settings - Fork 24
/
resultSetInfo.java
56 lines (48 loc) · 1.45 KB
/
resultSetInfo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*-------------------------------------------------------------------------
*
* foreign-data wrapper for JDBC
*
* Portions Copyright (c) 2021, TOSHIBA CORPORATION
*
* This software is released under the PostgreSQL Licence
*
* IDENTIFICATION
* jdbc_fdw/resultSetInfo.java
*
*-------------------------------------------------------------------------
*/
import java.sql.*;
public class resultSetInfo {
private ResultSet resultSet;
private Integer numberOfColumns;
private int numberOfAffectedRows;
private PreparedStatement pstmt;
public resultSetInfo(
ResultSet fieldResultSet,
Integer fieldNumberOfColumns,
int fieldNumberOfAffectedRows,
PreparedStatement fieldPstmt) {
this.resultSet = fieldResultSet;
this.numberOfColumns = fieldNumberOfColumns;
this.numberOfAffectedRows = fieldNumberOfAffectedRows;
this.pstmt = fieldPstmt;
}
public void setPstmt(PreparedStatement fieldPstmt) {
this.pstmt = fieldPstmt;
}
public void setNumberOfAffectedRows(int fieldNumberOfAffectedRows) {
this.numberOfAffectedRows = fieldNumberOfAffectedRows;
}
public ResultSet getResultSet() {
return resultSet;
}
public Integer getNumberOfColumns() {
return numberOfColumns;
}
public int getNumberOfAffectedRows() {
return numberOfAffectedRows;
}
public PreparedStatement getPstmt() {
return pstmt;
}
}