93949596979899100101102103
* @param sf session factory to register */ public void setSessionFactory(SessionFactory sf) { this.sf = sf; if (sf == null) { stats = new StatisticsImpl(); } else { stats = sf.getStatistics(); }
209210211212213214215216217218219
} if (concurrentStatistics != null) { this.statistics = concurrentStatistics; } else { this.statistics = new StatisticsImpl(this); } if ( log.isTraceEnabled() ) { log.trace("Statistics initialized with " + statistics.getClass().getName()); }
919293949596979899100101
214215216217218219220221222223224
211212213214215216217218219220221