|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.tools.hibernate.SessionFactory
public class SessionFactory
Simple source of Thread-aware Session
instances. Wraps a
call to SessionFactoryUtils
. Should be safe to call from
within any service implementation call or inside of Executor.execute.
Constructor Summary | |
---|---|
SessionFactory(org.hibernate.SessionFactory factory,
ome.util.SqlAction isolatedSqlAction)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionFactory(org.hibernate.SessionFactory factory, ome.util.SqlAction isolatedSqlAction)
Method Detail |
---|
public org.hibernate.Session getSession()
ticket:73
public Object invoke(MethodInvocation mi) throws Throwable
invoke
in interface MethodInterceptor
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.