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)
      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
    • toString

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