Class JKQueryLogRecord

java.lang.Object
com.jk.data.dataaccess.core.JKQueryLogRecord

public class JKQueryLogRecord extends Object
This class represents a record of a logged database query execution.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Summary

    Constructors
    Constructor
    Description
    JKQueryLogRecord(String query, long duration, long duration2, String caller)
    This method constructs a new with the provided parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    This 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.
    This method gets the SQL query that was executed.
    void
    setCaller(String caller)
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JKQueryLogRecord

      public JKQueryLogRecord(String query, long duration, long duration2, String caller)
      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

      public String getQuery()
      This method gets the SQL query that was executed.
      Returns:
      the SQL query that was executed.
    • setQuery

      public void setQuery(String query)
      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

      public String 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

      public void setCaller(String caller)
      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.