Class MPeriodControl

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

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

    • MPeriodControl

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

      public MPeriodControl(Properties ctx, int C_PeriodControl_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      C_PeriodControl_ID - 0
      trxName - transaction
    • MPeriodControl

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

      public MPeriodControl(MPeriod period, String DocBaseType)
      Parent Constructor
      Parameters:
      period - parent
      DocBaseType - doc base type
    • MPeriodControl

      public MPeriodControl(Properties ctx, int AD_Client_ID, int C_Period_ID, String DocBaseType, String trxName)
      New Constructor
      Parameters:
      ctx - context
      AD_Client_ID - client
      C_Period_ID - period
      DocBaseType - doc base type
      trxName - transaction
    • MPeriodControl

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

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

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

    • isOpen

      public boolean isOpen()
      Is Open
      Returns:
      true if open
    • isOpen

      public boolean isOpen(boolean forPosting)
      Is Open
      Parameters:
      forPosting - - true to check if the period is open for posting, false is for DocAction
      Returns:
      true if open
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_PeriodControl
      Returns:
      info
    • markImmutable

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