Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 51   Methods: 4
NCLOC: 24   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
OptimisticTransactionEntry.java - 20% 50% 33.3%
coverage coverage
 1    /*
 2    * JBoss, Home of Professional Open Source
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7    package org.jboss.cache.transaction;
 8   
 9    import org.jboss.cache.optimistic.TransactionWorkspace;
 10    import org.jboss.cache.optimistic.TransactionWorkspaceImpl;
 11   
 12    /**
 13    * Subclasses the {@link TransactionEntry} class to add a {@link TransactionWorkspace}. Used with optimistic locking
 14    * where each call is assigned a trasnaction and a transaction workspace.
 15    *
 16    * @author <a href="mailto:manik@jboss.org">Manik Surtani (manik@jboss.org)</a>
 17    * @author <a href="mailto:stevew@jofti.com">Steve Woodcock (stevew@jofti.com)</a>
 18    */
 19   
 20    public class OptimisticTransactionEntry extends TransactionEntry
 21    {
 22    private TransactionWorkspace transactionWorkSpace = new TransactionWorkspaceImpl();
 23   
 24  1052612 public OptimisticTransactionEntry()
 25    {
 26    }
 27   
 28  0 public String toString()
 29    {
 30  0 StringBuffer sb = new StringBuffer(super.toString());
 31  0 sb.append("\nworkspace: ").append(transactionWorkSpace);
 32  0 return sb.toString();
 33    }
 34   
 35    /**
 36    * @return Returns the transactionWorkSpace.
 37    */
 38  2111241 public TransactionWorkspace getTransactionWorkSpace()
 39    {
 40  2111241 return transactionWorkSpace;
 41    }
 42   
 43    /**
 44    * @param transactionWorkSpace The transactionWorkSpace to set.
 45    */
 46  0 public void setTransactionWorkSpace(TransactionWorkspace transactionWorkSpace)
 47    {
 48  0 this.transactionWorkSpace = transactionWorkSpace;
 49    }
 50   
 51    }