Class SqlEvent

java.lang.Object
org.kawanfw.sql.api.server.SqlEvent

public class SqlEvent
extends Object
Allows to get all details of a SQL event asked by the client side.
Since:
9.0
Author:
Nicolas de Pomereu
  • Method Details

    • getUsername

      public String getUsername()
      Returns the client username that asked for the SQL request.
      Returns:
      the client username that asked for the SQL request
    • getDatabase

      public String getDatabase()
      Returns the database name.
      Returns:
      the database name
    • getIpAddress

      public String getIpAddress()
      Returns the IP address of the client user.
      Returns:
      the IP address of the client user
    • getSql

      public String getSql()
      Returns the SQL statement to execute.
      Returns:
      the SQL statement to execute
    • isPreparedStatement

      public boolean isPreparedStatement()
      Returns true if the statement is a PreparedStatement, else false.
      Returns:
      true if the statement is a PreparedStatement, else false
    • getParameterValues

      public List<Object> getParameterValues()
      Returns the parameter values of a prepared statement in the natural order, empty list for a (non prepared) statement.
      Returns:
      the parameter values of a prepared statement in the natural order, empty list for a (non prepared) statement
    • getParameterStringValues

      public List<String> getParameterStringValues()
      Returns the parameter String values of a prepared statement in the natural order, empty list for a (non prepared) statement.
      Returns:
      the parameter String values of a prepared statement in the natural order, empty list for a (non prepared) statement
    • isMetadataQuery

      public boolean isMetadataQuery()
      Says if the SQL event is a special Metadata query.
      Returns:
      true if the SQL event is a special Metadata query, else false
    • toString

      public String toString()
      Overrides:
      toString in class Object