com.bixuebihui.jdbc.aop.SqlStat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of c-dbtools Show documentation
Show all versions of c-dbtools Show documentation
a fast small database connection pool and a active record flavor mini framework
package com.bixuebihui.jdbc.aop;
/**
* SqlStat class.
*
* @author xingwx
* @version $Id: $Id
*/
public class SqlStat {
private long count;
private double totalTime;
//0.1s
static final double SLOW_QUERY = 0.1;
static final double VERY_SLOW_QUERY = 0.5;
/**
* Setter for the field count
.
*
* @param count a long.
*/
public void setCount(long count) {
this.count = count;
}
/**
* Getter for the field count
.
*
* @return a long.
*/
public long getCount() {
return count;
}
/**
* Getter for the field totalTime
.
*
* @return a double.
*/
public double getTotalTime() {
return totalTime;
}
/**
* Setter for the field totalTime
.
*
* @param totalTime a double.
*/
public void setTotalTime(double totalTime) {
this.totalTime = totalTime;
}
}