/****************************************************************************** * 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_Language * @author iDempiere (generated) * @version Release 12 - $Id$ */ @org.adempiere.base.Model(table="AD_Language") public class X_AD_Language extends PO implements I_AD_Language, I_Persistent { /** * */ private static final long serialVersionUID = 20241222L; /** Standard Constructor */ public X_AD_Language (Properties ctx, int AD_Language_ID, String trxName) { super (ctx, AD_Language_ID, trxName); /** if (AD_Language_ID == 0) { setAD_Language (null); setAD_Language_ID (0); // @SQL=SELECT NVL(MAX(AD_Language_ID),0)+1 AS DefaultValue FROM AD_Language setIsBaseLanguage (false); // N setIsSystemLanguage (false); setName (null); setPrintName (null); } */ } /** Standard Constructor */ public X_AD_Language (Properties ctx, int AD_Language_ID, String trxName, String ... virtualColumns) { super (ctx, AD_Language_ID, trxName, virtualColumns); /** if (AD_Language_ID == 0) { setAD_Language (null); setAD_Language_ID (0); // @SQL=SELECT NVL(MAX(AD_Language_ID),0)+1 AS DefaultValue FROM AD_Language setIsBaseLanguage (false); // N setIsSystemLanguage (false); setName (null); setPrintName (null); } */ } /** Standard Constructor */ public X_AD_Language (Properties ctx, String AD_Language_UU, String trxName) { super (ctx, AD_Language_UU, trxName); /** if (AD_Language_UU == null) { setAD_Language (null); setAD_Language_ID (0); // @SQL=SELECT NVL(MAX(AD_Language_ID),0)+1 AS DefaultValue FROM AD_Language setIsBaseLanguage (false); // N setIsSystemLanguage (false); setName (null); setPrintName (null); } */ } /** Standard Constructor */ public X_AD_Language (Properties ctx, String AD_Language_UU, String trxName, String ... virtualColumns) { super (ctx, AD_Language_UU, trxName, virtualColumns); /** if (AD_Language_UU == null) { setAD_Language (null); setAD_Language_ID (0); // @SQL=SELECT NVL(MAX(AD_Language_ID),0)+1 AS DefaultValue FROM AD_Language setIsBaseLanguage (false); // N setIsSystemLanguage (false); setName (null); setPrintName (null); } */ } /** Load Constructor */ public X_AD_Language (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_Language[") .append(get_ID()).append(",Name=").append(getName()).append("]"); return sb.toString(); } /** Set Language. @param AD_Language Language for this entity */ public void setAD_Language (String AD_Language) { set_ValueNoCheck (COLUMNNAME_AD_Language, AD_Language); } /** Get Language. @return Language for this entity */ public String getAD_Language() { return (String)get_Value(COLUMNNAME_AD_Language); } /** Set Language ID. @param AD_Language_ID Language ID */ public void setAD_Language_ID (int AD_Language_ID) { if (AD_Language_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Language_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Language_ID, Integer.valueOf(AD_Language_ID)); } /** Get Language ID. @return Language ID */ public int getAD_Language_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Language_ID); if (ii == null) return 0; return ii.intValue(); } /** Set AD_Language_UU. @param AD_Language_UU AD_Language_UU */ public void setAD_Language_UU (String AD_Language_UU) { set_Value (COLUMNNAME_AD_Language_UU, AD_Language_UU); } /** Get AD_Language_UU. @return AD_Language_UU */ public String getAD_Language_UU() { return (String)get_Value(COLUMNNAME_AD_Language_UU); } public org.compiere.model.I_AD_PrintPaper getAD_PrintPaper() throws RuntimeException { return (org.compiere.model.I_AD_PrintPaper)MTable.get(getCtx(), org.compiere.model.I_AD_PrintPaper.Table_ID) .getPO(getAD_PrintPaper_ID(), get_TrxName()); } /** Set Print Paper. @param AD_PrintPaper_ID Printer paper definition */ public void setAD_PrintPaper_ID (int AD_PrintPaper_ID) { if (AD_PrintPaper_ID < 1) set_Value (COLUMNNAME_AD_PrintPaper_ID, null); else set_Value (COLUMNNAME_AD_PrintPaper_ID, Integer.valueOf(AD_PrintPaper_ID)); } /** Get Print Paper. @return Printer paper definition */ public int getAD_PrintPaper_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintPaper_ID); if (ii == null) return 0; return ii.intValue(); } /** Set ISO Country Code. @param CountryCode 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) { set_Value (COLUMNNAME_CountryCode, CountryCode); } /** Get ISO Country Code. @return 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(COLUMNNAME_CountryCode); } /** Set Date Pattern. @param DatePattern Java Date Pattern */ public void setDatePattern (String DatePattern) { set_Value (COLUMNNAME_DatePattern, DatePattern); } /** Get Date Pattern. @return Java Date Pattern */ public String getDatePattern() { return (String)get_Value(COLUMNNAME_DatePattern); } /** Set Base Language. @param IsBaseLanguage The system information is maintained in this language */ public void setIsBaseLanguage (boolean IsBaseLanguage) { set_ValueNoCheck (COLUMNNAME_IsBaseLanguage, Boolean.valueOf(IsBaseLanguage)); } /** Get Base Language. @return The system information is maintained in this language */ public boolean isBaseLanguage() { Object oo = get_Value(COLUMNNAME_IsBaseLanguage); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Decimal Point. @param IsDecimalPoint The number notation has a decimal point (no decimal comma) */ public void setIsDecimalPoint (boolean IsDecimalPoint) { set_Value (COLUMNNAME_IsDecimalPoint, Boolean.valueOf(IsDecimalPoint)); } /** Get Decimal Point. @return The number notation has a decimal point (no decimal comma) */ public boolean isDecimalPoint() { Object oo = get_Value(COLUMNNAME_IsDecimalPoint); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Login Locale. @param IsLoginLocale Login Locale */ public void setIsLoginLocale (boolean IsLoginLocale) { set_Value (COLUMNNAME_IsLoginLocale, Boolean.valueOf(IsLoginLocale)); } /** Get Login Locale. @return Login Locale */ public boolean isLoginLocale() { Object oo = get_Value(COLUMNNAME_IsLoginLocale); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set System Language. @param IsSystemLanguage The screens, etc. are maintained in this Language */ public void setIsSystemLanguage (boolean IsSystemLanguage) { set_Value (COLUMNNAME_IsSystemLanguage, Boolean.valueOf(IsSystemLanguage)); } /** Get System Language. @return The screens, etc. are maintained in this Language */ public boolean isSystemLanguage() { Object oo = get_Value(COLUMNNAME_IsSystemLanguage); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set ISO Language Code. @param LanguageISO Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt */ public void setLanguageISO (String LanguageISO) { set_Value (COLUMNNAME_LanguageISO, LanguageISO); } /** Get ISO Language Code. @return Lower-case two-letter ISO-3166 code - http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt */ public String getLanguageISO() { return (String)get_Value(COLUMNNAME_LanguageISO); } /** 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 Print Text. @param PrintName The label text to be printed on a document or correspondence. */ public void setPrintName (String PrintName) { set_Value (COLUMNNAME_PrintName, PrintName); } /** Get Print Text. @return The label text to be printed on a document or correspondence. */ public String getPrintName() { return (String)get_Value(COLUMNNAME_PrintName); } /** Set Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing() { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Time Pattern. @param TimePattern Java Time Pattern */ public void setTimePattern (String TimePattern) { set_Value (COLUMNNAME_TimePattern, TimePattern); } /** Get Time Pattern. @return Java Time Pattern */ public String getTimePattern() { return (String)get_Value(COLUMNNAME_TimePattern); } }