org.glassfish.api.jdbc
Class SQLTraceRecord

java.lang.Object
  extended by org.glassfish.api.jdbc.SQLTraceRecord
All Implemented Interfaces:
java.io.Serializable

public class SQLTraceRecord
extends java.lang.Object
implements java.io.Serializable

Information related to SQL operations executed by the applications are stored in this object. This trace record is used to log all the sql statements in a particular format.

Author:
Shalini M
See Also:
Serialized Form

Constructor Summary
SQLTraceRecord()
           
 
Method Summary
 java.lang.String getClassName()
          Gets the class name of the SQL query expressed as a String.
 java.lang.String getMethodName()
          Gets the method name that executed the SQL query.
 java.lang.Object[] getParams()
          Gets the parameters of the method that executed the SQL query.
 java.lang.String getPoolName()
          Gets the pool name in which the SQL statement is executed.
 long getThreadID()
          Gets the thread ID from which the SQL statement originated.
 java.lang.String getThreadName()
          Gets the thread Name from which the SQL statement originated.
 long getTimeStamp()
          Gets the time of execution of query.
 void setClassName(java.lang.String className)
          Sets the class name of the SQL query expressed as a String.
 void setMethodName(java.lang.String methodName)
          Sets the method name that executes the SQL query.
 void setParams(java.lang.Object[] params)
          Sets the parameters of the method that executed the SQL query.
 void setPoolName(java.lang.String poolName)
          Sets the poolName in which the SQL statement is executed.
 void setThreadID(long threadID)
          Sets the thread ID from which the SQL statement originated.
 void setThreadName(java.lang.String threadName)
          Sets the thread Name from which the SQL statement originated.
 void setTimeStamp(long timeStamp)
          Sets the time of execution of query.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLTraceRecord

public SQLTraceRecord()
Method Detail

getClassName

public java.lang.String getClassName()
Gets the class name of the SQL query expressed as a String.

Returns:
The class name of the SQL query expressed as a String.

setClassName

public void setClassName(java.lang.String className)
Sets the class name of the SQL query expressed as a String.

Parameters:
className - class name of the SQL query.

getMethodName

public java.lang.String getMethodName()
Gets the method name that executed the SQL query.

Returns:
methodName that executed the SQL query.

setMethodName

public void setMethodName(java.lang.String methodName)
Sets the method name that executes the SQL query.

Parameters:
methodName - that executes the SQL query.

getPoolName

public java.lang.String getPoolName()
Gets the pool name in which the SQL statement is executed.

Returns:
poolName in which the SQL statement is executed.

setPoolName

public void setPoolName(java.lang.String poolName)
Sets the poolName in which the SQL statement is executed.

Parameters:
poolName - in which the SQL statement is executed.

getThreadID

public long getThreadID()
Gets the thread ID from which the SQL statement originated.

Returns:
long threadID from which the SQL statement originated.

setThreadID

public void setThreadID(long threadID)
Sets the thread ID from which the SQL statement originated.

Parameters:
threadID - from which the SQL statement originated.

getThreadName

public java.lang.String getThreadName()
Gets the thread Name from which the SQL statement originated.

Returns:
String threadName from which the SQL statement originated.

setThreadName

public void setThreadName(java.lang.String threadName)
Sets the thread Name from which the SQL statement originated.

Parameters:
threadName - from which the SQL statement originated.

getTimeStamp

public long getTimeStamp()
Gets the time of execution of query.

Returns:
long timeStamp of execution of query.

setTimeStamp

public void setTimeStamp(long timeStamp)
Sets the time of execution of query.

Parameters:
timeStamp - of execution of query.

getParams

public java.lang.Object[] getParams()
Gets the parameters of the method that executed the SQL query. Includes information like SQL query, arguments and so on.

Returns:
Object[] params method parameters that execute SQL query.

setParams

public void setParams(java.lang.Object[] params)
Sets the parameters of the method that executed the SQL query. Includes information like SQL query, arguments and so on.

Parameters:
params - method parameters that execute SQL query.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 GlassFish Community. All Rights Reserved.