Class JKMasterDetailWebControllerWithOrmSupport<T extends JKBaseEntity>

Type Parameters:
T - Specifies the type of the master entity, which must extend JKBaseEntity.
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:
  • Constructor Details

    • JKMasterDetailWebControllerWithOrmSupport

      public JKMasterDetailWebControllerWithOrmSupport()
  • Method Details

    • addDetailController

      protected void addDetailController(JKWebControllerWithOrmSupport<?> detail)
      This method adds a detail controller to the list of associated detail controllers.
      Parameters:
      detail - Specifies the detail controller to add.
    • addDetailController

      public void addDetailController(String name)
      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 class JKWebControllerWithOrmSupport<T extends JKBaseEntity>
    • reset

      public String reset()
      This method resets the controller's state.
      Overrides:
      reset in class JKWebControllerWithOrmSupport<T extends JKBaseEntity>
      Returns:
      null.
    • setModel

      public void setModel(T model)
      This method sets the current ORM entity being managed to the provided one.
      Overrides:
      setModel in class JKWebControllerWithOrmSupport<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.