org.alfresco.repo.domain.hibernate
Class HibernateSessionHelper

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.alfresco.repo.domain.hibernate.HibernateSessionHelper
All Implemented Interfaces:
HibernateSessionSupport, org.springframework.beans.factory.InitializingBean

public class HibernateSessionHelper
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements HibernateSessionSupport

Utililty support against hibernate sessions. Supported by a super event listener which is registered on the even listener of the hibernate session.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateSessionHelper()
           
 
Method Summary
 java.lang.String getCurrentMark()
           
 java.util.List getMarks()
           
static HibernateSessionHelperResourceProvider getResource()
           
 void mark()
           
 void mark(java.lang.String label)
           
 void removeMark()
           
 void removeMark(java.lang.String label)
           
 void reset()
           
 void reset(java.lang.String label)
           
 void resetAndRemoveMark()
           
 void resetAndRemoveMark(java.lang.String label)
           
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateSessionHelper

public HibernateSessionHelper()
Method Detail

mark

public void mark()
Specified by:
mark in interface HibernateSessionSupport

mark

public void mark(java.lang.String label)
Specified by:
mark in interface HibernateSessionSupport

reset

public void reset()
Specified by:
reset in interface HibernateSessionSupport

reset

public void reset(java.lang.String label)
Specified by:
reset in interface HibernateSessionSupport

removeMark

public void removeMark()
Specified by:
removeMark in interface HibernateSessionSupport

removeMark

public void removeMark(java.lang.String label)
Specified by:
removeMark in interface HibernateSessionSupport

resetAndRemoveMark

public void resetAndRemoveMark()
Specified by:
resetAndRemoveMark in interface HibernateSessionSupport

resetAndRemoveMark

public void resetAndRemoveMark(java.lang.String label)
Specified by:
resetAndRemoveMark in interface HibernateSessionSupport

getMarks

public java.util.List getMarks()
Specified by:
getMarks in interface HibernateSessionSupport

getCurrentMark

public java.lang.String getCurrentMark()
Specified by:
getCurrentMark in interface HibernateSessionSupport

getResource

public static HibernateSessionHelperResourceProvider getResource()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.