コード例 #1
0
ファイル: SPIConnection.java プロジェクト: ginobiliwang/gpdb
  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);
  }
コード例 #2
0
ファイル: SPIConnection.java プロジェクト: ginobiliwang/gpdb
  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);
  }
コード例 #3
0
ファイル: SPIConnection.java プロジェクト: ginobiliwang/gpdb
 public Savepoint setSavepoint(String name) throws SQLException {
   return this.rememberSavepoint(PgSavepoint.set(name));
 }
コード例 #4
0
ファイル: SPIConnection.java プロジェクト: ginobiliwang/gpdb
 public Savepoint setSavepoint() throws SQLException {
   return this.rememberSavepoint(PgSavepoint.set("anonymous_savepoint"));
 }