Package com.jk.webstack.controllers
Class JKWebControllerWithSqlDataAccess
java.lang.Object
com.jk.web.faces.controllers.JKWebController
com.jk.webstack.controllers.JKWebAppBaseController
com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
JKWebControllerWithOrmSupport
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 Summary
FieldsModifier and TypeFieldDescriptionprotected JKDataAccessService
Represents the SQL data access service for executing SQL queries.Fields inherited from class com.jk.web.faces.controllers.JKWebController
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method executes an SQL query with the given parameters using the SQL data access service.This method gets the SQL data access service used for executing SQL queries.Methods inherited from class com.jk.webstack.controllers.JKWebAppBaseController
getActionLogName, getActionLogService, getEmail, getEmailService, getFamilyName, getFirstName, getIdToken, getUserName, isUserLoggedIn, logAction
Methods inherited from class com.jk.web.faces.controllers.JKWebController
context, error, error, executeAsyc, getContextParam, getContextPath, getFromAppliaction, getFromRequest, getFromSession, getParam, getParamterFromRequest, getRoles, getTenantId, getViewScopedManagedBean, handleException, init, isDebug, isDevelopmentMode, postConstruct, redirect, request, session, showErrorDialogMessage, showInfoDialogMessage, showWarningDialogMessage, success, success, suggestName, updateUi, warning
-
Field Details
-
sqlDataAccess
Represents the SQL data access service for executing SQL queries.
-
-
Constructor Details
-
JKWebControllerWithSqlDataAccess
public JKWebControllerWithSqlDataAccess()
-
-
Method Details
-
execute
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
This method gets the SQL data access service used for executing SQL queries.- Returns:
- the SQL data access service.
-