Package ome.logic
Class AbstractLevel1Service
- java.lang.Object
-
- ome.logic.AbstractLevel1Service
-
- All Implemented Interfaces:
ome.system.SelfConfigurableService
- Direct Known Subclasses:
QueryImpl
,UpdateImpl
public abstract class AbstractLevel1Service extends java.lang.Object implements ome.system.SelfConfigurableService
service level 1- Since:
- OMERO 3.0
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryFactory
queryFactory
protected org.hibernate.SessionFactory
sessionFactory
-
Constructor Summary
Constructors Constructor Description AbstractLevel1Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanHelper
getBeanHelper()
QueryFactory
getQueryFactory()
org.hibernate.SessionFactory
getSessionFactory()
delegates toHibernateDaoSupport
to get the currentSessionFactory
void
selfConfigure()
This method was previously called by the EJB container, but is no longer needed.void
setQueryFactory(QueryFactory factory)
void
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
delegates toHibernateDaoSupport
.
-
-
-
Field Detail
-
queryFactory
protected transient QueryFactory queryFactory
-
sessionFactory
protected transient org.hibernate.SessionFactory sessionFactory
-
-
Method Detail
-
setQueryFactory
public final void setQueryFactory(QueryFactory factory)
-
getQueryFactory
public QueryFactory getQueryFactory()
-
selfConfigure
public void selfConfigure()
This method was previously called by the EJB container, but is no longer needed. Instead, all configuration happens within Spring.- Specified by:
selfConfigure
in interfaceome.system.SelfConfigurableService
-
getBeanHelper
protected BeanHelper getBeanHelper()
-
setSessionFactory
public final void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
delegates toHibernateDaoSupport
. Used during initialization to create aHibernateTemplate
- See Also:
HibernateDaoSupport.setSessionFactory(SessionFactory)
-
getSessionFactory
public final org.hibernate.SessionFactory getSessionFactory()
delegates toHibernateDaoSupport
to get the currentSessionFactory
- See Also:
HibernateDaoSupport.getSessionFactory()
-
-