Class MProjectType

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

public class MProjectType extends X_C_ProjectType implements ImmutablePOSupport
Project Type Model
Version:
$Id: MProjectType.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MProjectType

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

      public MProjectType(Properties ctx, int C_ProjectType_ID, String trxName)
      Standrad Constructor
      Parameters:
      ctx - context
      C_ProjectType_ID - id
      trxName - trx
    • MProjectType

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

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

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

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

    • get

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

      public static MProjectType get(Properties ctx, int C_ProjectType_ID)
      Get MProjectType from Cache (immutable)
      Parameters:
      ctx - context
      C_ProjectType_ID - id
      Returns:
      MProjectType
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_ProjectType
      Returns:
      info
    • getPhases

      public MProjectTypePhase[] getPhases()
      Get Project Type Phases
      Returns:
      Array of MProjectTypePhase
    • getSqlPI

      public String getSqlPI(MGoalRestriction[] restrictions, String MeasureScope, String MeasureDataType, Timestamp reportDate, MRole role)
      Get SQL for Performance Indicator
      Parameters:
      restrictions - array of goal restrictions
      MeasureScope - measurement display scope (MGoal.MEASUREDISPLAY_*)
      MeasureDataType - measurement data type (MMeasure.MEASUREDATATYPE_*)
      reportDate - optional report date, null to use current date
      role - role
      Returns:
      SQL for performance indicator
    • getSqlBarChart

      public String getSqlBarChart(MGoalRestriction[] restrictions, String MeasureDisplay, String MeasureDataType, Timestamp startDate, MRole role)
      Get SQL for bar chart
      Parameters:
      restrictions - array of goal restrictions
      MeasureDisplay - measurement display scope (MGoal.MEASUREDISPLAY_*)
      MeasureDataType - measurement data type (MMeasure.MEASUREDATATYPE_*)
      startDate - optional report start date
      role - role
      Returns:
      SQL for Bar Chart
    • getQuery

      public MQuery getQuery(MGoalRestriction[] restrictions, String MeasureDisplay, Timestamp date, int C_Phase_ID, MRole role)
      Get Zoom Query
      Parameters:
      restrictions - restrictions
      MeasureDisplay - display
      date - date
      C_Phase_ID - phase
      role - role
      Returns:
      query
    • markImmutable

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