/****************************************************************************** * Product: iDempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * * with this program, if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ /** Generated Model - DO NOT CHANGE */ package org.compiere.model; import java.sql.ResultSet; import java.util.Properties; import org.compiere.util.KeyNamePair; /** Generated Model for AD_Menu * @author iDempiere (generated) * @version Release 11 - $Id$ */ @org.adempiere.base.Model(table="AD_Menu") public class X_AD_Menu extends PO implements I_AD_Menu, I_Persistent { /** * */ private static final long serialVersionUID = 20231222L; /** Standard Constructor */ public X_AD_Menu (Properties ctx, int AD_Menu_ID, String trxName) { super (ctx, AD_Menu_ID, trxName); /** if (AD_Menu_ID == 0) { setAD_Menu_ID (0); setEntityType (null); // @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual setIsReadOnly (false); // N setIsSOTrx (true); // Y setIsSummary (false); setName (null); } */ } /** Standard Constructor */ public X_AD_Menu (Properties ctx, int AD_Menu_ID, String trxName, String ... virtualColumns) { super (ctx, AD_Menu_ID, trxName, virtualColumns); /** if (AD_Menu_ID == 0) { setAD_Menu_ID (0); setEntityType (null); // @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual setIsReadOnly (false); // N setIsSOTrx (true); // Y setIsSummary (false); setName (null); } */ } /** Standard Constructor */ public X_AD_Menu (Properties ctx, String AD_Menu_UU, String trxName) { super (ctx, AD_Menu_UU, trxName); /** if (AD_Menu_UU == null) { setAD_Menu_ID (0); setEntityType (null); // @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual setIsReadOnly (false); // N setIsSOTrx (true); // Y setIsSummary (false); setName (null); } */ } /** Standard Constructor */ public X_AD_Menu (Properties ctx, String AD_Menu_UU, String trxName, String ... virtualColumns) { super (ctx, AD_Menu_UU, trxName, virtualColumns); /** if (AD_Menu_UU == null) { setAD_Menu_ID (0); setEntityType (null); // @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual setIsReadOnly (false); // N setIsSOTrx (true); // Y setIsSummary (false); setName (null); } */ } /** Load Constructor */ public X_AD_Menu (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** AccessLevel * @return 4 - System */ protected int get_AccessLevel() { return accessLevel.intValue(); } /** Load Meta Data */ protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuilder sb = new StringBuilder ("X_AD_Menu[") .append(get_ID()).append(",Name=").append(getName()).append("]"); return sb.toString(); } /** Action AD_Reference_ID=104 */ public static final int ACTION_AD_Reference_ID=104; /** Workbench = B */ public static final String ACTION_Workbench = "B"; /** Detail = D */ public static final String ACTION_Detail = "D"; /** WorkFlow = F */ public static final String ACTION_WorkFlow = "F"; /** Info = I */ public static final String ACTION_Info = "I"; /** Process = P */ public static final String ACTION_Process = "P"; /** Report = R */ public static final String ACTION_Report = "R"; /** Task = T */ public static final String ACTION_Task = "T"; /** Window = W */ public static final String ACTION_Window = "W"; /** Form = X */ public static final String ACTION_Form = "X"; /** Set Action. @param Action Indicates the Action to be performed */ public void setAction (String Action) { set_Value (COLUMNNAME_Action, Action); } /** Get Action. @return Indicates the Action to be performed */ public String getAction() { return (String)get_Value(COLUMNNAME_Action); } public org.compiere.model.I_AD_Form getAD_Form() throws RuntimeException { return (org.compiere.model.I_AD_Form)MTable.get(getCtx(), org.compiere.model.I_AD_Form.Table_ID) .getPO(getAD_Form_ID(), get_TrxName()); } /** Set Special Form. @param AD_Form_ID Special Form */ public void setAD_Form_ID (int AD_Form_ID) { if (AD_Form_ID < 1) set_Value (COLUMNNAME_AD_Form_ID, null); else set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); } /** Get Special Form. @return Special Form */ public int getAD_Form_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_InfoWindow getAD_InfoWindow() throws RuntimeException { return (org.compiere.model.I_AD_InfoWindow)MTable.get(getCtx(), org.compiere.model.I_AD_InfoWindow.Table_ID) .getPO(getAD_InfoWindow_ID(), get_TrxName()); } /** Set Info Window. @param AD_InfoWindow_ID Info and search/select Window */ public void setAD_InfoWindow_ID (int AD_InfoWindow_ID) { if (AD_InfoWindow_ID < 1) set_Value (COLUMNNAME_AD_InfoWindow_ID, null); else set_Value (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID)); } /** Get Info Window. @return Info and search/select Window */ public int getAD_InfoWindow_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoWindow_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Menu. @param AD_Menu_ID Identifies a Menu */ public void setAD_Menu_ID (int AD_Menu_ID) { if (AD_Menu_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, Integer.valueOf(AD_Menu_ID)); } /** Get Menu. @return Identifies a Menu */ public int getAD_Menu_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Menu_ID); if (ii == null) return 0; return ii.intValue(); } /** Set AD_Menu_UU. @param AD_Menu_UU AD_Menu_UU */ public void setAD_Menu_UU (String AD_Menu_UU) { set_Value (COLUMNNAME_AD_Menu_UU, AD_Menu_UU); } /** Get AD_Menu_UU. @return AD_Menu_UU */ public String getAD_Menu_UU() { return (String)get_Value(COLUMNNAME_AD_Menu_UU); } public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException { return (org.compiere.model.I_AD_Process)MTable.get(getCtx(), org.compiere.model.I_AD_Process.Table_ID) .getPO(getAD_Process_ID(), get_TrxName()); } /** Set Process. @param AD_Process_ID Process or Report */ public void setAD_Process_ID (int AD_Process_ID) { if (AD_Process_ID < 1) set_Value (COLUMNNAME_AD_Process_ID, null); else set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); } /** Get Process. @return Process or Report */ public int getAD_Process_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_Task getAD_Task() throws RuntimeException { return (org.compiere.model.I_AD_Task)MTable.get(getCtx(), org.compiere.model.I_AD_Task.Table_ID) .getPO(getAD_Task_ID(), get_TrxName()); } /** Set OS Task. @param AD_Task_ID Operation System Task */ public void setAD_Task_ID (int AD_Task_ID) { if (AD_Task_ID < 1) set_Value (COLUMNNAME_AD_Task_ID, null); else set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); } /** Get OS Task. @return Operation System Task */ public int getAD_Task_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException { return (org.compiere.model.I_AD_Window)MTable.get(getCtx(), org.compiere.model.I_AD_Window.Table_ID) .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @param AD_Window_ID Data entry or display window */ public void setAD_Window_ID (int AD_Window_ID) { if (AD_Window_ID < 1) set_Value (COLUMNNAME_AD_Window_ID, null); else set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); } /** Get Window. @return Data entry or display window */ public int getAD_Window_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_Workflow getAD_Workflow() throws RuntimeException { return (org.compiere.model.I_AD_Workflow)MTable.get(getCtx(), org.compiere.model.I_AD_Workflow.Table_ID) .getPO(getAD_Workflow_ID(), get_TrxName()); } /** Set Workflow. @param AD_Workflow_ID Workflow or combination of tasks */ public void setAD_Workflow_ID (int AD_Workflow_ID) { if (AD_Workflow_ID < 1) set_Value (COLUMNNAME_AD_Workflow_ID, null); else set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); } /** Get Workflow. @return Workflow or combination of tasks */ public int getAD_Workflow_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription() { return (String)get_Value(COLUMNNAME_Description); } /** EntityType AD_Reference_ID=389 */ public static final int ENTITYTYPE_AD_Reference_ID=389; /** Set Entity Type. @param EntityType Dictionary Entity Type; Determines ownership and synchronization */ public void setEntityType (String EntityType) { set_Value (COLUMNNAME_EntityType, EntityType); } /** Get Entity Type. @return Dictionary Entity Type; Determines ownership and synchronization */ public String getEntityType() { return (String)get_Value(COLUMNNAME_EntityType); } /** Set Centrally maintained. @param IsCentrallyMaintained Information maintained in System Element table */ public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) { set_Value (COLUMNNAME_IsCentrallyMaintained, Boolean.valueOf(IsCentrallyMaintained)); } /** Get Centrally maintained. @return Information maintained in System Element table */ public boolean isCentrallyMaintained() { Object oo = get_Value(COLUMNNAME_IsCentrallyMaintained); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Read Only. @param IsReadOnly Field is read only */ public void setIsReadOnly (boolean IsReadOnly) { set_Value (COLUMNNAME_IsReadOnly, Boolean.valueOf(IsReadOnly)); } /** Get Read Only. @return Field is read only */ public boolean isReadOnly() { Object oo = get_Value(COLUMNNAME_IsReadOnly); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Sales Transaction. @param IsSOTrx This is a Sales Transaction */ public void setIsSOTrx (boolean IsSOTrx) { set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); } /** Get Sales Transaction. @return This is a Sales Transaction */ public boolean isSOTrx() { Object oo = get_Value(COLUMNNAME_IsSOTrx); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Summary Level. @param IsSummary This is a summary entity */ public void setIsSummary (boolean IsSummary) { set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); } /** Get Summary Level. @return This is a summary entity */ public boolean isSummary() { Object oo = get_Value(COLUMNNAME_IsSummary); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName() { return (String)get_Value(COLUMNNAME_Name); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); } /** Set Predefined Context Variables. @param PredefinedContextVariables Predefined context variables to inject when opening a menu entry or a window */ public void setPredefinedContextVariables (String PredefinedContextVariables) { set_Value (COLUMNNAME_PredefinedContextVariables, PredefinedContextVariables); } /** Get Predefined Context Variables. @return Predefined context variables to inject when opening a menu entry or a window */ public String getPredefinedContextVariables() { return (String)get_Value(COLUMNNAME_PredefinedContextVariables); } }