public Statistics getStatistics() { return getStatisticsImplementor(); }
public Statistics getStatistics() { return getStatisticsImplementor(); }
public TransactionEnvironmentImpl(SessionFactoryImpl sessionFactory) { this.sessionFactory = sessionFactory; this.statisticsImplementor = sessionFactory.getStatisticsImplementor(); this.serviceRegistry = sessionFactory.getServiceRegistry(); this.jdbcServices = serviceRegistry.getService( JdbcServices.class ); this.jtaPlatform = serviceRegistry.getService( JtaPlatform.class ); this.transactionFactory = serviceRegistry.getService( TransactionFactory.class ); }
public TransactionEnvironmentImpl(SessionFactoryImpl sessionFactory) { this.sessionFactory = sessionFactory; this.statisticsImplementor = sessionFactory.getStatisticsImplementor(); this.serviceRegistry = sessionFactory.getServiceRegistry(); this.jdbcServices = serviceRegistry.getService( JdbcServices.class ); this.jtaPlatform = serviceRegistry.getService( JtaPlatform.class ); this.transactionFactory = serviceRegistry.getService( TransactionFactory.class ); }
public Connection close() throws HibernateException { LOG.trace( "Closing session" ); if ( isClosed() ) { throw new SessionException( "Session was already closed" ); } if ( factory.getStatistics().isStatisticsEnabled() ) { factory.getStatisticsImplementor().closeSession(); } try { return transactionCoordinator.close(); } finally { setClosed(); cleanup(); } }
public Connection close() throws HibernateException { LOG.trace( "Closing session" ); if ( isClosed() ) { throw new SessionException( "Session was already closed" ); } if ( factory.getStatistics().isStatisticsEnabled() ) { factory.getStatisticsImplementor().closeSession(); } try { return transactionCoordinator.close(); } finally { setClosed(); cleanup(); } }
if (factory.getStatistics().isStatisticsEnabled()) factory.getStatisticsImplementor().openSession();
if (factory.getStatistics().isStatisticsEnabled()) factory.getStatisticsImplementor().openSession();