1 28 29 package org.apache.commons.transaction.memory.jca; 30 31 import javax.resource.ResourceException ; 32 33 import org.apache.commons.transaction.memory.TransactionalMapWrapper; 34 35 40 public class MapLocalTransaction implements javax.resource.spi.LocalTransaction , javax.resource.cci.LocalTransaction { 41 42 TransactionalMapWrapper map; 43 44 public MapLocalTransaction(TransactionalMapWrapper map) { 45 this.map = map; 46 } 47 48 public void begin() throws ResourceException { 49 map.startTransaction(); 50 51 } 52 53 public void commit() throws ResourceException { 54 map.commitTransaction(); 55 } 56 57 public void rollback() throws ResourceException { 58 map.rollbackTransaction(); 59 } 60 61 } 62 | Popular Tags |