Beispiel #1
0
  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);
  }
Beispiel #2
0
  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);
  }
Beispiel #3
0
 public Savepoint setSavepoint(String name) throws SQLException {
   return this.rememberSavepoint(PgSavepoint.set(name));
 }
Beispiel #4
0
 public Savepoint setSavepoint() throws SQLException {
   return this.rememberSavepoint(PgSavepoint.set("anonymous_savepoint"));
 }