Class MUserDefProc

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_UserDef_Proc, I_Persistent, Evaluatee, ImmutablePOSupport

public class MUserDefProc extends X_AD_UserDef_Proc implements ImmutablePOSupport
User, role, organization or tenant overrides of process model
Author:
raphael.gildo (devCoffee, www.devcoffee.com.br)
See Also:
  • Constructor Details

    • MUserDefProc

      public MUserDefProc(Properties ctx, String AD_UserDef_Proc_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_UserDef_Proc_UU - UUID key
      trxName - Transaction
    • MUserDefProc

      public MUserDefProc(Properties ctx, int AD_UserDef_Proc_ID, String trxName)
      Parameters:
      ctx -
      AD_UserDef_Proc_ID -
      trxName -
    • MUserDefProc

      public MUserDefProc(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MUserDefProc

      public MUserDefProc(MUserDefProc copy)
      Copy constructor
      Parameters:
      copy -
    • MUserDefProc

      public MUserDefProc(Properties ctx, MUserDefProc copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MUserDefProc

      public MUserDefProc(Properties ctx, MUserDefProc copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • getBestMatch

      public static MUserDefProc getBestMatch(Properties ctx, int AD_Process_ID)
      Get best matching MUserDefProc for a process
      Parameters:
      ctx -
      AD_Process_ID -
      Returns:
      MUserDefProc or null
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved
    • beforeDelete

      protected boolean beforeDelete()
      Description copied from class: PO
      Execute before Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted
    • markImmutable

      public MUserDefProc markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO