Class CustomSessionFactory

    • Constructor Detail

      • CustomSessionFactory

        public CustomSessionFactory​(org.hibernate.SessionFactory proxy)
    • Method Detail

      • openSession

        public org.hibernate.classic.Session openSession​(Connection connection)
        Specified by:
        openSession in interface org.hibernate.SessionFactory
      • openSession

        public org.hibernate.classic.Session openSession​(org.hibernate.Interceptor interceptor)
                                                  throws org.hibernate.HibernateException
        Specified by:
        openSession in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • openSession

        public org.hibernate.classic.Session openSession​(Connection connection,
                                                         org.hibernate.Interceptor interceptor)
        Specified by:
        openSession in interface org.hibernate.SessionFactory
      • openSession

        public org.hibernate.classic.Session openSession()
                                                  throws org.hibernate.HibernateException
        Specified by:
        openSession in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • getCurrentSession

        public org.hibernate.classic.Session getCurrentSession()
                                                        throws org.hibernate.HibernateException
        Specified by:
        getCurrentSession in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • getClassMetadata

        public org.hibernate.metadata.ClassMetadata getClassMetadata​(Class persistentClass)
                                                              throws org.hibernate.HibernateException
        Specified by:
        getClassMetadata in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • getClassMetadata

        public org.hibernate.metadata.ClassMetadata getClassMetadata​(String entityName)
                                                              throws org.hibernate.HibernateException
        Specified by:
        getClassMetadata in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • getCollectionMetadata

        public org.hibernate.metadata.CollectionMetadata getCollectionMetadata​(String roleName)
                                                                        throws org.hibernate.HibernateException
        Specified by:
        getCollectionMetadata in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • getAllClassMetadata

        public Map getAllClassMetadata()
                                throws org.hibernate.HibernateException
        Specified by:
        getAllClassMetadata in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • getAllCollectionMetadata

        public Map getAllCollectionMetadata()
                                     throws org.hibernate.HibernateException
        Specified by:
        getAllCollectionMetadata in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • getStatistics

        public org.hibernate.stat.Statistics getStatistics()
        Specified by:
        getStatistics in interface org.hibernate.SessionFactory
      • close

        public void close()
                   throws org.hibernate.HibernateException
        Specified by:
        close in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface org.hibernate.SessionFactory
      • evict

        public void evict​(Class persistentClass)
                   throws org.hibernate.HibernateException
        Specified by:
        evict in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • evict

        public void evict​(Class persistentClass,
                          Serializable id)
                   throws org.hibernate.HibernateException
        Specified by:
        evict in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • evictEntity

        public void evictEntity​(String entityName)
                         throws org.hibernate.HibernateException
        Specified by:
        evictEntity in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • evictEntity

        public void evictEntity​(String entityName,
                                Serializable id)
                         throws org.hibernate.HibernateException
        Specified by:
        evictEntity in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • evictCollection

        public void evictCollection​(String roleName)
                             throws org.hibernate.HibernateException
        Specified by:
        evictCollection in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • evictCollection

        public void evictCollection​(String roleName,
                                    Serializable id)
                             throws org.hibernate.HibernateException
        Specified by:
        evictCollection in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • evictQueries

        public void evictQueries()
                          throws org.hibernate.HibernateException
        Specified by:
        evictQueries in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • evictQueries

        public void evictQueries​(String cacheRegion)
                          throws org.hibernate.HibernateException
        Specified by:
        evictQueries in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException
      • openStatelessSession

        public org.hibernate.StatelessSession openStatelessSession()
        Specified by:
        openStatelessSession in interface org.hibernate.SessionFactory
      • openStatelessSession

        public org.hibernate.StatelessSession openStatelessSession​(Connection connection)
        Specified by:
        openStatelessSession in interface org.hibernate.SessionFactory
      • getDefinedFilterNames

        public Set getDefinedFilterNames()
        Specified by:
        getDefinedFilterNames in interface org.hibernate.SessionFactory
      • getFilterDefinition

        public org.hibernate.engine.FilterDefinition getFilterDefinition​(String filterName)
                                                                  throws org.hibernate.HibernateException
        Specified by:
        getFilterDefinition in interface org.hibernate.SessionFactory
        Throws:
        org.hibernate.HibernateException