| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.util.CacheTransactionHelper
public class CacheTransactionHelper
A collection of utility methods helping controlling transactions for managed operations which may require them.
| Constructor Summary | |
|---|---|
CacheTransactionHelper()
 | 
|
| Method Summary | |
|---|---|
static void | 
beginTransactionIfNeeded(Ehcache cache)
Begin a transaction on the current thread if the cache is configured as transactional, otherwise this method does nothing.  | 
static void | 
commitTransactionIfNeeded(Ehcache cache)
Commit a transaction previously begun on the current thread if the cache is configured as transactional, otherwise this method does nothing.  | 
static boolean | 
isTransactionStarted(Ehcache cache)
Check if a transaction has begun on the current thread if the cache is configured as transactional, otherwise always return false.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public CacheTransactionHelper()
| Method Detail | 
|---|
public static void beginTransactionIfNeeded(Ehcache cache)
                                     throws CacheException
cache - the cache to begin a transaction for
CacheException - if anything wrong happens
public static void commitTransactionIfNeeded(Ehcache cache)
                                      throws CacheException
cache - the cache to commit a transaction for
CacheException - if anything wrong happens
public static boolean isTransactionStarted(Ehcache cache)
                                    throws CacheException
cache - the cache to check if a transaction started for
CacheException - if anything wrong happens
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||