public void releaseSavepoint(Savepoint savepoint) throws SQLException { if (!(savepoint instanceof PgSavepoint)) throw new IllegalArgumentException("Not a PL/Java Savepoint"); PgSavepoint sp = (PgSavepoint) savepoint; sp.release(); forgetSavepoint(sp); }
public void rollback(Savepoint savepoint) throws SQLException { if (!(savepoint instanceof PgSavepoint)) throw new IllegalArgumentException("Not a PL/Java Savepoint"); PgSavepoint sp = (PgSavepoint) savepoint; Invocation.clearErrorCondition(); sp.rollback(); forgetSavepoint(sp); }
public Savepoint setSavepoint(String name) throws SQLException { return this.rememberSavepoint(PgSavepoint.set(name)); }
public Savepoint setSavepoint() throws SQLException { return this.rememberSavepoint(PgSavepoint.set("anonymous_savepoint")); }