public class SessionFactory extends Object implements MethodInterceptor
Session
instances. Wraps a
call to SessionFactoryUtils
. Should be safe to call from
within any service implementation call or inside of Executor.execute.Constructor and Description |
---|
SessionFactory(org.hibernate.SessionFactory factory,
SqlAction isolatedSqlAction) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.Session |
getSession()
Returns a session active for the current thread.
|
Object |
invoke(MethodInvocation mi)
Wraps all invocations to Session to prevent certain usages.
|
public SessionFactory(org.hibernate.SessionFactory factory, SqlAction isolatedSqlAction)
public org.hibernate.Session getSession()
public Object invoke(MethodInvocation mi) throws Throwable
QueryBuilder
may unwrap the session in certain
cases.invoke
in interface MethodInterceptor
Throwable
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.