Class MMenu

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

public class MMenu extends X_AD_Menu implements ImmutablePOSupport
Application Menu Model
Version:
$Id: MMenu.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com see FR [ 1966326 ] Is necessary create method to get ID menu use menu Name https://sourceforge.net/p/adempiere/feature-requests/426/, red1 - FR: [ 2214883 ] Remove SQL code and Replace for Query
See Also:
  • Constructor Details

    • 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, String AD_Menu_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_Menu_UU - UUID key
      trxName - Transaction
    • 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 Details

    • get

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

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

      @Deprecated public static MMenu[] get(Properties ctx, String whereClause)
      Deprecated.
      Get menus 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 menus with where clause
      Parameters:
      ctx - context
      whereClause - where clause w/o the actual WHERE
      trxName - transaction
      Returns:
      array of 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 - Menu Name
      Returns:
      AD_Menu_ID or 0 (not found) or -1 (has error)
    • markImmutable

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

      public String getDisplayedName()
      Returns:
      name using UserDef module ; if nothing is defined, fallback to the translated name