Class MCalendar

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

public class MCalendar extends X_C_Calendar implements ImmutablePOSupport
Calendar Model
Version:
$Id: MCalendar.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MCalendar

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

      public MCalendar(Properties ctx, int C_Calendar_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      C_Calendar_ID - id
      trxName - transaction
    • MCalendar

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

      public MCalendar(MClient client)
      Parent Constructor
      Parameters:
      client - parent
    • MCalendar

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

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

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

    • get

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

      public static MCalendar get(Properties ctx, int C_Calendar_ID)
      Get MCalendar from Cache (immutable)
      Parameters:
      ctx - context
      C_Calendar_ID - id
      Returns:
      MCalendar
    • getCopy

      public static MCalendar getCopy(Properties ctx, int C_Calendar_ID, String trxName)
      Get updateable copy of MCalendar from cache
      Parameters:
      ctx -
      C_Calendar_ID -
      trxName -
      Returns:
      MCalendar
    • getDefault

      public static MCalendar getDefault(Properties ctx, int AD_Client_ID)
      Get Default Calendar for Client
      Parameters:
      ctx - context
      AD_Client_ID - id
      Returns:
      MCalendar
    • getDefault

      public static MCalendar getDefault(Properties ctx)
      Get Default Calendar for Client
      Parameters:
      ctx - context
      Returns:
      MCalendar
    • createYear

      public MYear createYear(Locale locale)
      Create and save (current) calendar year and periods
      Parameters:
      locale - locale
      Returns:
      new MYear instance
    • markImmutable

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