本文整理了Java中org.hibernate.stat.Statistics.getPrepareStatementCount()
方法的一些代码示例,展示了Statistics.getPrepareStatementCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Statistics.getPrepareStatementCount()
方法的具体详情如下:
包路径:org.hibernate.stat.Statistics
类名称:Statistics
方法名:getPrepareStatementCount
[英]The number of prepared statements that were acquired
[中]获得的准备好的报表数量
代码示例来源:origin: hibernate/hibernate-orm
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics( getEntityManagerFactory( args ) );
return Long.valueOf( statistics != null ? statistics.getPrepareStatementCount() : 0 );
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: gocd/gocd
json.put("SuccessfulTransactionCount", statistics.getSuccessfulTransactionCount());
json.put("TransactionCount", statistics.getTransactionCount());
json.put("PrepareStatementCount", statistics.getPrepareStatementCount());
json.put("CloseStatementCount", statistics.getCloseStatementCount());
json.put("OptimisticFailureCount", statistics.getOptimisticFailureCount());
代码示例来源:origin: prometheus/client_java
@Override
public double getValue(Statistics statistics) {
return statistics.getPrepareStatementCount();
}
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.hibernate.management.api.HibernateStats#getPrepareStatementCount()
*/
public long getPrepareStatementCount() {
return getStatistics().getPrepareStatementCount();
}
代码示例来源:origin: hibernate/hibernate
public long getPrepareStatementCount() {
return stats.getPrepareStatementCount();
}
}
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
public long getPrepareStatementCount() {
return stats.getPrepareStatementCount();
}
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
public long getPrepareStatementCount() {
return statistics.getPrepareStatementCount();
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.hibernate.management.api.HibernateStats#getPrepareStatementCount()
*/
public long getPrepareStatementCount() {
return getStatistics().getPrepareStatementCount();
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.hibernate.management.api.HibernateStats#getPrepareStatementCount()
*/
public long getPrepareStatementCount() {
return getStatistics().getPrepareStatementCount();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* {@inheritDoc}
*
* @see net.sf.ehcache.hibernate.management.api.HibernateStats#getPrepareStatementCount()
*/
public long getPrepareStatementCount() {
return getStatistics().getPrepareStatementCount();
}
代码示例来源:origin: org.jboss.as/jboss-as-jpa-hibernate4
@Override
void handle(final ModelNode response, final String name, ManagementLookup stats, OperationContext context) {
response.set(stats.getStatistics().getPrepareStatementCount());
}
});
代码示例来源:origin: org.jipijapa/jipijapa-hibernate4-3
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: org.jipijapa/jipijapa-hibernate4-1
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: org.jboss.eap/jipijapa-hibernate5
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: org.jboss.eap/jipijapa-hibernate4-3
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
代码示例来源:origin: org.jboss.eap/jipijapa-hibernate5-3
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getPrepareStatementCount() : 0);
}
};
内容来源于网络,如有侵权,请联系作者删除!