public class SessionFactory
extends java.lang.Object
implements org.aopalliance.intercept.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,
ome.util.SqlAction isolatedSqlAction) |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.Session |
getSession()
Returns a session active for the current thread.
|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation mi)
Wraps all invocations to Session to prevent certain usages.
|
public SessionFactory(org.hibernate.SessionFactory factory,
ome.util.SqlAction isolatedSqlAction)
public org.hibernate.Session getSession()
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
throws java.lang.Throwable
QueryBuilder may unwrap the session in certain
cases.invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwable