Package com.alibaba.druid.wall
Class WallSqlStat
- java.lang.Object
-
- com.alibaba.druid.wall.WallSqlStat
-
public class WallSqlStat extends Object
-
-
Constructor Summary
Constructors Constructor Description WallSqlStat(Map<String,WallSqlTableStat> tableStats, Map<String,WallSqlFunctionStat> functionStats, boolean syntaxError)WallSqlStat(Map<String,WallSqlTableStat> tableStats, Map<String,WallSqlFunctionStat> functionStats, List<Violation> violations, boolean syntaxError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddAndFetchRowCount(long delta)voidaddUpdateCount(long delta)longgetEffectRowCount()longgetExecuteCount()longgetExecuteErrorCount()Map<String,WallSqlFunctionStat>getFunctionStats()StringgetSample()longgetSqlHash()WallSqlStatValuegetStatValue(boolean reset)Map<String,WallSqlTableStat>getTableStats()longgetUpdateCount()List<Violation>getViolations()longincrementAndGetExecuteCount()longincrementAndGetExecuteErrorCount()booleanisSyntaxError()voidsetSample(String sample)voidsetSqlHash(long sqlHash)
-
-
-
Constructor Detail
-
WallSqlStat
public WallSqlStat(Map<String,WallSqlTableStat> tableStats, Map<String,WallSqlFunctionStat> functionStats, boolean syntaxError)
-
WallSqlStat
public WallSqlStat(Map<String,WallSqlTableStat> tableStats, Map<String,WallSqlFunctionStat> functionStats, List<Violation> violations, boolean syntaxError)
-
-
Method Detail
-
getSqlHash
public long getSqlHash()
-
setSqlHash
public void setSqlHash(long sqlHash)
-
getSample
public String getSample()
-
setSample
public void setSample(String sample)
-
incrementAndGetExecuteCount
public long incrementAndGetExecuteCount()
-
incrementAndGetExecuteErrorCount
public long incrementAndGetExecuteErrorCount()
-
getExecuteCount
public long getExecuteCount()
-
getExecuteErrorCount
public long getExecuteErrorCount()
-
addAndFetchRowCount
public long addAndFetchRowCount(long delta)
-
getEffectRowCount
public long getEffectRowCount()
-
getUpdateCount
public long getUpdateCount()
-
addUpdateCount
public void addUpdateCount(long delta)
-
getTableStats
public Map<String,WallSqlTableStat> getTableStats()
-
getFunctionStats
public Map<String,WallSqlFunctionStat> getFunctionStats()
-
isSyntaxError
public boolean isSyntaxError()
-
getStatValue
public WallSqlStatValue getStatValue(boolean reset)
-
-