1 17 18 package org.apache.geronimo.connector.mock; 19 20 import javax.resource.ResourceException ; 21 import javax.resource.cci.LocalTransaction ; 22 23 29 public class MockCCILocalTransaction extends MockSPILocalTransaction implements LocalTransaction { 30 31 private final MockConnection mockConnection; 32 33 public MockCCILocalTransaction(MockConnection mockConnection) { 34 this.mockConnection = mockConnection; 35 } 36 37 public void begin() throws ResourceException { 38 super.begin(); 39 mockConnection.getManagedConnection().localTransactionStartedEvent(mockConnection); 40 } 41 42 public void commit() throws ResourceException { 43 super.commit(); 44 mockConnection.getManagedConnection().localTransactionCommittedEvent(mockConnection); 45 } 46 47 public void rollback() throws ResourceException { 48 super.rollback(); 49 mockConnection.getManagedConnection().localTransactionRolledBackEvent(mockConnection); 50 } 51 } 52 | Popular Tags |