Class ProcedureContextHelper

java.lang.Object
com.apgar.common.lib.procedure.ProcedureContextHelper

public class ProcedureContextHelper extends Object
Allows saving all 3 parameters of the procedure context to execute the procedure, then restores their values
Author:
APGAR Consulting
  • Constructor Details

    • ProcedureContextHelper

      public ProcedureContextHelper(ProcedureContext procedureContext)
      ProcedureContextHelper Constructor
      Parameters:
      procedureContext - ProcedureContext
  • Method Details

    • doInactiveAll

      public void doInactiveAll()
      Gives all rights to the procedureContext
    • doRestoreAll

      public void doRestoreAll()
      Allows the restoring of the parameters' values
    • doInactive

      public void doInactive(boolean historyActivation, boolean allPrivileges, boolean triggerActivation)
      Sets the parameters of the procedureContext as per the method's arguments
      Parameters:
      historyActivation - boolean
      allPrivileges - boolean
      triggerActivation - boolean
    • setHistoryActivation

      public void setHistoryActivation(boolean historyActivation)
      Set the historyActivation parameter
      Parameters:
      historyActivation - the historyActivation to set
    • setAllPrivileges

      public void setAllPrivileges(boolean allPrivileges)
      Set the setAllPrivileges parameter
      Parameters:
      allPrivileges - the allPrivileges to set
    • setTriggerActivation

      public void setTriggerActivation(boolean triggerActivation)
      Set the triggerActivation parameter
      Parameters:
      triggerActivation - the triggerActivation to set