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. * *

They are defined so that client code can cast to org.postgresql.Statement * without having to predetermine the jdbc driver type. * *

ie: Before this class existed, you had to use: * *

((org.postgresql.jdbc2.Statement)stat).getInsertedOID(); * *

now you use: * *

((org.postgresql.Statement)stat).getInsertedOID(); * *

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.

* 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; }