1 6 7 package com.hp.hpl.jena.graph.impl; 8 9 import com.hp.hpl.jena.graph.*; 10 import com.hp.hpl.jena.shared.*; 11 12 18 public abstract class TransactionHandlerBase implements TransactionHandler 19 { 20 public TransactionHandlerBase() 21 { super(); } 22 23 28 public Object executeInTransaction( Command c ) 29 { 30 begin(); 31 try { Object result = c.execute(); commit(); return result; } 32 catch (Exception e) { abort(); throw new JenaException( e ); } 33 } 34 } 35 36 | Popular Tags |