1 30 31 32 package org.hsqldb.jdbc; 33 34 import java.sql.SQLException ; 35 import java.sql.Savepoint ; 36 37 import org.hsqldb.Trace; 38 39 70 public class jdbcSavepoint implements Savepoint { 71 72 String name; 73 jdbcConnection connection; 74 75 jdbcSavepoint(String name, jdbcConnection conn) throws SQLException { 76 77 if (name == null) { 78 throw Util.sqlException(Trace.INVALID_JDBC_ARGUMENT, 79 "name is null"); 80 } 81 82 this.name = name; 83 connection = conn; 84 } 85 86 94 public int getSavepointId() throws SQLException { 95 throw Util.notSupported(); 96 } 97 98 107 public String getSavepointName() throws SQLException { 108 return name; 109 } 110 111 public String toString() { 112 return super.toString() + "[name=" + name + "]"; 113 } 114 } 115 | Popular Tags |