Initial commit of Posterita
This commit is contained in:
parent
ad6570afef
commit
b88361ab8c
|
@ -0,0 +1,85 @@
|
||||||
|
/**********************************************************************
|
||||||
|
* This file is part of Adempiere ERP Bazaar *
|
||||||
|
* http://www.adempiere.org *
|
||||||
|
* *
|
||||||
|
* Copyright (C) Trifon Trifonov. *
|
||||||
|
* Copyright (C) Contributors *
|
||||||
|
* *
|
||||||
|
* This program is free software;
|
||||||
|
you can redistribute it and/or *
|
||||||
|
* modify it under the terms of the GNU General Public License *
|
||||||
|
* as published by the Free Software Foundation;
|
||||||
|
either version 2 *
|
||||||
|
* of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* 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., 51 Franklin Street, Fifth Floor, Boston, *
|
||||||
|
* MA 02110-1301, USA. *
|
||||||
|
* *
|
||||||
|
* Contributors: *
|
||||||
|
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
||||||
|
* *
|
||||||
|
* Sponsors: *
|
||||||
|
* - Company (http://www.site.com) *
|
||||||
|
**********************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for U_BlackListCheque
|
||||||
|
* @author Trifon Trifonov (generated)
|
||||||
|
* @version Release 3.3.0
|
||||||
|
*/
|
||||||
|
public interface I_U_BlackListCheque
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=U_BlackListCheque */
|
||||||
|
public static final String Table_Name = "U_BlackListCheque";
|
||||||
|
|
||||||
|
/** AD_Table_ID=52000 */
|
||||||
|
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name BankName */
|
||||||
|
public static final String COLUMNNAME_BankName = "BankName";
|
||||||
|
|
||||||
|
/** Set BankName */
|
||||||
|
public void setBankName (String BankName);
|
||||||
|
|
||||||
|
/** Get BankName */
|
||||||
|
public String getBankName();
|
||||||
|
|
||||||
|
/** Column name ChequeNo */
|
||||||
|
public static final String COLUMNNAME_ChequeNo = "ChequeNo";
|
||||||
|
|
||||||
|
/** Set ChequeNo */
|
||||||
|
public void setChequeNo (String ChequeNo);
|
||||||
|
|
||||||
|
/** Get ChequeNo */
|
||||||
|
public String getChequeNo();
|
||||||
|
|
||||||
|
/** Column name U_BlackListCheque_ID */
|
||||||
|
public static final String COLUMNNAME_U_BlackListCheque_ID = "U_BlackListCheque_ID";
|
||||||
|
|
||||||
|
/** Set U_BlackListCheque_ID */
|
||||||
|
public void setU_BlackListCheque_ID (int U_BlackListCheque_ID);
|
||||||
|
|
||||||
|
/** Get U_BlackListCheque_ID */
|
||||||
|
public int getU_BlackListCheque_ID();
|
||||||
|
}
|
|
@ -0,0 +1,166 @@
|
||||||
|
/**********************************************************************
|
||||||
|
* This file is part of Adempiere ERP Bazaar *
|
||||||
|
* http://www.adempiere.org *
|
||||||
|
* *
|
||||||
|
* Copyright (C) Trifon Trifonov. *
|
||||||
|
* Copyright (C) Contributors *
|
||||||
|
* *
|
||||||
|
* This program is free software;
|
||||||
|
you can redistribute it and/or *
|
||||||
|
* modify it under the terms of the GNU General Public License *
|
||||||
|
* as published by the Free Software Foundation;
|
||||||
|
either version 2 *
|
||||||
|
* of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* 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., 51 Franklin Street, Fifth Floor, Boston, *
|
||||||
|
* MA 02110-1301, USA. *
|
||||||
|
* *
|
||||||
|
* Contributors: *
|
||||||
|
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
||||||
|
* *
|
||||||
|
* Sponsors: *
|
||||||
|
* - Company (http://www.site.com) *
|
||||||
|
**********************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for U_Menu
|
||||||
|
* @author Trifon Trifonov (generated)
|
||||||
|
* @version Release 3.3.0
|
||||||
|
*/
|
||||||
|
public interface I_U_Menu
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=U_Menu */
|
||||||
|
public static final String Table_Name = "U_Menu";
|
||||||
|
|
||||||
|
/** AD_Table_ID=52003 */
|
||||||
|
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name Category */
|
||||||
|
public static final String COLUMNNAME_Category = "Category";
|
||||||
|
|
||||||
|
/** Set Category */
|
||||||
|
public void setCategory (String Category);
|
||||||
|
|
||||||
|
/** Get Category */
|
||||||
|
public String getCategory();
|
||||||
|
|
||||||
|
/** Column name Description */
|
||||||
|
public static final String COLUMNNAME_Description = "Description";
|
||||||
|
|
||||||
|
/** Set Description */
|
||||||
|
public void setDescription (String Description);
|
||||||
|
|
||||||
|
/** Get Description */
|
||||||
|
public String getDescription();
|
||||||
|
|
||||||
|
/** Column name HasSubMenu */
|
||||||
|
public static final String COLUMNNAME_HasSubMenu = "HasSubMenu";
|
||||||
|
|
||||||
|
/** Set HasSubMenu */
|
||||||
|
public void setHasSubMenu (boolean HasSubMenu);
|
||||||
|
|
||||||
|
/** Get HasSubMenu */
|
||||||
|
public boolean isHasSubMenu();
|
||||||
|
|
||||||
|
/** Column name Help */
|
||||||
|
public static final String COLUMNNAME_Help = "Help";
|
||||||
|
|
||||||
|
/** Set Help */
|
||||||
|
public void setHelp (String Help);
|
||||||
|
|
||||||
|
/** Get Help */
|
||||||
|
public String getHelp();
|
||||||
|
|
||||||
|
/** Column name ImageLink */
|
||||||
|
public static final String COLUMNNAME_ImageLink = "ImageLink";
|
||||||
|
|
||||||
|
/** Set ImageLink */
|
||||||
|
public void setImageLink (String ImageLink);
|
||||||
|
|
||||||
|
/** Get ImageLink */
|
||||||
|
public String getImageLink();
|
||||||
|
|
||||||
|
/** Column name MenuLink */
|
||||||
|
public static final String COLUMNNAME_MenuLink = "MenuLink";
|
||||||
|
|
||||||
|
/** Set MenuLink */
|
||||||
|
public void setMenuLink (String MenuLink);
|
||||||
|
|
||||||
|
/** Get MenuLink */
|
||||||
|
public String getMenuLink();
|
||||||
|
|
||||||
|
/** Column name Module */
|
||||||
|
public static final String COLUMNNAME_Module = "Module";
|
||||||
|
|
||||||
|
/** Set Module */
|
||||||
|
public void setModule (String Module);
|
||||||
|
|
||||||
|
/** Get Module */
|
||||||
|
public String getModule();
|
||||||
|
|
||||||
|
/** Column name Name */
|
||||||
|
public static final String COLUMNNAME_Name = "Name";
|
||||||
|
|
||||||
|
/** Set Name */
|
||||||
|
public void setName (String Name);
|
||||||
|
|
||||||
|
/** Get Name */
|
||||||
|
public String getName();
|
||||||
|
|
||||||
|
/** Column name ParentMenu_ID */
|
||||||
|
public static final String COLUMNNAME_ParentMenu_ID = "ParentMenu_ID";
|
||||||
|
|
||||||
|
/** Set ParentMenu_ID */
|
||||||
|
public void setParentMenu_ID (int ParentMenu_ID);
|
||||||
|
|
||||||
|
/** Get ParentMenu_ID */
|
||||||
|
public int getParentMenu_ID();
|
||||||
|
|
||||||
|
/** Column name Position */
|
||||||
|
public static final String COLUMNNAME_Position = "Position";
|
||||||
|
|
||||||
|
/** Set Position */
|
||||||
|
public void setPosition (String Position);
|
||||||
|
|
||||||
|
/** Get Position */
|
||||||
|
public String getPosition();
|
||||||
|
|
||||||
|
/** Column name Sequence */
|
||||||
|
public static final String COLUMNNAME_Sequence = "Sequence";
|
||||||
|
|
||||||
|
/** Set Sequence */
|
||||||
|
public void setSequence (BigDecimal Sequence);
|
||||||
|
|
||||||
|
/** Get Sequence */
|
||||||
|
public BigDecimal getSequence();
|
||||||
|
|
||||||
|
/** Column name U_Menu_ID */
|
||||||
|
public static final String COLUMNNAME_U_Menu_ID = "U_Menu_ID";
|
||||||
|
|
||||||
|
/** Set U_Menu_ID */
|
||||||
|
public void setU_Menu_ID (int U_Menu_ID);
|
||||||
|
|
||||||
|
/** Get U_Menu_ID */
|
||||||
|
public int getU_Menu_ID();
|
||||||
|
}
|
|
@ -0,0 +1,93 @@
|
||||||
|
/**********************************************************************
|
||||||
|
* This file is part of Adempiere ERP Bazaar *
|
||||||
|
* http://www.adempiere.org *
|
||||||
|
* *
|
||||||
|
* Copyright (C) Trifon Trifonov. *
|
||||||
|
* Copyright (C) Contributors *
|
||||||
|
* *
|
||||||
|
* This program is free software;
|
||||||
|
you can redistribute it and/or *
|
||||||
|
* modify it under the terms of the GNU General Public License *
|
||||||
|
* as published by the Free Software Foundation;
|
||||||
|
either version 2 *
|
||||||
|
* of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* 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., 51 Franklin Street, Fifth Floor, Boston, *
|
||||||
|
* MA 02110-1301, USA. *
|
||||||
|
* *
|
||||||
|
* Contributors: *
|
||||||
|
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
||||||
|
* *
|
||||||
|
* Sponsors: *
|
||||||
|
* - Company (http://www.site.com) *
|
||||||
|
**********************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for U_RoleMenu
|
||||||
|
* @author Trifon Trifonov (generated)
|
||||||
|
* @version Release 3.3.0 - 2007-09-04 17:47:52.928
|
||||||
|
*/
|
||||||
|
public interface I_U_RoleMenu
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=U_RoleMenu */
|
||||||
|
public static final String Table_Name = "U_RoleMenu";
|
||||||
|
|
||||||
|
/** AD_Table_ID=1000002 */
|
||||||
|
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name AD_Role_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID";
|
||||||
|
|
||||||
|
/** Set Role.
|
||||||
|
* Responsibility Role
|
||||||
|
*/
|
||||||
|
public void setAD_Role_ID (int AD_Role_ID);
|
||||||
|
|
||||||
|
/** Get Role.
|
||||||
|
* Responsibility Role
|
||||||
|
*/
|
||||||
|
public int getAD_Role_ID();
|
||||||
|
|
||||||
|
public I_AD_Role getAD_Role() throws Exception;
|
||||||
|
|
||||||
|
/** Column name U_Menu_ID */
|
||||||
|
public static final String COLUMNNAME_U_Menu_ID = "U_Menu_ID";
|
||||||
|
|
||||||
|
/** Set U_Menu_ID */
|
||||||
|
public void setU_Menu_ID (int U_Menu_ID);
|
||||||
|
|
||||||
|
/** Get U_Menu_ID */
|
||||||
|
public int getU_Menu_ID();
|
||||||
|
|
||||||
|
public I_U_Menu getU_Menu() throws Exception;
|
||||||
|
|
||||||
|
/** Column name U_RoleMenu_ID */
|
||||||
|
public static final String COLUMNNAME_U_RoleMenu_ID = "U_RoleMenu_ID";
|
||||||
|
|
||||||
|
/** Set U_RoleMenu_ID */
|
||||||
|
public void setU_RoleMenu_ID (int U_RoleMenu_ID);
|
||||||
|
|
||||||
|
/** Get U_RoleMenu_ID */
|
||||||
|
public int getU_RoleMenu_ID();
|
||||||
|
}
|
|
@ -0,0 +1,85 @@
|
||||||
|
/**********************************************************************
|
||||||
|
* This file is part of Adempiere ERP Bazaar *
|
||||||
|
* http://www.adempiere.org *
|
||||||
|
* *
|
||||||
|
* Copyright (C) Trifon Trifonov. *
|
||||||
|
* Copyright (C) Contributors *
|
||||||
|
* *
|
||||||
|
* This program is free software;
|
||||||
|
you can redistribute it and/or *
|
||||||
|
* modify it under the terms of the GNU General Public License *
|
||||||
|
* as published by the Free Software Foundation;
|
||||||
|
either version 2 *
|
||||||
|
* of the License, or (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* 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., 51 Franklin Street, Fifth Floor, Boston, *
|
||||||
|
* MA 02110-1301, USA. *
|
||||||
|
* *
|
||||||
|
* Contributors: *
|
||||||
|
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
|
||||||
|
* *
|
||||||
|
* Sponsors: *
|
||||||
|
* - Company (http://www.site.com) *
|
||||||
|
**********************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for U_Web_Properties
|
||||||
|
* @author Trifon Trifonov (generated)
|
||||||
|
* @version Release 3.3.0
|
||||||
|
*/
|
||||||
|
public interface I_U_Web_Properties
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=U_Web_Properties */
|
||||||
|
public static final String Table_Name = "U_Web_Properties";
|
||||||
|
|
||||||
|
/** AD_Table_ID=52001 */
|
||||||
|
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name U_Key */
|
||||||
|
public static final String COLUMNNAME_U_Key = "U_Key";
|
||||||
|
|
||||||
|
/** Set U_Key */
|
||||||
|
public void setU_Key (String U_Key);
|
||||||
|
|
||||||
|
/** Get U_Key */
|
||||||
|
public String getU_Key();
|
||||||
|
|
||||||
|
/** Column name U_Value */
|
||||||
|
public static final String COLUMNNAME_U_Value = "U_Value";
|
||||||
|
|
||||||
|
/** Set U_Value */
|
||||||
|
public void setU_Value (String U_Value);
|
||||||
|
|
||||||
|
/** Get U_Value */
|
||||||
|
public String getU_Value();
|
||||||
|
|
||||||
|
/** Column name U_Web_Properties_ID */
|
||||||
|
public static final String COLUMNNAME_U_Web_Properties_ID = "U_Web_Properties_ID";
|
||||||
|
|
||||||
|
/** Set U_Web_Properties_ID */
|
||||||
|
public void setU_Web_Properties_ID (int U_Web_Properties_ID);
|
||||||
|
|
||||||
|
/** Get U_Web_Properties_ID */
|
||||||
|
public int getU_Web_Properties_ID();
|
||||||
|
}
|
|
@ -0,0 +1,136 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2007 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;
|
||||||
|
|
||||||
|
/** Generated Model for U_BlackListCheque
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.3.0 - $Id$ */
|
||||||
|
public class X_U_BlackListCheque extends PO implements I_U_BlackListCheque, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_U_BlackListCheque (Properties ctx, int U_BlackListCheque_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, U_BlackListCheque_ID, trxName);
|
||||||
|
/** if (U_BlackListCheque_ID == 0)
|
||||||
|
{
|
||||||
|
setBankName (null);
|
||||||
|
setChequeNo (null);
|
||||||
|
setU_BlackListCheque_ID (0);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_U_BlackListCheque (Properties ctx, ResultSet rs, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, rs, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** AccessLevel
|
||||||
|
* @return 3 - Client - Org
|
||||||
|
*/
|
||||||
|
protected int get_AccessLevel()
|
||||||
|
{
|
||||||
|
return accessLevel.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
protected POInfo initPO (Properties ctx)
|
||||||
|
{
|
||||||
|
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
|
||||||
|
return poi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_U_BlackListCheque[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set BankName.
|
||||||
|
@param BankName BankName */
|
||||||
|
public void setBankName (String BankName)
|
||||||
|
{
|
||||||
|
if (BankName == null)
|
||||||
|
throw new IllegalArgumentException ("BankName is mandatory.");
|
||||||
|
|
||||||
|
if (BankName.length() > 120)
|
||||||
|
{
|
||||||
|
log.warning("Length > 120 - truncated");
|
||||||
|
BankName = BankName.substring(0, 119);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_BankName, BankName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get BankName.
|
||||||
|
@return BankName */
|
||||||
|
public String getBankName ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_BankName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set ChequeNo.
|
||||||
|
@param ChequeNo ChequeNo */
|
||||||
|
public void setChequeNo (String ChequeNo)
|
||||||
|
{
|
||||||
|
if (ChequeNo == null)
|
||||||
|
throw new IllegalArgumentException ("ChequeNo is mandatory.");
|
||||||
|
|
||||||
|
if (ChequeNo.length() > 120)
|
||||||
|
{
|
||||||
|
log.warning("Length > 120 - truncated");
|
||||||
|
ChequeNo = ChequeNo.substring(0, 119);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_ChequeNo, ChequeNo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get ChequeNo.
|
||||||
|
@return ChequeNo */
|
||||||
|
public String getChequeNo ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_ChequeNo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set U_BlackListCheque_ID.
|
||||||
|
@param U_BlackListCheque_ID U_BlackListCheque_ID */
|
||||||
|
public void setU_BlackListCheque_ID (int U_BlackListCheque_ID)
|
||||||
|
{
|
||||||
|
if (U_BlackListCheque_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("U_BlackListCheque_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_U_BlackListCheque_ID, Integer.valueOf(U_BlackListCheque_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get U_BlackListCheque_ID.
|
||||||
|
@return U_BlackListCheque_ID */
|
||||||
|
public int getU_BlackListCheque_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_U_BlackListCheque_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,321 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2007 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.math.BigDecimal;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.Properties;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
|
/** Generated Model for U_Menu
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.3.0 - $Id$ */
|
||||||
|
public class X_U_Menu extends PO implements I_U_Menu, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_U_Menu (Properties ctx, int U_Menu_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, U_Menu_ID, trxName);
|
||||||
|
/** if (U_Menu_ID == 0)
|
||||||
|
{
|
||||||
|
setHasSubMenu (false);
|
||||||
|
// 'N'
|
||||||
|
setMenuLink (null);
|
||||||
|
setModule (null);
|
||||||
|
setName (null);
|
||||||
|
setU_Menu_ID (0);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_U_Menu (Properties ctx, ResultSet rs, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, rs, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** AccessLevel
|
||||||
|
* @return 3 - Client - Org
|
||||||
|
*/
|
||||||
|
protected int get_AccessLevel()
|
||||||
|
{
|
||||||
|
return accessLevel.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
protected POInfo initPO (Properties ctx)
|
||||||
|
{
|
||||||
|
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
|
||||||
|
return poi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_U_Menu[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Category.
|
||||||
|
@param Category Category */
|
||||||
|
public void setCategory (String Category)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (Category != null && Category.length() > 120)
|
||||||
|
{
|
||||||
|
log.warning("Length > 120 - truncated");
|
||||||
|
Category = Category.substring(0, 119);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_Category, Category);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Category.
|
||||||
|
@return Category */
|
||||||
|
public String getCategory ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Category);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Description.
|
||||||
|
@param Description Description */
|
||||||
|
public void setDescription (String Description)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (Description != null && Description.length() > 200)
|
||||||
|
{
|
||||||
|
log.warning("Length > 200 - truncated");
|
||||||
|
Description = Description.substring(0, 199);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_Description, Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Description.
|
||||||
|
@return Description */
|
||||||
|
public String getDescription ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set HasSubMenu.
|
||||||
|
@param HasSubMenu HasSubMenu */
|
||||||
|
public void setHasSubMenu (boolean HasSubMenu)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_HasSubMenu, Boolean.valueOf(HasSubMenu));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get HasSubMenu.
|
||||||
|
@return HasSubMenu */
|
||||||
|
public boolean isHasSubMenu ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_HasSubMenu);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Help.
|
||||||
|
@param Help Help */
|
||||||
|
public void setHelp (String Help)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (Help != null && Help.length() > 2000)
|
||||||
|
{
|
||||||
|
log.warning("Length > 2000 - truncated");
|
||||||
|
Help = Help.substring(0, 1999);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_Help, Help);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Help.
|
||||||
|
@return Help */
|
||||||
|
public String getHelp ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Help);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set ImageLink.
|
||||||
|
@param ImageLink ImageLink */
|
||||||
|
public void setImageLink (String ImageLink)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (ImageLink != null && ImageLink.length() > 510)
|
||||||
|
{
|
||||||
|
log.warning("Length > 510 - truncated");
|
||||||
|
ImageLink = ImageLink.substring(0, 509);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_ImageLink, ImageLink);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get ImageLink.
|
||||||
|
@return ImageLink */
|
||||||
|
public String getImageLink ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_ImageLink);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set MenuLink.
|
||||||
|
@param MenuLink MenuLink */
|
||||||
|
public void setMenuLink (String MenuLink)
|
||||||
|
{
|
||||||
|
if (MenuLink == null)
|
||||||
|
throw new IllegalArgumentException ("MenuLink is mandatory.");
|
||||||
|
|
||||||
|
if (MenuLink.length() > 510)
|
||||||
|
{
|
||||||
|
log.warning("Length > 510 - truncated");
|
||||||
|
MenuLink = MenuLink.substring(0, 509);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_MenuLink, MenuLink);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get MenuLink.
|
||||||
|
@return MenuLink */
|
||||||
|
public String getMenuLink ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_MenuLink);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Module.
|
||||||
|
@param Module Module */
|
||||||
|
public void setModule (String Module)
|
||||||
|
{
|
||||||
|
if (Module == null)
|
||||||
|
throw new IllegalArgumentException ("Module is mandatory.");
|
||||||
|
|
||||||
|
if (Module.length() > 120)
|
||||||
|
{
|
||||||
|
log.warning("Length > 120 - truncated");
|
||||||
|
Module = Module.substring(0, 119);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_Module, Module);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Module.
|
||||||
|
@return Module */
|
||||||
|
public String getModule ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Module);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Name.
|
||||||
|
@param Name Name */
|
||||||
|
public void setName (String Name)
|
||||||
|
{
|
||||||
|
if (Name == null)
|
||||||
|
throw new IllegalArgumentException ("Name is mandatory.");
|
||||||
|
|
||||||
|
if (Name.length() > 120)
|
||||||
|
{
|
||||||
|
log.warning("Length > 120 - truncated");
|
||||||
|
Name = Name.substring(0, 119);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_Name, Name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Name.
|
||||||
|
@return Name */
|
||||||
|
public String getName ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set ParentMenu_ID.
|
||||||
|
@param ParentMenu_ID ParentMenu_ID */
|
||||||
|
public void setParentMenu_ID (int ParentMenu_ID)
|
||||||
|
{
|
||||||
|
if (ParentMenu_ID <= 0)
|
||||||
|
set_Value (COLUMNNAME_ParentMenu_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_ParentMenu_ID, Integer.valueOf(ParentMenu_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get ParentMenu_ID.
|
||||||
|
@return ParentMenu_ID */
|
||||||
|
public int getParentMenu_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_ParentMenu_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Position.
|
||||||
|
@param Position Position */
|
||||||
|
public void setPosition (String Position)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (Position != null && Position.length() > 10)
|
||||||
|
{
|
||||||
|
log.warning("Length > 10 - truncated");
|
||||||
|
Position = Position.substring(0, 9);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_Position, Position);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Position.
|
||||||
|
@return Position */
|
||||||
|
public String getPosition ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Position);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Sequence.
|
||||||
|
@param Sequence Sequence */
|
||||||
|
public void setSequence (BigDecimal Sequence)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Sequence, Sequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sequence.
|
||||||
|
@return Sequence */
|
||||||
|
public BigDecimal getSequence ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Sequence);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set U_Menu_ID.
|
||||||
|
@param U_Menu_ID U_Menu_ID */
|
||||||
|
public void setU_Menu_ID (int U_Menu_ID)
|
||||||
|
{
|
||||||
|
if (U_Menu_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("U_Menu_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_U_Menu_ID, Integer.valueOf(U_Menu_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get U_Menu_ID.
|
||||||
|
@return U_Menu_ID */
|
||||||
|
public int getU_Menu_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_U_Menu_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,167 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
/** Generated Model for U_RoleMenu
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.3.0 - $Id$ */
|
||||||
|
public class X_U_RoleMenu extends PO implements I_U_RoleMenu, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_U_RoleMenu (Properties ctx, int U_RoleMenu_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, U_RoleMenu_ID, trxName);
|
||||||
|
/** if (U_RoleMenu_ID == 0)
|
||||||
|
{
|
||||||
|
setAD_Role_ID (0);
|
||||||
|
setU_Menu_ID (0);
|
||||||
|
setU_RoleMenu_ID (0);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_U_RoleMenu (Properties ctx, ResultSet rs, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, rs, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** AccessLevel
|
||||||
|
* @return 3 - Client - Org
|
||||||
|
*/
|
||||||
|
protected int get_AccessLevel()
|
||||||
|
{
|
||||||
|
return accessLevel.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
protected POInfo initPO (Properties ctx)
|
||||||
|
{
|
||||||
|
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
|
||||||
|
return poi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_U_RoleMenu[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_AD_Role getAD_Role() throws Exception
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_AD_Role.Table_Name);
|
||||||
|
I_AD_Role result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()});
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
||||||
|
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Role.
|
||||||
|
@param AD_Role_ID
|
||||||
|
Responsibility Role
|
||||||
|
*/
|
||||||
|
public void setAD_Role_ID (int AD_Role_ID)
|
||||||
|
{
|
||||||
|
if (AD_Role_ID < 0)
|
||||||
|
throw new IllegalArgumentException ("AD_Role_ID is mandatory.");
|
||||||
|
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Role.
|
||||||
|
@return Responsibility Role
|
||||||
|
*/
|
||||||
|
public int getAD_Role_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_U_Menu getU_Menu() throws Exception
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_U_Menu.Table_Name);
|
||||||
|
I_U_Menu result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_U_Menu)constructor.newInstance(new Object[] {getCtx(), new Integer(getU_Menu_ID()), get_TrxName()});
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
||||||
|
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set U_Menu_ID.
|
||||||
|
@param U_Menu_ID U_Menu_ID */
|
||||||
|
public void setU_Menu_ID (int U_Menu_ID)
|
||||||
|
{
|
||||||
|
if (U_Menu_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("U_Menu_ID is mandatory.");
|
||||||
|
set_Value (COLUMNNAME_U_Menu_ID, Integer.valueOf(U_Menu_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get U_Menu_ID.
|
||||||
|
@return U_Menu_ID */
|
||||||
|
public int getU_Menu_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_U_Menu_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set U_RoleMenu_ID.
|
||||||
|
@param U_RoleMenu_ID U_RoleMenu_ID */
|
||||||
|
public void setU_RoleMenu_ID (int U_RoleMenu_ID)
|
||||||
|
{
|
||||||
|
if (U_RoleMenu_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("U_RoleMenu_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_U_RoleMenu_ID, Integer.valueOf(U_RoleMenu_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get U_RoleMenu_ID.
|
||||||
|
@return U_RoleMenu_ID */
|
||||||
|
public int getU_RoleMenu_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_U_RoleMenu_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,136 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2007 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;
|
||||||
|
|
||||||
|
/** Generated Model for U_Web_Properties
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.3.0 - $Id$ */
|
||||||
|
public class X_U_Web_Properties extends PO implements I_U_Web_Properties, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_U_Web_Properties (Properties ctx, int U_Web_Properties_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, U_Web_Properties_ID, trxName);
|
||||||
|
/** if (U_Web_Properties_ID == 0)
|
||||||
|
{
|
||||||
|
setU_Key (null);
|
||||||
|
setU_Value (null);
|
||||||
|
setU_Web_Properties_ID (0);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_U_Web_Properties (Properties ctx, ResultSet rs, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, rs, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** AccessLevel
|
||||||
|
* @return 3 - Client - Org
|
||||||
|
*/
|
||||||
|
protected int get_AccessLevel()
|
||||||
|
{
|
||||||
|
return accessLevel.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
protected POInfo initPO (Properties ctx)
|
||||||
|
{
|
||||||
|
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
|
||||||
|
return poi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_U_Web_Properties[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set U_Key.
|
||||||
|
@param U_Key U_Key */
|
||||||
|
public void setU_Key (String U_Key)
|
||||||
|
{
|
||||||
|
if (U_Key == null)
|
||||||
|
throw new IllegalArgumentException ("U_Key is mandatory.");
|
||||||
|
|
||||||
|
if (U_Key.length() > 240)
|
||||||
|
{
|
||||||
|
log.warning("Length > 240 - truncated");
|
||||||
|
U_Key = U_Key.substring(0, 239);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_U_Key, U_Key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get U_Key.
|
||||||
|
@return U_Key */
|
||||||
|
public String getU_Key ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_U_Key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set U_Value.
|
||||||
|
@param U_Value U_Value */
|
||||||
|
public void setU_Value (String U_Value)
|
||||||
|
{
|
||||||
|
if (U_Value == null)
|
||||||
|
throw new IllegalArgumentException ("U_Value is mandatory.");
|
||||||
|
|
||||||
|
if (U_Value.length() > 240)
|
||||||
|
{
|
||||||
|
log.warning("Length > 240 - truncated");
|
||||||
|
U_Value = U_Value.substring(0, 239);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_U_Value, U_Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get U_Value.
|
||||||
|
@return U_Value */
|
||||||
|
public String getU_Value ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_U_Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set U_Web_Properties_ID.
|
||||||
|
@param U_Web_Properties_ID U_Web_Properties_ID */
|
||||||
|
public void setU_Web_Properties_ID (int U_Web_Properties_ID)
|
||||||
|
{
|
||||||
|
if (U_Web_Properties_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("U_Web_Properties_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_U_Web_Properties_ID, Integer.valueOf(U_Web_Properties_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get U_Web_Properties_ID.
|
||||||
|
@return U_Web_Properties_ID */
|
||||||
|
public int getU_Web_Properties_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_U_Web_Properties_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue