public class GrailsOpenSessionInViewInterceptor extends OpenSessionInViewInterceptor
Extends the default Spring OSIV to support multiple datasources.
The default datasource's SessionFactory is managed by the parent class. Additional (non-default) datasource SessionFactories are managed by this subclass, which opens and closes sessions for each one alongside the default session.
| Modifiers | Name | Description |
|---|---|---|
protected org.hibernate.FlushMode |
hibernateFlushMode |
| Fields inherited from class | Fields |
|---|---|
class OpenSessionInViewInterceptor |
PARTICIPATE_SUFFIX |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
afterCompletion(WebRequest request, java.lang.Exception ex) |
|
protected void |
applyFlushMode(org.hibernate.Session session) |
|
protected org.hibernate.Session |
openSession() |
|
public void |
postHandle(WebRequest request, ModelMap model) |
|
public void |
preHandle(WebRequest request) |
|
public void |
setHibernateDatastore(AbstractHibernateDatastore hibernateDatastore) |
| Methods inherited from class | Name |
|---|---|
class OpenSessionInViewInterceptor |
afterCompletion, afterConcurrentHandlingStarted, equals, getClass, getSessionFactory, hashCode, notify, notifyAll, postHandle, preHandle, setSessionFactory, toString, wait, wait, wait |