Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 36   Methods: 3
NCLOC: 21   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BatchModeTransactionManager.java 50% 42.9% 66.7% 50%
coverage coverage
 1    package org.jboss.cache.transaction;
 2   
 3    import org.apache.commons.logging.Log;
 4    import org.apache.commons.logging.LogFactory;
 5   
 6    /**
 7    * Not really a transaction manager in the truest sense of the word. Only used to batch up operations. Proper
 8    * transactional symantics of rollbacks and recovery are NOT used here. This is used by PojoCache.
 9    *
 10    * @author bela
 11    * @version $Revision: 1.5 $
 12    * Date: May 15, 2003
 13    * Time: 4:11:37 PM
 14    */
 15    public class BatchModeTransactionManager extends DummyBaseTransactionManager {
 16    static BatchModeTransactionManager instance=null;
 17    static Log log=LogFactory.getLog(BatchModeTransactionManager.class);
 18    private static final long serialVersionUID = 5656602677430350961L;
 19   
 20  46 public BatchModeTransactionManager() {
 21    }
 22   
 23  238 public static BatchModeTransactionManager getInstance() {
 24  238 if(instance == null) {
 25  46 instance=new BatchModeTransactionManager();
 26    }
 27  238 return instance;
 28    }
 29   
 30  0 public static void destroy() {
 31  0 if(instance == null) return;
 32  0 instance.setTransaction(null);
 33  0 instance=null;
 34    }
 35   
 36    }