⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x_c_country.java

📁 大家共享愉快, 共享愉快, 共享愉快, 共享愉快,共享愉快
💻 JAVA
字号:
/** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2005 Jorg Janke */
package org.compiere.model;
import java.util.*;
import java.sql.*;
import java.math.*;
import org.compiere.util.*;
/** Generated Model for C_Country
 *  @author Jorg Janke (generated) 
 *  @version Release 2.5.3b - 2006-02-09 16:42:59.858 */
public class X_C_Country extends PO
{
/** Standard Constructor */
public X_C_Country (Properties ctx, int C_Country_ID, String trxName)
{
super (ctx, C_Country_ID, trxName);
/** if (C_Country_ID == 0)
{
setC_Country_ID (0);
setCountryCode (null);
setDisplaySequence (null);	// @C@, @R@ @P@
setHasPostal_Add (false);
setHasRegion (false);
setIsAddressLinesLocalReverse (false);
setIsAddressLinesReverse (false);
setName (null);
}
 */
}
/** Load Constructor */
public X_C_Country (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AD_Table_ID=170 */
public static final int Table_ID=170;

/** TableName=C_Country */
public static final String Table_Name="C_Country";

protected static KeyNamePair Model = new KeyNamePair(170,"C_Country");

protected BigDecimal accessLevel = new BigDecimal(6);
/** AccessLevel 6 - System - Client  */
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_C_Country[").append(get_ID()).append("]");
return sb.toString();
}

/** AD_Language AD_Reference_ID=106 */
public static final int AD_LANGUAGE_AD_Reference_ID=106;
/** Set Language.
Language for this entity */
public void setAD_Language (String AD_Language)
{
if (AD_Language != null && AD_Language.length() > 6)
{
log.warning("Length > 6 - truncated");
AD_Language = AD_Language.substring(0,5);
}
set_Value ("AD_Language", AD_Language);
}
/** Get Language.
Language for this entity */
public String getAD_Language() 
{
return (String)get_Value("AD_Language");
}
/** Set Country.
Country  */
public void setC_Country_ID (int C_Country_ID)
{
if (C_Country_ID < 1) throw new IllegalArgumentException ("C_Country_ID is mandatory.");
set_ValueNoCheck ("C_Country_ID", new Integer(C_Country_ID));
}
/** Get Country.
Country  */
public int getC_Country_ID() 
{
Integer ii = (Integer)get_Value("C_Country_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Currency.
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.
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 ISO Country Code.
Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */
public void setCountryCode (String CountryCode)
{
if (CountryCode == null) throw new IllegalArgumentException ("CountryCode is mandatory.");
if (CountryCode.length() > 2)
{
log.warning("Length > 2 - truncated");
CountryCode = CountryCode.substring(0,1);
}
set_Value ("CountryCode", CountryCode);
}
/** Get ISO Country Code.
Upper-case two-letter alphanumeric ISO Country code according to ISO 3166-1 - http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html */
public String getCountryCode() 
{
return (String)get_Value("CountryCode");
}
/** Set Description.
Optional short description of the record */
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
Description = Description.substring(0,254);
}
set_Value ("Description", Description);
}
/** Get Description.
Optional short description of the record */
public String getDescription() 
{
return (String)get_Value("Description");
}
/** Set Address Print Format.
Format for printing this Address */
public void setDisplaySequence (String DisplaySequence)
{
if (DisplaySequence == null) throw new IllegalArgumentException ("DisplaySequence is mandatory.");
if (DisplaySequence.length() > 20)
{
log.warning("Length > 20 - truncated");
DisplaySequence = DisplaySequence.substring(0,19);
}
set_Value ("DisplaySequence", DisplaySequence);
}
/** Get Address Print Format.
Format for printing this Address */
public String getDisplaySequence() 
{
return (String)get_Value("DisplaySequence");
}
/** Set Local Address Format.
Format for printing this Address locally */
public void setDisplaySequenceLocal (String DisplaySequenceLocal)
{
if (DisplaySequenceLocal != null && DisplaySequenceLocal.length() > 20)
{
log.warning("Length > 20 - truncated");
DisplaySequenceLocal = DisplaySequenceLocal.substring(0,19);
}
set_Value ("DisplaySequenceLocal", DisplaySequenceLocal);
}
/** Get Local Address Format.
Format for printing this Address locally */
public String getDisplaySequenceLocal() 
{
return (String)get_Value("DisplaySequenceLocal");
}
/** Set Bank Account No Format.
Format of the Bank Account */
public void setExpressionBankAccountNo (String ExpressionBankAccountNo)
{
if (ExpressionBankAccountNo != null && ExpressionBankAccountNo.length() > 20)
{
log.warning("Length > 20 - truncated");
ExpressionBankAccountNo = ExpressionBankAccountNo.substring(0,19);
}
set_Value ("ExpressionBankAccountNo", ExpressionBankAccountNo);
}
/** Get Bank Account No Format.
Format of the Bank Account */
public String getExpressionBankAccountNo() 
{
return (String)get_Value("ExpressionBankAccountNo");
}
/** Set Bank Routing No Format.
Format of the Bank Routing Number */
public void setExpressionBankRoutingNo (String ExpressionBankRoutingNo)
{
if (ExpressionBankRoutingNo != null && ExpressionBankRoutingNo.length() > 20)
{
log.warning("Length > 20 - truncated");
ExpressionBankRoutingNo = ExpressionBankRoutingNo.substring(0,19);
}
set_Value ("ExpressionBankRoutingNo", ExpressionBankRoutingNo);
}
/** Get Bank Routing No Format.
Format of the Bank Routing Number */
public String getExpressionBankRoutingNo() 
{
return (String)get_Value("ExpressionBankRoutingNo");
}
/** Set Phone Format.
Format of the phone;
 Can contain fixed format elements, Variables: "_lLoOaAcCa09" */
public void setExpressionPhone (String ExpressionPhone)
{
if (ExpressionPhone != null && ExpressionPhone.length() > 20)
{
log.warning("Length > 20 - truncated");
ExpressionPhone = ExpressionPhone.substring(0,19);
}
set_Value ("ExpressionPhone", ExpressionPhone);
}
/** Get Phone Format.
Format of the phone;
 Can contain fixed format elements, Variables: "_lLoOaAcCa09" */
public String getExpressionPhone() 
{
return (String)get_Value("ExpressionPhone");
}
/** Set Postal Code Format.
Format of the postal code;
 Can contain fixed format elements, Variables: "_lLoOaAcCa09" */
public void setExpressionPostal (String ExpressionPostal)
{
if (ExpressionPostal != null && ExpressionPostal.length() > 20)
{
log.warning("Length > 20 - truncated");
ExpressionPostal = ExpressionPostal.substring(0,19);
}
set_Value ("ExpressionPostal", ExpressionPostal);
}
/** Get Postal Code Format.
Format of the postal code;
 Can contain fixed format elements, Variables: "_lLoOaAcCa09" */
public String getExpressionPostal() 
{
return (String)get_Value("ExpressionPostal");
}
/** Set Additional Postal Format.
Format of the value;
 Can contain fixed format elements, Variables: "_lLoOaAcCa09" */
public void setExpressionPostal_Add (String ExpressionPostal_Add)
{
if (ExpressionPostal_Add != null && ExpressionPostal_Add.length() > 20)
{
log.warning("Length > 20 - truncated");
ExpressionPostal_Add = ExpressionPostal_Add.substring(0,19);
}
set_Value ("ExpressionPostal_Add", ExpressionPostal_Add);
}
/** Get Additional Postal Format.
Format of the value;
 Can contain fixed format elements, Variables: "_lLoOaAcCa09" */
public String getExpressionPostal_Add() 
{
return (String)get_Value("ExpressionPostal_Add");
}
/** Set Additional Postal code.
Has Additional Postal Code */
public void setHasPostal_Add (boolean HasPostal_Add)
{
set_Value ("HasPostal_Add", new Boolean(HasPostal_Add));
}
/** Get Additional Postal code.
Has Additional Postal Code */
public boolean isHasPostal_Add() 
{
Object oo = get_Value("HasPostal_Add");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Country has Region.
Country contains Regions */
public void setHasRegion (boolean HasRegion)
{
set_Value ("HasRegion", new Boolean(HasRegion));
}
/** Get Country has Region.
Country contains Regions */
public boolean isHasRegion() 
{
Object oo = get_Value("HasRegion");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Reverse Local Address Lines.
Print Local Address in reverse Order */
public void setIsAddressLinesLocalReverse (boolean IsAddressLinesLocalReverse)
{
set_Value ("IsAddressLinesLocalReverse", new Boolean(IsAddressLinesLocalReverse));
}
/** Get Reverse Local Address Lines.
Print Local Address in reverse Order */
public boolean isAddressLinesLocalReverse() 
{
Object oo = get_Value("IsAddressLinesLocalReverse");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Reverse Address Lines.
Print Address in reverse Order */
public void setIsAddressLinesReverse (boolean IsAddressLinesReverse)
{
set_Value ("IsAddressLinesReverse", new Boolean(IsAddressLinesReverse));
}
/** Get Reverse Address Lines.
Print Address in reverse Order */
public boolean isAddressLinesReverse() 
{
Object oo = get_Value("IsAddressLinesReverse");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Media Size.
Java Media Size */
public void setMediaSize (String MediaSize)
{
if (MediaSize != null && MediaSize.length() > 40)
{
log.warning("Length > 40 - truncated");
MediaSize = MediaSize.substring(0,39);
}
set_Value ("MediaSize", MediaSize);
}
/** Get Media Size.
Java Media Size */
public String getMediaSize() 
{
return (String)get_Value("MediaSize");
}
/** Set Name.
Alphanumeric identifier of the entity */
public void setName (String Name)
{
if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
Name = Name.substring(0,59);
}
set_Value ("Name", Name);
}
/** Get Name.
Alphanumeric identifier of the entity */
public String getName() 
{
return (String)get_Value("Name");
}
public KeyNamePair getKeyNamePair() 
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Region.
Name of the Region */
public void setRegionName (String RegionName)
{
if (RegionName != null && RegionName.length() > 60)
{
log.warning("Length > 60 - truncated");
RegionName = RegionName.substring(0,59);
}
set_Value ("RegionName", RegionName);
}
/** Get Region.
Name of the Region */
public String getRegionName() 
{
return (String)get_Value("RegionName");
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -