Class MMenu

    • Constructor Detail

      • MMenu

        public MMenu​(Properties ctx,
                     MMenu copy)
        Parameters:
        ctx -
        copy -
      • MMenu

        public MMenu​(Properties ctx,
                     MMenu copy,
                     String trxName)
        Parameters:
        ctx -
        copy -
        trxName -
      • MMenu

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

        public MMenu​(Properties ctx,
                     ResultSet rs,
                     String trxName)
        Load Contrusctor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
    • Method Detail

      • get

        public static MMenu get​(int AD_Menu_ID)
        Get Menu method from cache
        Parameters:
        AD_Menu_ID - menu id
      • get

        public static MMenu get​(Properties ctx,
                                int AD_Menu_ID)
        Get Menu method from cache
        Parameters:
        ctx -
        AD_Menu_ID - menu id
      • get

        public static MMenu[] get​(Properties ctx,
                                  String whereClause)
        Deprecated.
        Get menues with where clause
        Parameters:
        ctx - context
        whereClause - where clause w/o the actual WHERE
        Returns:
        MMenu
      • get

        public static MMenu[] get​(Properties ctx,
                                  String whereClause,
                                  String trxName)
        Get menues with where clause
        Parameters:
        ctx - context
        whereClause - where clause w/o the actual WHERE
        trxName - transaction
        Returns:
        MMenu
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • afterDelete

        protected boolean afterDelete​(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success -
        Returns:
        deleted
      • getMenu_ID

        public static int getMenu_ID​(String menuName)
        FR [ 1966326 ] get Menu ID
        Parameters:
        menuName - String Menu Name
        Returns:
        int retValue