com.xpn.xwiki.store
Interface XWikiHibernateBaseStore.HibernateCallback<T>

Enclosing class:
XWikiHibernateBaseStore

public static interface XWikiHibernateBaseStore.HibernateCallback<T>

Callback (closure) interface for operations in hibernate. spring like.


Method Summary
 T doInHibernate(org.hibernate.Session session)
          method executed by XWikiHibernateBaseStore and pass open session to it.
 

Method Detail

doInHibernate

T doInHibernate(org.hibernate.Session session)
                throws org.hibernate.HibernateException,
                       XWikiException
method executed by XWikiHibernateBaseStore and pass open session to it.

Parameters:
session - - open hibernate session
Returns:
any you need be returned by XWikiHibernateBaseStore.execute(XWikiContext, boolean, boolean, HibernateCallback)
Throws:
org.hibernate.HibernateException - if any store specific exception
XWikiException - if exception in xwiki.


Copyright © 2004–2014 XWiki. All rights reserved.