public class CacheLoadContextSupport extends Object
| Modifier and Type | Method and Description | 
|---|---|
static org.springframework.orm.hibernate5.HibernateTemplate | 
getHibernateTemplate()  | 
static boolean | 
isInCacheLoadContext()  | 
static <V> V | 
load(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
    org.hibernate.SessionFactory sessionFactory,
    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 org.springframework.orm.hibernate5.HibernateTemplate getHibernateTemplate()
public static <V> V load(@NotNull
                         org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                         @NotNull
                         org.hibernate.SessionFactory sessionFactory,
                         @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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.