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
modeFields inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
sqlDataAccessFields inherited from class com.jk.web.faces.controllers.JKWebController
logger - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDetailController(JKWebControllerWithOrmSupport<?> detail) This method adds a detail controller to the list of associated detail controllers.voidaddDetailController(String name) This method adds a detail controller to the list of associated detail controllers by evaluating an expression.protected voidThis method filters detail entities based on the currently selected master entity.protected voidThis method performs post-construction initialization of the web controller.reset()This method resets the controller's state.voidThis 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, viewPayloadMethods inherited from class com.jk.webstack.controllers.JKWebControllerWithSqlDataAccess
execute, getSqlDataAccessMethods inherited from class com.jk.webstack.controllers.JKWebAppBaseController
getActionLogName, getActionLogService, getEmail, getEmailService, getFamilyName, getFirstName, getIdToken, getUserName, isUserLoggedIn, logActionMethods 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:
 postConstructin classJKWebControllerWithOrmSupport<T extends JKBaseEntity>
 - 
reset
This method resets the controller's state.- Overrides:
 resetin classJKWebControllerWithOrmSupport<T extends JKBaseEntity>- Returns:
 - null.
 
 - 
setModel
This method sets the current ORM entity being managed to the provided one.- Overrides:
 setModelin 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. 
 -