Class MRecentItem

    • Constructor Detail

      • MRecentItem

        public MRecentItem​(Properties ctx,
                           int AD_RecentItem_ID,
                           String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_RecentItem_ID - id
        trxName - transaction
      • MRecentItem

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

        public MRecentItem​(MRecentItem copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MRecentItem get​(Properties ctx,
                                      int AD_RecentItem_ID)
        Get from Cache using ID (immutable)
        Parameters:
        ctx - context
        AD_RecentItem_ID - id
        Returns:
        recent item
      • getCopy

        public static MRecentItem getCopy​(Properties ctx,
                                          int AD_RecentItem_ID,
                                          String trxName)
        Get updateable copy of MRecentItem from cache
        Parameters:
        ctx -
        AD_RecentItem_ID -
        trxName -
        Returns:
        MRecentItem
      • get

        public static MRecentItem get​(Properties ctx,
                                      int AD_Table_ID,
                                      int Record_ID,
                                      int AD_User_ID)
        Get Recent Item from Cache using table+recordID (immutable)
        Parameters:
        ctx - context
        AD_Table_ID - tableID
        Record_ID - recordID
        Returns:
        recent item
      • addModifiedField

        public static void addModifiedField​(Properties ctx,
                                            int AD_Table_ID,
                                            int Record_ID,
                                            int AD_User_ID,
                                            int AD_Role_ID,
                                            int AD_Window_ID,
                                            int AD_Tab_ID)
      • publishChangedEvent

        public static void publishChangedEvent​(int AD_User_ID)
      • postOnChangedEvent

        public static void postOnChangedEvent​(int AD_User_ID)
      • touchUpdatedRecord

        public static void touchUpdatedRecord​(Properties ctx,
                                              int AD_Table_ID,
                                              int Record_ID,
                                              int AD_User_ID)
      • delete

        public boolean delete​(boolean force)
        Description copied from class: PO
        Delete Current Record
        Overrides:
        delete in class PO
        Parameters:
        force - delete also processed records
        Returns:
        true if deleted
      • getLabel

        public String getLabel()
      • clearLabel

        public static void clearLabel​(int AD_Table_ID,
                                      int Record_ID)
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class X_AD_RecentItem
        Returns:
        String representation