Class JKWebControllerWithSqlDataAccess

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JKWebControllerWithOrmSupport

public class JKWebControllerWithSqlDataAccess extends JKWebAppBaseController
This class extends the JKWebAppBaseController and provides additional functionality for working with SQL data access.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
See Also:
  • Field Details

    • sqlDataAccess

      protected JKDataAccessService sqlDataAccess
      Represents the SQL data access service for executing SQL queries.
  • Constructor Details

    • JKWebControllerWithSqlDataAccess

      public JKWebControllerWithSqlDataAccess()
  • Method Details

    • execute

      protected void execute(String query, Object... params)
      This method executes an SQL query with the given parameters using the SQL data access service.
      Parameters:
      query - Specifies the SQL query to execute.
      params - Specifies the parameters to bind to the query.
    • getSqlDataAccess

      public JKDataAccessService getSqlDataAccess()
      This method gets the SQL data access service used for executing SQL queries.
      Returns:
      the SQL data access service.