Class MAlertRule

    • Constructor Detail

      • MAlertRule

        public MAlertRule​(Properties ctx,
                          int AD_AlertRule_ID,
                          String trxName)
        Standatd Constructor
        Parameters:
        ctx - context
        AD_AlertRule_ID - id
        trxName - transaction
      • MAlertRule

        public MAlertRule​(Properties ctx,
                          ResultSet rs,
                          String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
    • Method Detail

      • getParent

        public MAlert getParent()
        Get parent
        Returns:
        parent alert
      • setParent

        public void setParent​(MAlert alert)
        Set parent alert. NOTE: is not setting AD_Alert_ID
        Parameters:
        alert -
      • getSql

        public String getSql​(boolean applySecurity)
        Get Sql
        Parameters:
        applySecurity - apply role/client security
        Returns:
        sql
      • createReportFile

        public File createReportFile​(String extension)
        Create Report File
        Parameters:
        extension - file extension
        Returns:
        newly created File
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success
      • afterDelete

        protected boolean afterDelete​(boolean success)
        Description copied from class: PO
        Executed after Delete operation.
        Overrides:
        afterDelete in class PO
        Parameters:
        success - true if record deleted
        Returns:
        true if delete is a success