本文整理了Java中org.hibernate.stat.Statistics.getEntityUpdateCount()
方法的一些代码示例,展示了Statistics.getEntityUpdateCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Statistics.getEntityUpdateCount()
方法的具体详情如下:
包路径:org.hibernate.stat.Statistics
类名称:Statistics
方法名:getEntityUpdateCount
[英]Get global number of entity updates
[中]获取实体更新的全局数量
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getEntityUpdateCount() : 0);
}
};
代码示例来源:origin: hibernate/hibernate-orm
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics( getEntityManagerFactory( args ) );
return Long.valueOf( statistics != null ? statistics.getEntityUpdateCount() : 0 );
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getEntityUpdateCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getEntityUpdateCount() : 0);
}
};
代码示例来源:origin: wildfly/wildfly
@Override
public Object invoke(Object... args) {
org.hibernate.stat.Statistics statistics = getStatistics(getEntityManagerFactory(args));
return Long.valueOf(statistics != null ? statistics.getEntityUpdateCount() : 0);
}
};
代码示例来源:origin: gocd/gocd
json.put("EntityLoadCount", statistics.getEntityLoadCount());
json.put("EntityFetchCount", statistics.getEntityFetchCount());
json.put("EntityUpdateCount", statistics.getEntityUpdateCount());
json.put("QueryExecutionCount", statistics.getQueryExecutionCount());
json.put("QueryExecutionMaxTime", statistics.getQueryExecutionMaxTime());
代码示例来源:origin: hibernate/hibernate-orm
session.getTransaction().commit();
session.close();
assertEquals( 0, sf.getStatistics().getEntityUpdateCount() );
代码示例来源:origin: hibernate/hibernate-orm
session.getTransaction().commit();
session.close();
assertEquals( 0, sf.getStatistics().getEntityUpdateCount() );
代码示例来源:origin: prometheus/client_java
@Override
public double getValue(Statistics statistics) {
return statistics.getEntityUpdateCount();
}
}
代码示例来源:origin: hibernate/hibernate
/**
* @see StatisticsServiceMBean#getEntityUpdateCount()
*/
public long getEntityUpdateCount() {
return stats.getEntityUpdateCount();
}
/**
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core
/**
* @see StatisticsServiceMBean#getEntityUpdateCount()
*/
public long getEntityUpdateCount() {
return stats.getEntityUpdateCount();
}
/**
代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all
/**
* @see StatisticsServiceMBean#getEntityUpdateCount()
*/
public long getEntityUpdateCount() {
return stats.getEntityUpdateCount();
}
/**
代码示例来源:origin: org.hibernate/com.springsource.org.hibernate
/**
* @see StatisticsServiceMBean#getEntityUpdateCount()
*/
public long getEntityUpdateCount() {
return stats.getEntityUpdateCount();
}
/**
代码示例来源: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().getEntityUpdateCount());
}
});
代码示例来源: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.getEntityUpdateCount() : 0);
}
};
代码示例来源: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.getEntityUpdateCount() : 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.getEntityUpdateCount() : 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.getEntityUpdateCount() : 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.getEntityUpdateCount() : 0);
}
};
代码示例来源:origin: com.springsource.insight/insight-repo
private void addEntityStats(List<ApplicationStat> res, Statistics stats) {
addStat(res, "entity/total/deletes", stats.getEntityDeleteCount());
addStat(res, "entity/total/fetches", stats.getEntityFetchCount());
addStat(res, "entity/total/inserts", stats.getEntityInsertCount());
addStat(res, "entity/total/loads", stats.getEntityLoadCount());
addStat(res, "entity/total/updates", stats.getEntityUpdateCount());
for (String entityName : stats.getEntityNames()) {
EntityStatistics entStats = stats.getEntityStatistics(entityName);
addStat(res, "entity/" + entityName + "/deletes", entStats.getDeleteCount());
addStat(res, "entity/" + entityName + "/fetches", entStats.getFetchCount());
addStat(res, "entity/" + entityName + "/inserts", entStats.getInsertCount());
addStat(res, "entity/" + entityName + "/loads", entStats.getLoadCount());
addStat(res, "entity/" + entityName + "/updates", entStats.getUpdateCount());
}
}
内容来源于网络,如有侵权,请联系作者删除!