Class MHierarchy

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

public class MHierarchy extends X_PA_Hierarchy implements ImmutablePOSupport
Reporting Hierarchy Model
Version:
$Id: MHierarchy.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MHierarchy

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

      public MHierarchy(Properties ctx, int PA_Hierarchy_ID, String trxName)
      Default Constructor
      Parameters:
      ctx - context
      PA_Hierarchy_ID - id
      trxName - trx
    • MHierarchy

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

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

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

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

    • get

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

      public static MHierarchy get(Properties ctx, int PA_Hierarchy_ID)
      Get MHierarchy (Immutable) from Cache
      Parameters:
      ctx - context
      PA_Hierarchy_ID - id
      Returns:
      MHierarchy
    • getAD_Tree_ID

      public int getAD_Tree_ID(String TreeType)
      Get AD_Tree_ID based on tree type
      Parameters:
      TreeType - Tree Type (MTree.TREETYPE_*)
      Returns:
      id or 0
    • markImmutable

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