public class CacheLoadContextSupport extends Object
Modifier and Type | Method and Description |
---|---|
static void |
enterCacheLoadContext() |
static org.springframework.orm.hibernate3.HibernateTemplate |
getHibernateTemplate() |
static boolean |
isInCacheLoadContext() |
static boolean |
leaveCacheLoadContext() |
static <V> V |
load(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.hibernate3.HibernateTemplate hibernateTemplate,
Callable<V> callable)
This method will mark the current thread as being in cache load context (see
isInCacheLoadContext() and executes
the supplied callback within a transaction retrieved from transactionTemplate. |
public static boolean isInCacheLoadContext()
public static boolean leaveCacheLoadContext()
public static void enterCacheLoadContext()
public static org.springframework.orm.hibernate3.HibernateTemplate getHibernateTemplate()
public static <V> V load(@NotNull org.springframework.transaction.support.TransactionTemplate transactionTemplate, org.springframework.orm.hibernate3.HibernateTemplate hibernateTemplate, @NotNull Callable<V> callable)
isInCacheLoadContext()
and executes
the supplied callback within a transaction retrieved from transactionTemplate. It also sets up a new HibernateTemplate, made
available via getHibernateTemplate()
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.