Class MCalendar

    • Constructor Detail

      • 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)
        Parameters:
        copy -
    • Method Detail

      • 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 (current) Calendar Year
        Parameters:
        locale - locale
        Returns:
        The Year