Class MAlertRule

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

public class MAlertRule extends X_AD_AlertRule
Alert Rule Model
Version:
$Id: MAlertRule.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MAlertRule

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

      public MAlertRule(Properties ctx, int AD_AlertRule_ID, String trxName)
      Standard 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 Details

    • 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()
      Deprecated.
      Use getSql(boolean) instead
      Get Sql
      Returns:
      sql
    • getSql

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

      public File createReportFile(String extension)
      Create Empty Report File
      Parameters:
      extension - file extension
      Returns:
      newly created File
    • 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
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - true if it is a 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
      Execute after Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_AlertRule
      Returns:
      info