Package com.jk.data.dataaccess.core
Class JKQueryLogRecord
java.lang.Object
com.jk.data.dataaccess.core.JKQueryLogRecord
This class represents a record of a logged database query execution.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionJKQueryLogRecord
(String query, long duration, long duration2, String caller) This method constructs a new with the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method gets the identifier of the caller or source of the query.long
This method gets the execution duration of the query in milliseconds.long
This method gets the duration value associated with the query in milliseconds.getQuery()
This method gets the SQL query that was executed.void
This method sets the identifier of the caller or source of the query.void
setDuration
(long duration) This method sets the execution duration of the query in milliseconds.void
setDuration2
(long duration2) This method sets the duration value associated with the query in milliseconds.void
This method sets the SQL query that was executed.
-
Constructor Details
-
JKQueryLogRecord
This method constructs a new with the provided parameters.- Parameters:
query
- Specifies the SQL query that was executed.duration
- Specifies the the execution duration of the query in milliseconds.duration2
- Specifies another duration value associated with the query in milliseconds.caller
- Specifies the identifier of the caller or source of the query.
-
-
Method Details
-
getQuery
This method gets the SQL query that was executed.- Returns:
- the SQL query that was executed.
-
setQuery
This method sets the SQL query that was executed.- Parameters:
query
- Specifies the new SQL query that was executed.
-
getDuration
public long getDuration()This method gets the execution duration of the query in milliseconds.- Returns:
- the execution duration of the query in milliseconds.
-
setDuration
public void setDuration(long duration) This method sets the execution duration of the query in milliseconds.- Parameters:
duration
- Specifies the new execution duration of the query in milliseconds.
-
getCaller
This method gets the identifier of the caller or source of the query.- Returns:
- the identifier of the caller or source of the query.
-
setCaller
This method sets the identifier of the caller or source of the query.- Parameters:
caller
- Specifies the new identifier of the caller or source of the query.
-
getDuration2
public long getDuration2()This method gets the duration value associated with the query in milliseconds.- Returns:
- the duration value associated with the query in milliseconds.
-
setDuration2
public void setDuration2(long duration2) This method sets the duration value associated with the query in milliseconds.- Parameters:
duration2
- Specifies the new duration value associated with the query in milliseconds.
-