HibernateTemplate's
execution methods, often as anonymous classes within a method implementation.
A typical implementation will call Session.load/find/update to perform
some operations on persistent objects.
HibernateTemplate, HibernateTransactionManager
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: a result object, ornull if noneactive Hibernate session session)
Deprecated
as a consequence of
Gets called by Session being deprecated.
HibernateTemplate.execute with an active
Hibernate Session.
|
| doInHibernate | back to summary |
|---|---|
| public T doInHibernate(Session session) throws HibernateException
Deprecated as a consequence of Gets called by Allows for returning a result object created within the callback, i.e. a domain object or a collection of domain objects. A thrown custom RuntimeException is treated as an application exception: It gets propagated to the caller of the template.
| |