Class MAchievement

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

public class MAchievement extends X_PA_Achievement
Performance Achievement
Version:
$Id: MAchievement.java,v 1.2 2006/07/30 00:51:02 jjanke Exp $ red1 - [ 2214883 ] Remove SQL code and Replace for Query
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MAchievement

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

      public MAchievement(Properties ctx, int PA_Achievement_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      PA_Achievement_ID - id
      trxName - trx
    • MAchievement

      public MAchievement(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - trx
  • Method Details

    • get

      public static MAchievement[] get(MMeasure measure)
      Get achieved Achievements Of Measure
      Parameters:
      measure - Measure
      Returns:
      array of Achievements
    • getOfMeasure

      public static MAchievement[] getOfMeasure(Properties ctx, int PA_Measure_ID)
      Get achieved Achievements Of Measure
      Parameters:
      ctx - context
      PA_Measure_ID - measure id
      Returns:
      array of Achievements
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_PA_Achievement
      Returns:
      info
    • 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