org.riotfamily.riot.hibernate.support
Class LongConversationTemplate

java.lang.Object
  extended by org.springframework.orm.hibernate3.HibernateAccessor
      extended by org.riotfamily.riot.hibernate.support.LongConversationTemplate
All Implemented Interfaces:
BeanFactoryAware, InitializingBean

public class LongConversationTemplate
extends HibernateAccessor

Class similar to Spring's HibernateTemplate that simplifies working with long conversations. This class can be considered as alternative to using an AOP HibernateInterceptor.

Since:
8.0
Author:
Felix Gnass [fgnass at neteye dot de]
See Also:
Hibernate Reference - Long conversations

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate3.HibernateAccessor
FLUSH_ALWAYS, FLUSH_AUTO, FLUSH_COMMIT, FLUSH_EAGER, FLUSH_NEVER, logger
 
Constructor Summary
LongConversationTemplate(org.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 void execute(LongConversationCallback callback)
           
 
Methods inherited from class org.springframework.orm.hibernate3.HibernateAccessor
afterPropertiesSet, applyFlushMode, convertHibernateAccessException, convertJdbcAccessException, convertJdbcAccessException, disableFilters, enableFilters, flushIfNecessary, getDefaultJdbcExceptionTranslator, getEntityInterceptor, getFilterNames, getFlushMode, getJdbcExceptionTranslator, getSessionFactory, setBeanFactory, setEntityInterceptor, setEntityInterceptorBeanName, setFilterName, setFilterNames, setFlushMode, setFlushModeName, setJdbcExceptionTranslator, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongConversationTemplate

public LongConversationTemplate(org.hibernate.SessionFactory sessionFactory)
Method Detail

execute

public final void execute(LongConversationCallback callback)
                   throws Exception
Throws:
Exception