本文整理汇总了Java中org.hibernate.stat.CollectionStatistics类的典型用法代码示例。如果您正苦于以下问题:Java CollectionStatistics类的具体用法?Java CollectionStatistics怎么用?Java CollectionStatistics使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CollectionStatistics类属于org.hibernate.stat包,在下文中一共展示了CollectionStatistics类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getCollectionStatistics
import org.hibernate.stat.CollectionStatistics; //导入依赖的package包/类
/**
* Get collection statistics per role
*
* @param role collection role
*
* @return CollectionStatistics
*/
public CollectionStatistics getCollectionStatistics(String role) {
ConcurrentCollectionStatisticsImpl cs = (ConcurrentCollectionStatisticsImpl) collectionStatistics.get( role );
if ( cs == null ) {
cs = new ConcurrentCollectionStatisticsImpl( role );
ConcurrentCollectionStatisticsImpl previous;
if ( ( previous = (ConcurrentCollectionStatisticsImpl) collectionStatistics.putIfAbsent(
role, cs
) ) != null ) {
cs = previous;
}
}
return cs;
}
开发者ID:lamsfoundation,项目名称:lams,代码行数:21,代码来源:ConcurrentStatisticsImpl.java
示例2: getStatistics
import org.hibernate.stat.CollectionStatistics; //导入依赖的package包/类
private CollectionStatistics getStatistics(final EntityManagerFactory entityManagerFactory, String collectionName) {
HibernateEntityManagerFactory entityManagerFactoryImpl = (HibernateEntityManagerFactory) entityManagerFactory;
SessionFactory sessionFactory = entityManagerFactoryImpl.getSessionFactory();
if (sessionFactory != null) {
return sessionFactory.getStatistics().getCollectionStatistics(collectionName);
}
return null;
}
开发者ID:jipijapa,项目名称:jipijapa,代码行数:9,代码来源:HibernateCollectionStatistics.java
示例3: getCollectionStatistics
import org.hibernate.stat.CollectionStatistics; //导入依赖的package包/类
public CollectionStatistics getCollectionStatistics(String role) {
return null;
}
开发者ID:zhaojunfei,项目名称:lemon,代码行数:4,代码来源:StatisticsWrapper.java
示例4: getCollectionStatistics
import org.hibernate.stat.CollectionStatistics; //导入依赖的package包/类
/**
* @see StatisticsServiceMBean#getCollectionStatistics(java.lang.String)
*/
public CollectionStatistics getCollectionStatistics(String role) {
return stats.getCollectionStatistics(role);
}
开发者ID:cacheonix,项目名称:cacheonix-core,代码行数:7,代码来源:StatisticsService.java
示例5: getCollectionStatistics
import org.hibernate.stat.CollectionStatistics; //导入依赖的package包/类
public CollectionStatistics getCollectionStatistics(String arg0) {
return delegate.getCollectionStatistics( arg0 );
}
开发者ID:myfear,项目名称:HibernateStatistics,代码行数:4,代码来源:DelegatingStatisticsService.java
示例6: invoke
import org.hibernate.stat.CollectionStatistics; //导入依赖的package包/类
@Override
public Object invoke(Object... args) {
CollectionStatistics statistics = getStatistics(getEntityManagerFactory(args), getStatisticName(args));
return Long.valueOf(statistics != null ? statistics.getUpdateCount() : 0);
}
开发者ID:jipijapa,项目名称:jipijapa,代码行数:6,代码来源:HibernateCollectionStatistics.java
注:本文中的org.hibernate.stat.CollectionStatistics类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论