Package com.jk.webstack.controllers
Class JKMasterDetailWebControllerWithOrmSupport<T extends JKBaseEntity>
java.lang.Object
com.jk.web.faces.controllers.JKWebController
com.jk.webstack.controllers.JKWebAppBaseController
com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
com.jk.webstack.controllers.JKWebControllerWithOrmSupport<T>
com.jk.webstack.controllers.JKMasterDetailWebControllerWithOrmSupport<T>
- Type Parameters:
T
- Specifies the type of the master entity, which must extendJKBaseEntity
.
- All Implemented Interfaces:
Serializable
public class JKMasterDetailWebControllerWithOrmSupport<T extends JKBaseEntity>
extends JKWebControllerWithOrmSupport<T>
This class is an extension of
JKWebControllerWithOrmSupport
designed
to handle master-detail scenarios in a web application with support for
Object-Relational Mapping (ORM).- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
- See Also:
-
Field Summary
Fields inherited from class com.jk.webstack.controllers.JKWebControllerWithOrmSupport
mode
Fields inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
sqlDataAccess
Fields inherited from class com.jk.web.faces.controllers.JKWebController
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDetailController
(JKWebControllerWithOrmSupport<?> detail) This method adds a detail controller to the list of associated detail controllers.void
addDetailController
(String name) This method adds a detail controller to the list of associated detail controllers by evaluating an expression.protected void
This method filters detail entities based on the currently selected master entity.protected void
This method performs post-construction initialization of the web controller.reset()
This method resets the controller's state.void
This method sets the current ORM entity being managed to the provided one.Methods inherited from class com.jk.webstack.controllers.JKWebControllerWithOrmSupport
add, addToDatabase, afterDelete, afterFind, afterInsert, afterUpdate, approvePayload, beforeDelete, beforeFind, beforeInsert, beforeUpdate, cancelEdit, createEmptyModel, delete, deleteFromDatabase, duplicate, edit, fill, find, findPayload, getDataAccess, getDataList, getDataListFilter, getEmptyModel, getFilterList, getFilterList2, getIdValue, getIdValue, getMode, getModel, getModelClass, getModelList, getModelListFilter, getOriginal, getPayload, getPayloads, getWorkflowEntityName, isAllowAdd, isAllowDelete, isAllowEdit, isAllowFill, isAllowReset, isAllowSave, isAlwaysRefreshList, isConfirmReeset, isEditMode, isEditTabular, isFieldModified, isInputDisabled, isReadOnlyMode, isWorkflowAvialable, rejectPayload, resetData, resetWorkFlow, save, saveAll, saveAllToDatabase, saveToDatabase, setAlwaysRefreshList, setConfirmReeset, setDataList, setDataListFilter, setEditTabular, setFilterList, setFilterList2, setIdValue, setModelListFilter, setOriginal, setPayload, setPayloads, viewPayload
Methods inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
execute, getSqlDataAccess
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, redirect, request, session, showErrorDialogMessage, showInfoDialogMessage, showWarningDialogMessage, success, success, suggestName, updateUi, warning
-
Constructor Details
-
JKMasterDetailWebControllerWithOrmSupport
public JKMasterDetailWebControllerWithOrmSupport()
-
-
Method Details
-
addDetailController
This method adds a detail controller to the list of associated detail controllers.- Parameters:
detail
- Specifies the detail controller to add.
-
addDetailController
This method adds a detail controller to the list of associated detail controllers by evaluating an expression.- Parameters:
name
- Specifies the name of the detail controller to evaluate and add.
-
postConstruct
protected void postConstruct()This method performs post-construction initialization of the web controller.It initializes the model class, controller mode, and checks if workflow is available.
- Overrides:
postConstruct
in classJKWebControllerWithOrmSupport<T extends JKBaseEntity>
-
reset
This method resets the controller's state.- Overrides:
reset
in classJKWebControllerWithOrmSupport<T extends JKBaseEntity>
- Returns:
- null.
-
setModel
This method sets the current ORM entity being managed to the provided one.- Overrides:
setModel
in classJKWebControllerWithOrmSupport<T extends JKBaseEntity>
- Parameters:
model
- Specifies the new current ORM entity being managed.
-
filterDetail
protected void filterDetail()This method filters detail entities based on the currently selected master entity.
-