| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | beginTransactionIfNeeded(Ehcache
the cache to begin a transaction for cache)Begin a transaction on the current thread if the cache is configured as transactional, otherwise this method does nothing. |
| public static void | commitTransactionIfNeeded(Ehcache
the cache to commit a transaction for cache)Commit a transaction previously begun on the current thread if the cache is configured as transactional, otherwise this method does nothing. |
| public static boolean | Returns: true if the cache is transactional and a transaction started, false otherwisethe cache to check if a transaction started for cache)Check if a transaction has begun on the current thread if the cache is configured as transactional, otherwise always return false. |
| XA_STATUS_NO_TRANSACTION | back to summary |
|---|---|
| private static final int XA_STATUS_NO_TRANSACTION | |
| CacheTransactionHelper | back to summary |
|---|---|
| public CacheTransactionHelper() | |
| beginTransactionIfNeeded | back to summary |
|---|---|
| public static void beginTransactionIfNeeded(Ehcache cache) throws CacheException Begin a transaction on the current thread if the cache is configured as transactional, otherwise this method does nothing.
| |
| commitTransactionIfNeeded | back to summary |
|---|---|
| public static void commitTransactionIfNeeded(Ehcache cache) throws CacheException Commit a transaction previously begun on the current thread if the cache is configured as transactional, otherwise this method does nothing.
| |
| isTransactionStarted | back to summary |
|---|---|
| public static boolean isTransactionStarted(Ehcache cache) throws CacheException Check if a transaction has begun on the current thread if the cache is configured as transactional, otherwise always return false.
| |