Package ome.logic

Class 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 Detail

      • queryFactory

        protected transient QueryFactory queryFactory
      • sessionFactory

        protected transient org.hibernate.SessionFactory sessionFactory
    • Constructor Detail

      • AbstractLevel1Service

        public AbstractLevel1Service()
    • Method Detail

      • setQueryFactory

        public final void setQueryFactory​(QueryFactory factory)
      • 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 interface ome.system.SelfConfigurableService
      • getBeanHelper

        protected BeanHelper getBeanHelper()
      • setSessionFactory

        public final void setSessionFactory​(org.hibernate.SessionFactory sessionFactory)
        delegates to HibernateDaoSupport. Used during initialization to create a HibernateTemplate
        See Also:
        HibernateDaoSupport.setSessionFactory(SessionFactory)
      • getSessionFactory

        public final org.hibernate.SessionFactory getSessionFactory()
        delegates to HibernateDaoSupport to get the current SessionFactory
        See Also:
        HibernateDaoSupport.getSessionFactory()