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