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()
ticket:73
public Object invoke(MethodInvocation mi) throws Throwable
QueryBuilder
may unwrap the session in certain
cases.invoke
in interface MethodInterceptor
Throwable
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.