Interface StatsInterface
- All Known Implementing Classes:
QueryStatement
public interface StatsInterface
An interface for tracking and accessing basic performance information.
Any class that implments this needs to keep track of the following:
Parses - Turning a SQL statement from a string into something the database server can use
Executions - Executing the statement and either retrieving or changing data
Releases - Handing back the database connection to the calling class.
Errors - Error conditions such as prepared statements being unusable.
See StatsInterface
Copyright 2003-2026 ATB Consultancy Services Ltd (formerly Orinda Software Ltd, Dublin, Ireland)
- Version:
- 7
- Author:
- devteam@mcpdbwizard.com
-
Method Summary
Modifier and TypeMethodDescriptionlongGet ErrorslongGet executionslongGet execution timelongGet ParseslongGet Parse timelongGet ReleaseslongGet Retrieval timevoidReset all counters Set the counters for Parses, Executions and Releases to zero.
-
Method Details
-
resetStatsCounters
void resetStatsCounters()Reset all counters Set the counters for Parses, Executions and Releases to zero. -
getParses
long getParses()Get Parses- Returns:
- long The number of times this statement was parsed.
-
getParseTime
long getParseTime()Get Parse time- Returns:
- long The length of time this statement has spent parsing in milliseconds
-
getExecutions
long getExecutions()Get executions- Returns:
- long The number of times this statement was executed.
-
getExecutionTime
long getExecutionTime()Get execution time- Returns:
- long The length of time this statement has spent executing in milliseconds
-
getRetrievalTime
long getRetrievalTime()Get Retrieval time- Returns:
- long The length of time this statement has spent executing in milliseconds
-
getReleases
long getReleases()Get Releases- Returns:
- long The number of times this statement was released.
-
getErrors
long getErrors()Get Errors- Returns:
- long The number of times an error was generated.
-