blob: 105bc81f2b0890a2c81ad4ecb941d1f01387ffd1 (
plain)
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
|
package org.postgresql;
import java.sql.SQLException;
/**
* This class defines methods implemented by the two subclasses
* org.postgresql.jdbc1.Statement and org.postgresql.jdbc2.Statement that are
* unique to PostgreSQL's JDBC driver.
*
* <p>They are defined so that client code can cast to org.postgresql.Statement
* without having to predetermine the jdbc driver type.
*
* <p>ie: Before this class existed, you had to use:
*
* <p>((org.postgresql.jdbc2.Statement)stat).getInsertedOID();
*
* <p>now you use:
*
* <p>((org.postgresql.Statement)stat).getInsertedOID();
*
* <p>As you can see, this is independent of JDBC1.2, JDBC2.0 or the upcoming
* JDBC3.
*/
public abstract class Statement {
public Statement() {
}
/**
* Returns the status message from the current Result.<p>
* This is used internally by the driver.
*
* @return status message from backend
*/
public abstract String getResultStatusString();
/**
* @return the OID of the last row inserted
*/
public abstract int getInsertedOID() throws SQLException;
}
|