Clover coverage report - brownies library - 1.0-beta-1 Coverage timestamp: 月 8 16 2004 17:14:42 GMT+09:00 FRAMES NO FRAMES |
file stats: | LOC: | 62 |  | Methods: | 5
| NCLOC: | 25 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
LogTransaction.java | - | 0% | 0% | 0% |

1 |  |
     /*
2 |  |
      * Joey and its relative products are published under the terms
3 |  |
      * of the Apache Software License.
4 |  |
      */
5 |  |
     /*
6 |  |
      * Created on 2004/02/29
7 |  |
      */
8 |  |
     package org.asyrinx.brownie.hibernate.logger;
9 |  |
10 |  |
     import net.sf.hibernate.HibernateException;
11 |  |
     import net.sf.hibernate.Transaction;
12 |  |
13 |  |
     import org.asyrinx.brownie.core.log.CascadeNamedLog;
14 |  |
     import org.asyrinx.brownie.hibernate.wrapper.TransactionWrapper;
15 |  |
16 |  |
     /**
17 |  |
      * @author akima
18 |  |
      */
19 |  |
     public class LogTransaction extends TransactionWrapper {
20 |  |
21 |  |
         /**
22 |  |
          * @param wrapped
23 |  |
          * @param log
24 |  |
          */
25 | 0 |
         public LogTransaction(Transaction wrapped, CascadeNamedLog parentLog) {
26 | 0 |
             super(wrapped);
27 | 0 |
             this.log = parentLog.subLog(wrapped);
28 |  |
         }
29 |  |
30 |  |
         protected final CascadeNamedLog log;
31 |  |
32 |  |
         /**
33 |  |
          * @see net.sf.hibernate.Transaction#commit()
34 |  |
          */
35 | 0 |
         public void commit() throws HibernateException {
36 | 0 |
             log.log("commit()");
37 | 0 |
             super.commit();
38 |  |
         }
39 |  |
40 |  |
         /**
41 |  |
          * @see net.sf.hibernate.Transaction#rollback()
42 |  |
          */
43 | 0 |
         public void rollback() throws HibernateException {
44 | 0 |
             log.log("rollback()");
45 | 0 |
             super.rollback();
46 |  |
         }
47 |  |
48 |  |
         /**
49 |  |
          * @see net.sf.hibernate.Transaction#wasCommitted()
50 |  |
          */
51 | 0 |
         public boolean wasCommitted() throws HibernateException {
52 | 0 |
             return super.wasCommitted();
53 |  |
         }
54 |  |
55 |  |
         /**
56 |  |
          * @see net.sf.hibernate.Transaction#wasRolledBack()
57 |  |
          */
58 | 0 |
         public boolean wasRolledBack() throws HibernateException {
59 | 0 |
             return super.wasRolledBack();
60 |  |
         }
61 |  |
62 |  |
     }