Package com.xpn.xwiki.store
Interface XWikiHibernateBaseStore.HibernateCallback<T>
-
- Enclosing class:
- XWikiHibernateBaseStore
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface XWikiHibernateBaseStore.HibernateCallback<T>
Callback (closure) interface for operations in Hibernate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
doInHibernate(org.hibernate.Session session)
method executed byXWikiHibernateBaseStore
and pass open session to it.
-
-
-
Method Detail
-
doInHibernate
T doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException, XWikiException
method executed byXWikiHibernateBaseStore
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 exceptionXWikiException
- if exception in xwiki.
-
-