X_AD_Registration.java
| Index Score | ||
|---|---|---|
![]() |
![]() |
org.compiere.model |
![]() |
![]() |
Compiere |
View: Reasons, Metrics, Source Code
These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.
/******************************************************************************
* Product: Compiere 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., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
/** Generated Model - DO NOT CHANGE */
import java.sql.*;
import java.math.*;
import org.compiere.framework.*;
import org.compiere.util.*;
/** Generated Model for AD_Registration
* @author Jorg Janke (generated)
* @version Release 3.1.0 - $Id$ */
public class X_AD_Registration extends PO
{
/** Standard Constructor
@param ctx context
@param AD_Registration_ID id
@param trxName transaction
*/
public X_AD_Registration (Ctx ctx, int AD_Registration_ID, String trxName)
{
super (ctx, AD_Registration_ID, trxName);
/** if (AD_Registration_ID == 0)
{
setAD_Registration_ID (0);
setIsRegistered (false); // N
}
*/
}
/** Load Constructor
@param ctx context
@param rs result set
@param trxName transaction
*/
public X_AD_Registration (Ctx ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** Serial Version No */
static final long serialVersionUID = 27498804794789L;
/** Last Updated Timestamp 2008-07-21 15:31:18.0 */
public static final long updatedMS = 1216679478000L;
/** AD_Table_ID=625 */
public static final int Table_ID=625;
/** TableName=AD_Registration */
public static final String Table_Name="AD_Registration";
protected static KeyNamePair Model = new KeyNamePair(Table_ID,"AD_Registration");
protected BigDecimal accessLevel = new BigDecimal(4);
/** AccessLevel
@return 4 - System
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected POInfo initPO (Ctx ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public String toString()
{
StringBuffer sb = new StringBuffer ("X_AD_Registration[").append(get_ID()).append("]");
return sb.toString();
}
/** Set System Registration.
@param AD_Registration_ID System Registration */
public void setAD_Registration_ID (int AD_Registration_ID)
{
if (AD_Registration_ID < 1) throw new IllegalArgumentException ("AD_Registration_ID is mandatory.");
set_ValueNoCheck ("AD_Registration_ID", new Integer(AD_Registration_ID));
}
/** Get System Registration.
@return System Registration */
public int getAD_Registration_ID()
{
Integer ii = (Integer)get_Value("AD_Registration_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** C_Country_ID AD_Reference_ID=156 */
public static final int C_COUNTRY_ID_AD_Reference_ID=156;
/** Set Country.
@param C_Country_ID Country */
public void setC_Country_ID (int C_Country_ID)
{
if (C_Country_ID <= 0) set_Value ("C_Country_ID", null);
else
set_Value ("C_Country_ID", new Integer(C_Country_ID));
}
/** Get Country.
@return Country */
public int getC_Country_ID()
{
Integer ii = (Integer)get_Value("C_Country_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Currency.
@param C_Currency_ID The Currency for this record */
public void setC_Currency_ID (int C_Currency_ID)
{
if (C_Currency_ID <= 0) set_Value ("C_Currency_ID", null);
else
set_Value ("C_Currency_ID", new Integer(C_Currency_ID));
}
/** Get Currency.
@return The Currency for this record */
public int getC_Currency_ID()
{
Integer ii = (Integer)get_Value("C_Currency_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Company.
@param Company Company */
public void setCompany (String Company)
{
int length = p_info.getFieldLength("Company");
if (Company != null && Company.length() > length)
{
log.warning("Length > " + length + " - truncated");
Company = Company.substring(0,length);
}
set_Value ("Company", Company);
}
/** Get Company.
@return Company */
public String getCompany()
{
return (String)get_Value("Company");
}
/** Set EMail Address.
@param EMail Electronic Mail Address */
public void setEMail (String EMail)
{
int length = p_info.getFieldLength("EMail");
if (EMail != null && EMail.length() > length)
{
log.warning("Length > " + length + " - truncated");
EMail = EMail.substring(0,length);
}
set_Value ("EMail", EMail);
}
/** Get EMail Address.
@return Electronic Mail Address */
public String getEMail()
{
return (String)get_Value("EMail");
}
/** EmployeeRange AD_Reference_ID=470 */
public static final int EMPLOYEERANGE_AD_Reference_ID=470;
/** Up to 10 employees = 1000000 */
public static final String EMPLOYEERANGE_UpTo10Employees = "1000000";
/** 11-20 employees = 1000001 */
public static final String EMPLOYEERANGE_11_20Employees = "1000001";
/** 21-100 employees = 1000002 */
public static final String EMPLOYEERANGE_21_100Employees = "1000002";
/** 101-200 employees = 1000003 */
public static final String EMPLOYEERANGE_101_200Employees = "1000003";
/** 201-500 employees = 1000004 */
public static final String EMPLOYEERANGE_201_500Employees = "1000004";
/** 501-1000 employees = 1000005 */
public static final String EMPLOYEERANGE_501_1000Employees = "1000005";
/** 1000-2000 employees = 1000006 */
public static final String EMPLOYEERANGE_1000_2000Employees = "1000006";
/** Over 2000 employees = 1000007 */
public static final String EMPLOYEERANGE_Over2000Employees = "1000007";
/** Is test a valid value.
@param test testvalue
@return true if valid **/
public boolean isEmployeeRangeValid (String test)
{
return test == null || test.equals("1000000") || test.equals("1000001") || test.equals("1000002") || test.equals("1000003") || test.equals("1000004") || test.equals("1000005") || test.equals("1000006") || test.equals("1000007");
}
/** Set Employees.
@param EmployeeRange Number of employees */
public void setEmployeeRange (String EmployeeRange)
{
if (!isEmployeeRangeValid(EmployeeRange))
throw new IllegalArgumentException ("EmployeeRange Invalid value - " + EmployeeRange + " - Reference_ID=470 - 1000000 - 1000001 - 1000002 - 1000003 - 1000004 - 1000005 - 1000006 - 1000007");
int length = p_info.getFieldLength("EmployeeRange");
if (EmployeeRange != null && EmployeeRange.length() > length)
{
log.warning("Length > " + length + " - truncated");
EmployeeRange = EmployeeRange.substring(0,length);
}
set_Value ("EmployeeRange", EmployeeRange);
}
/** Get Employees.
@return Number of employees */
public String getEmployeeRange()
{
return (String)get_Value("EmployeeRange");
}
/** Set First Name.
@param FirstName First name */
public void setFirstName (String FirstName)
{
int length = p_info.getFieldLength("FirstName");
if (FirstName != null && FirstName.length() > length)
{
log.warning("Length > " + length + " - truncated");
FirstName = FirstName.substring(0,length);
}
set_Value ("FirstName", FirstName);
}
/** Get First Name.
@return First name */
public String getFirstName()
{
return (String)get_Value("FirstName");
}
/** Industry AD_Reference_ID=471 */
public static final int INDUSTRY_AD_Reference_ID=471;
/** Arts, entertainment & recreation = 1000000 */
public static final String INDUSTRY_ArtsEntertainmentRecreation = "1000000";
/** Construction = 1000001 */
public static final String INDUSTRY_Construction = "1000001";
/** Education = 1000002 */
public static final String INDUSTRY_Education = "1000002";
/** Finance & insurance = 1000003 */
public static final String INDUSTRY_FinanceInsurance = "1000003";
/** Health care & social assistance = 1000004 */
public static final String INDUSTRY_HealthCareSocialAssistance = "1000004";
/** Manufacturing = 1000005 */
public static final String INDUSTRY_Manufacturing = "1000005";
/** Mining = 1000006 */
public static final String INDUSTRY_Mining = "1000006";
/** Public sector = 1000007 */
public static final String INDUSTRY_PublicSector = "1000007";
/** Real estate, rental & leasing = 1000008 */
public static final String INDUSTRY_RealEstateRentalLeasing = "1000008";
/** Retail trade = 1000009 */
public static final String INDUSTRY_RetailTrade = "1000009";
/** Services = 1000010 */
public static final String INDUSTRY_Services = "1000010";
/** Transportation & warehousing = 1000011 */
public static final String INDUSTRY_TransportationWarehousing = "1000011";
/** Utilities = 1000012 */
public static final String INDUSTRY_Utilities = "1000012";
/** Wholesale trade = 1000013 */
public static final String INDUSTRY_WholesaleTrade = "1000013";
/** Other = 1000014 */
public static final String INDUSTRY_Other = "1000014";
/** Is test a valid value.
@param test testvalue
@return true if valid **/
public boolean isIndustryValid (String test)
{
return test == null || test.equals("1000000") || test.equals("1000001") || test.equals("1000002") || test.equals("1000003") || test.equals("1000004") || test.equals("1000005") || test.equals("1000006") || test.equals("1000007") || test.equals("1000008") || test.equals("1000009") || test.equals("1000010") || test.equals("1000011") || test.equals("1000012") || test.equals("1000013") || test.equals("1000014");
}
/** Set Industry.
@param Industry Industry classification */
public void setIndustry (String Industry)
{
if (!isIndustryValid(Industry))
throw new IllegalArgumentException ("Industry Invalid value - " + Industry + " - Reference_ID=471 - 1000000 - 1000001 - 1000002 - 1000003 - 1000004 - 1000005 - 1000006 - 1000007 - 1000008 - 1000009 - 1000010 - 1000011 - 1000012 - 1000013 - 1000014");
int length = p_info.getFieldLength("Industry");
if (Industry != null && Industry.length() > length)
{
log.warning("Length > " + length + " - truncated");
Industry = Industry.substring(0,length);
}
set_Value ("Industry", Industry);
}
/** Get Industry.
@return Industry classification */
public String getIndustry()
{
return (String)get_Value("Industry");
}
/** Set Registered.
@param IsRegistered The application is registered. */
public void setIsRegistered (boolean IsRegistered)
{
set_ValueNoCheck ("IsRegistered", new Boolean(IsRegistered));
}
/** Get Registered.
@return The application is registered. */
public boolean isRegistered()
{
Object oo = get_Value("IsRegistered");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Last Name.
@param LastName Last name */
public void setLastName (String LastName)
{
int length = p_info.getFieldLength("LastName");
if (LastName != null && LastName.length() > length)
{
log.warning("Length > " + length + " - truncated");
LastName = LastName.substring(0,length);
}
set_Value ("LastName", LastName);
}
/** Get Last Name.
@return Last name */
public String getLastName()
{
return (String)get_Value("LastName");
}
/** Set Keep me informed of Compiere news.
@param OptIn Subscribe to communication from Compiere */
public void setOptIn (boolean OptIn)
{
set_Value ("OptIn", new Boolean(OptIn));
}
/** Get Keep me informed of Compiere news.
@return Subscribe to communication from Compiere */
public boolean isOptIn()
{
Object oo = get_Value("OptIn");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Phone.
@param Phone Identifies a telephone number */
public void setPhone (String Phone)
{
int length = p_info.getFieldLength("Phone");
if (Phone != null && Phone.length() > length)
{
log.warning("Length > " + length + " - truncated");
Phone = Phone.substring(0,length);
}
set_Value ("Phone", Phone);
}
/** Get Phone.
@return Identifies a telephone number */
public String getPhone()
{
return (String)get_Value("Phone");
}
/** Set Process Now.
@param Processing Process Now */
public void setProcessing (boolean Processing)
{
set_Value ("Processing", new Boolean(Processing));
}
/** Get Process Now.
@return Process Now */
public boolean isProcessing()
{
Object oo = get_Value("Processing");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Record ID.
@param Record_ID Direct internal record ID */
public void setRecord_ID (int Record_ID)
{
if (Record_ID <= 0) set_ValueNoCheck ("Record_ID", null);
else
set_ValueNoCheck ("Record_ID", new Integer(Record_ID));
}
/** Get Record ID.
@return Direct internal record ID */
public int getRecord_ID()
{
Integer ii = (Integer)get_Value("Record_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Remote Addr.
@param Remote_Addr Remote Address */
public void setRemote_Addr (String Remote_Addr)
{
int length = p_info.getFieldLength("Remote_Addr");
if (Remote_Addr != null && Remote_Addr.length() > length)
{
log.warning("Length > " + length + " - truncated");
Remote_Addr = Remote_Addr.substring(0,length);
}
set_ValueNoCheck ("Remote_Addr", Remote_Addr);
}
/** Get Remote Addr.
@return Remote Address */
public String getRemote_Addr()
{
return (String)get_Value("Remote_Addr");
}
/** Set Remote Host.
@param Remote_Host Remote host Info */
public void setRemote_Host (String Remote_Host)
{
int length = p_info.getFieldLength("Remote_Host");
if (Remote_Host != null && Remote_Host.length() > length)
{
log.warning("Length > " + length + " - truncated");
Remote_Host = Remote_Host.substring(0,length);
}
set_ValueNoCheck ("Remote_Host", Remote_Host);
}
/** Get Remote Host.
@return Remote host Info */
public String getRemote_Host()
{
return (String)get_Value("Remote_Host");
}
/** Set Sales Volume.
@param SalesVolume Total Volume of Sales in Thousands of Base Currency */
public void setSalesVolume (int SalesVolume)
{
set_Value ("SalesVolume", new Integer(SalesVolume));
}
/** Get Sales Volume.
@return Total Volume of Sales in Thousands of Base Currency */
public int getSalesVolume()
{
Integer ii = (Integer)get_Value("SalesVolume");
if (ii == null) return 0;
return ii.intValue();
}
/** Set URL.
@param URL Full URL address - e.g. http://www.compiere.org */
public void setURL (String URL)
{
int length = p_info.getFieldLength("URL");
if (URL != null && URL.length() > length)
{
log.warning("Length > " + length + " - truncated");
URL = URL.substring(0,length);
}
set_Value ("URL", URL);
}
/** Get URL.
@return Full URL address - e.g. http://www.compiere.org */
public String getURL()
{
return (String)get_Value("URL");
}
}
The table below shows all metrics for X_AD_Registration.java.




