Package com.sun.gjc.util
Class SQLTrace
- java.lang.Object
-
- com.sun.gjc.util.SQLTrace
-
- Direct Known Subclasses:
SlowSqlTrace
public class SQLTrace extends Object
Store the sql queries executed by applications along with the number of times executed and the time stamp of the last usage. Used for monitoring information.- Author:
- Shalini M
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<SQLTrace>
SQLTraceFrequencyComparator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLastUsageTime()
Get the value of lastUsageTimeint
getNumExecutions()
Get the value of numExecutionsString
getQueryName()
Get the value of queryNamevoid
setLastUsageTime(long lastUsageTime)
Set the value of lastUsageTimevoid
setNumExecutions(int numExecutions)
Set the value of numExecutionsvoid
setQueryName(String queryName)
Set the value of queryName
-
-
-
Field Detail
-
SQLTraceFrequencyComparator
public static Comparator<SQLTrace> SQLTraceFrequencyComparator
-
-
Constructor Detail
-
SQLTrace
public SQLTrace(String query, int numExecutions, long time)
-
-
Method Detail
-
getQueryName
public String getQueryName()
Get the value of queryName- Returns:
- the value of queryName
-
setQueryName
public void setQueryName(String queryName)
Set the value of queryName- Parameters:
queryName
- new value of queryName
-
getNumExecutions
public int getNumExecutions()
Get the value of numExecutions- Returns:
- the value of numExecutions
-
setNumExecutions
public void setNumExecutions(int numExecutions)
Set the value of numExecutions- Parameters:
numExecutions
- new value of numExecutions
-
getLastUsageTime
public long getLastUsageTime()
Get the value of lastUsageTime- Returns:
- the value of lastUsageTime
-
setLastUsageTime
public void setLastUsageTime(long lastUsageTime)
Set the value of lastUsageTime- Parameters:
lastUsageTime
- new value of lastUsageTime
-
-