Package com.alibaba.druid.wall
Class WallSqlStat
java.lang.Object
com.alibaba.druid.wall.WallSqlStat
-
Constructor Summary
ConstructorDescriptionWallSqlStat
(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
Modifier and TypeMethodDescriptionlong
addAndFetchRowCount
(long delta) void
addUpdateCount
(long delta) long
long
long
long
getStatValue
(boolean reset) long
long
long
boolean
void
void
setSqlHash
(long sqlHash)
-
Constructor Details
-
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 Details
-
getSqlHash
public long getSqlHash() -
setSqlHash
public void setSqlHash(long sqlHash) -
getSample
-
setSample
-
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
-
getFunctionStats
-
getViolations
-
isSyntaxError
public boolean isSyntaxError() -
getStatValue
-