public class SessionFactory extends java.lang.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.
|
java.lang.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 java.lang.Object invoke(MethodInvocation mi) throws java.lang.Throwable
QueryBuilder
may unwrap the session in certain
cases.invoke
in interface MethodInterceptor
java.lang.Throwable
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.