Class MMeasure

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

public class MMeasure extends X_PA_Measure implements ImmutablePOSupport
Performance Measure
Version:
$Id: MMeasure.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1887674 ] Deadlock when try to modify PA Goal's Measure Target, victor.perez@e-evolution.com, www.e-evolution.com
  • FR [ 2905227 ] Calculate Measure based on the script to PA
  • https://sourceforge.net/p/adempiere/feature-requests/888/
  • See Also:
    • Constructor Details

      • MMeasure

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

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

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

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

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

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

      • get

        public static MMeasure get(int PA_Measure_ID)
        Get MMeasure from Cache (immutable)
        Parameters:
        PA_Measure_ID - id
        Returns:
        MMeasure
      • get

        public static MMeasure get(Properties ctx, int PA_Measure_ID)
        Get MMeasure from Cache (immutable)
        Parameters:
        ctx - context
        PA_Measure_ID - id
        Returns:
        MMeasure
      • getGraphColumnList

        public ArrayList<GraphColumn> getGraphColumnList(MGoal goal)
        Get chart columns
        Parameters:
        goal -
        Returns:
        list of GraphColumn
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_PA_Measure
        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
      • updateGoals

        public boolean updateGoals()
        Update Goals
        Returns:
        true if updated
      • markImmutable

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