ome.tools.hibernate
Class SessionFactory

java.lang.Object
  extended by ome.tools.hibernate.SessionFactory

public class SessionFactory
extends Object

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.

Since:
4.0
Author:
Josh Moore, josh at glencoesoftware.com

Constructor Summary
SessionFactory(org.hibernate.SessionFactory factory)
           
 
Method Summary
 org.hibernate.Session getSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionFactory

public SessionFactory(org.hibernate.SessionFactory factory)
Method Detail

getSession

public org.hibernate.Session getSession()


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.