|
|||||||||||||||||||
| 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 | |||||||||||||||
| TransactionWrapper.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.wrapper;
|
|
| 9 |
|
|
| 10 |
import net.sf.hibernate.HibernateException;
|
|
| 11 |
import net.sf.hibernate.Transaction;
|
|
| 12 |
|
|
| 13 |
/**
|
|
| 14 |
* @author akima
|
|
| 15 |
*/
|
|
| 16 |
public class TransactionWrapper implements Transaction { |
|
| 17 |
|
|
| 18 |
/**
|
|
| 19 |
*
|
|
| 20 |
*/
|
|
| 21 | 0 |
public TransactionWrapper(Transaction wrapped) {
|
| 22 | 0 |
super();
|
| 23 | 0 |
this.wrapped = wrapped;
|
| 24 |
} |
|
| 25 |
|
|
| 26 |
protected final Transaction wrapped;
|
|
| 27 |
|
|
| 28 |
/**
|
|
| 29 |
* @throws net.sf.hibernate.HibernateException
|
|
| 30 |
*/
|
|
| 31 | 0 |
public void commit() throws HibernateException { |
| 32 | 0 |
wrapped.commit(); |
| 33 |
} |
|
| 34 |
|
|
| 35 |
/**
|
|
| 36 |
* @throws net.sf.hibernate.HibernateException
|
|
| 37 |
*/
|
|
| 38 | 0 |
public void rollback() throws HibernateException { |
| 39 | 0 |
wrapped.rollback(); |
| 40 |
} |
|
| 41 |
|
|
| 42 |
/**
|
|
| 43 |
* @return @throws
|
|
| 44 |
* net.sf.hibernate.HibernateException
|
|
| 45 |
*/
|
|
| 46 | 0 |
public boolean wasCommitted() throws HibernateException { |
| 47 | 0 |
return wrapped.wasCommitted();
|
| 48 |
} |
|
| 49 |
|
|
| 50 |
/**
|
|
| 51 |
* @return @throws
|
|
| 52 |
* net.sf.hibernate.HibernateException
|
|
| 53 |
*/
|
|
| 54 | 0 |
public boolean wasRolledBack() throws HibernateException { |
| 55 | 0 |
return wrapped.wasRolledBack();
|
| 56 |
} |
|
| 57 |
|
|
| 58 |
} |
|
||||||||||