1 package com.mockobjects.sql; 2 3 import java.sql.SQLException ; 4 import java.sql.Savepoint ; 5 6 15 public class MockConnection2 extends CommonMockConnection2{ 16 private final MockConnection connection = new MockConnection(); 17 18 public MockConnection2() { 19 } 20 21 public MockConnection2(String name) { 22 super(name); 23 } 24 25 public void releaseSavepoint(Savepoint savepoint) throws SQLException { 26 connection.releaseSavepoint(savepoint); 27 } 28 29 public void rollback(Savepoint savepoint) throws SQLException { 30 connection.rollback(savepoint); 31 } 32 33 public Savepoint setSavepoint() throws SQLException { 34 return connection.setSavepoint(); 35 } 36 37 public Savepoint setSavepoint(String name) throws SQLException { 38 return connection.setSavepoint(); 39 } 40 } 41 | Popular Tags |