/****************************************************************************** * 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.eevolution.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; import org.compiere.model.*; import org.compiere.util.Env; /** Generated Model for HR_Attribute * @author iDempiere (generated) * @version Release 12 - $Id$ */ @org.adempiere.base.Model(table="HR_Attribute") public class X_HR_Attribute extends PO implements I_HR_Attribute, I_Persistent { /** * */ private static final long serialVersionUID = 20241222L; /** Standard Constructor */ public X_HR_Attribute (Properties ctx, int HR_Attribute_ID, String trxName) { super (ctx, HR_Attribute_ID, trxName); /** if (HR_Attribute_ID == 0) { setHR_Attribute_ID (0); setHR_Concept_ID (0); setValidFrom (new Timestamp( System.currentTimeMillis() )); } */ } /** Standard Constructor */ public X_HR_Attribute (Properties ctx, int HR_Attribute_ID, String trxName, String ... virtualColumns) { super (ctx, HR_Attribute_ID, trxName, virtualColumns); /** if (HR_Attribute_ID == 0) { setHR_Attribute_ID (0); setHR_Concept_ID (0); setValidFrom (new Timestamp( System.currentTimeMillis() )); } */ } /** Standard Constructor */ public X_HR_Attribute (Properties ctx, String HR_Attribute_UU, String trxName) { super (ctx, HR_Attribute_UU, trxName); /** if (HR_Attribute_UU == null) { setHR_Attribute_ID (0); setHR_Concept_ID (0); setValidFrom (new Timestamp( System.currentTimeMillis() )); } */ } /** Standard Constructor */ public X_HR_Attribute (Properties ctx, String HR_Attribute_UU, String trxName, String ... virtualColumns) { super (ctx, HR_Attribute_UU, trxName, virtualColumns); /** if (HR_Attribute_UU == null) { setHR_Attribute_ID (0); setHR_Concept_ID (0); setValidFrom (new Timestamp( System.currentTimeMillis() )); } */ } /** Load Constructor */ public X_HR_Attribute (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, get_TrxName()); return poi; } public String toString() { StringBuilder sb = new StringBuilder ("X_HR_Attribute[") .append(get_ID()).append("]"); return sb.toString(); } public org.compiere.model.I_AD_Rule getAD_Rule() throws RuntimeException { return (org.compiere.model.I_AD_Rule)MTable.get(getCtx(), org.compiere.model.I_AD_Rule.Table_ID) .getPO(getAD_Rule_ID(), get_TrxName()); } /** Set Rule. @param AD_Rule_ID Rule */ public void setAD_Rule_ID (int AD_Rule_ID) { if (AD_Rule_ID < 1) set_Value (COLUMNNAME_AD_Rule_ID, null); else set_Value (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); } /** Get Rule. @return Rule */ public int getAD_Rule_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Rule_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Amount. @param Amount Amount in a defined currency */ public void setAmount (BigDecimal Amount) { set_Value (COLUMNNAME_Amount, Amount); } /** Get Amount. @return Amount in a defined currency */ public BigDecimal getAmount() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount); if (bd == null) return Env.ZERO; return bd; } public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException { return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_ID) .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner. @param C_BPartner_ID Identifies a Business Partner */ public void setC_BPartner_ID (int C_BPartner_ID) { if (C_BPartner_ID < 1) set_Value (COLUMNNAME_C_BPartner_ID, null); else set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner. @return Identifies a Business Partner */ public int getC_BPartner_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); if (ii == null) return 0; return ii.intValue(); } /** ColumnType AD_Reference_ID=53243 */ public static final int COLUMNTYPE_AD_Reference_ID=53243; /** Amount = A */ public static final String COLUMNTYPE_Amount = "A"; /** Date = D */ public static final String COLUMNTYPE_Date = "D"; /** Quantity = Q */ public static final String COLUMNTYPE_Quantity = "Q"; /** Text = T */ public static final String COLUMNTYPE_Text = "T"; /** Set Column Type. @param ColumnType Column Type */ public void setColumnType (String ColumnType) { set_Value (COLUMNNAME_ColumnType, ColumnType); } /** Get Column Type. @return Column Type */ public String getColumnType() { return (String)get_Value(COLUMNNAME_ColumnType); } /** 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); } public I_C_ValidCombination getHR_Attribute_A() throws RuntimeException { return (I_C_ValidCombination)MTable.get(getCtx(), I_C_ValidCombination.Table_ID) .getPO(getHR_Attribute_Acct(), get_TrxName()); } /** Set Payroll Attribute Account. @param HR_Attribute_Acct Payroll Attribute Account */ public void setHR_Attribute_Acct (int HR_Attribute_Acct) { set_Value (COLUMNNAME_HR_Attribute_Acct, Integer.valueOf(HR_Attribute_Acct)); } /** Get Payroll Attribute Account. @return Payroll Attribute Account */ public int getHR_Attribute_Acct() { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Attribute_Acct); if (ii == null) return 0; return ii.intValue(); } /** Set Payroll Employee Attribute. @param HR_Attribute_ID Payroll Employee Attribute */ public void setHR_Attribute_ID (int HR_Attribute_ID) { if (HR_Attribute_ID < 1) set_ValueNoCheck (COLUMNNAME_HR_Attribute_ID, null); else set_ValueNoCheck (COLUMNNAME_HR_Attribute_ID, Integer.valueOf(HR_Attribute_ID)); } /** Get Payroll Employee Attribute. @return Payroll Employee Attribute */ public int getHR_Attribute_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Attribute_ID); if (ii == null) return 0; return ii.intValue(); } /** Set HR_Attribute_UU. @param HR_Attribute_UU HR_Attribute_UU */ public void setHR_Attribute_UU (String HR_Attribute_UU) { set_Value (COLUMNNAME_HR_Attribute_UU, HR_Attribute_UU); } /** Get HR_Attribute_UU. @return HR_Attribute_UU */ public String getHR_Attribute_UU() { return (String)get_Value(COLUMNNAME_HR_Attribute_UU); } public org.eevolution.model.I_HR_Concept getHR_Concept() throws RuntimeException { return (org.eevolution.model.I_HR_Concept)MTable.get(getCtx(), org.eevolution.model.I_HR_Concept.Table_ID) .getPO(getHR_Concept_ID(), get_TrxName()); } /** Set Payroll Concept. @param HR_Concept_ID Payroll Concept */ public void setHR_Concept_ID (int HR_Concept_ID) { if (HR_Concept_ID < 1) set_ValueNoCheck (COLUMNNAME_HR_Concept_ID, null); else set_ValueNoCheck (COLUMNNAME_HR_Concept_ID, Integer.valueOf(HR_Concept_ID)); } /** Get Payroll Concept. @return Payroll Concept */ public int getHR_Concept_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Concept_ID); if (ii == null) return 0; return ii.intValue(); } public org.eevolution.model.I_HR_Department getHR_Department() throws RuntimeException { return (org.eevolution.model.I_HR_Department)MTable.get(getCtx(), org.eevolution.model.I_HR_Department.Table_ID) .getPO(getHR_Department_ID(), get_TrxName()); } /** Set Payroll Department. @param HR_Department_ID Payroll Department */ public void setHR_Department_ID (int HR_Department_ID) { if (HR_Department_ID < 1) set_Value (COLUMNNAME_HR_Department_ID, null); else set_Value (COLUMNNAME_HR_Department_ID, Integer.valueOf(HR_Department_ID)); } /** Get Payroll Department. @return Payroll Department */ public int getHR_Department_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Department_ID); if (ii == null) return 0; return ii.intValue(); } public org.eevolution.model.I_HR_Employee getHR_Employee() throws RuntimeException { return (org.eevolution.model.I_HR_Employee)MTable.get(getCtx(), org.eevolution.model.I_HR_Employee.Table_ID) .getPO(getHR_Employee_ID(), get_TrxName()); } /** Set Payroll Employee. @param HR_Employee_ID Payroll Employee */ public void setHR_Employee_ID (int HR_Employee_ID) { if (HR_Employee_ID < 1) set_Value (COLUMNNAME_HR_Employee_ID, null); else set_Value (COLUMNNAME_HR_Employee_ID, Integer.valueOf(HR_Employee_ID)); } /** Get Payroll Employee. @return Payroll Employee */ public int getHR_Employee_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Employee_ID); if (ii == null) return 0; return ii.intValue(); } public org.eevolution.model.I_HR_Job getHR_Job() throws RuntimeException { return (org.eevolution.model.I_HR_Job)MTable.get(getCtx(), org.eevolution.model.I_HR_Job.Table_ID) .getPO(getHR_Job_ID(), get_TrxName()); } /** Set Payroll Job. @param HR_Job_ID Payroll Job */ public void setHR_Job_ID (int HR_Job_ID) { if (HR_Job_ID < 1) set_Value (COLUMNNAME_HR_Job_ID, null); else set_Value (COLUMNNAME_HR_Job_ID, Integer.valueOf(HR_Job_ID)); } /** Get Payroll Job. @return Payroll Job */ public int getHR_Job_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Job_ID); if (ii == null) return 0; return ii.intValue(); } public org.eevolution.model.I_HR_Payroll getHR_Payroll() throws RuntimeException { return (org.eevolution.model.I_HR_Payroll)MTable.get(getCtx(), org.eevolution.model.I_HR_Payroll.Table_ID) .getPO(getHR_Payroll_ID(), get_TrxName()); } /** Set Payroll. @param HR_Payroll_ID Payroll */ public void setHR_Payroll_ID (int HR_Payroll_ID) { if (HR_Payroll_ID < 1) set_Value (COLUMNNAME_HR_Payroll_ID, null); else set_Value (COLUMNNAME_HR_Payroll_ID, Integer.valueOf(HR_Payroll_ID)); } /** Get Payroll. @return Payroll */ public int getHR_Payroll_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_HR_Payroll_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Printed. @param IsPrinted Indicates if this document / line is printed */ public void setIsPrinted (boolean IsPrinted) { set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); } /** Get Printed. @return Indicates if this document / line is printed */ public boolean isPrinted() { Object oo = get_Value(COLUMNNAME_IsPrinted); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Max Value. @param MaxValue Max Value */ public void setMaxValue (int MaxValue) { set_Value (COLUMNNAME_MaxValue, Integer.valueOf(MaxValue)); } /** Get Max Value. @return Max Value */ public int getMaxValue() { Integer ii = (Integer)get_Value(COLUMNNAME_MaxValue); if (ii == null) return 0; return ii.intValue(); } /** Set Min Value. @param MinValue Min Value */ public void setMinValue (int MinValue) { set_Value (COLUMNNAME_MinValue, Integer.valueOf(MinValue)); } /** Get Min Value. @return Min Value */ public int getMinValue() { Integer ii = (Integer)get_Value(COLUMNNAME_MinValue); if (ii == null) return 0; return ii.intValue(); } /** Set Quantity. @param Qty Quantity */ public void setQty (BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } /** Get Quantity. @return Quantity */ public BigDecimal getQty() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null) return Env.ZERO; return bd; } /** Set Service date. @param ServiceDate Date service was provided */ public void setServiceDate (Timestamp ServiceDate) { set_Value (COLUMNNAME_ServiceDate, ServiceDate); } /** Get Service date. @return Date service was provided */ public Timestamp getServiceDate() { return (Timestamp)get_Value(COLUMNNAME_ServiceDate); } /** Set Text Message. @param TextMsg Text Message */ public void setTextMsg (String TextMsg) { set_Value (COLUMNNAME_TextMsg, TextMsg); } /** Get Text Message. @return Text Message */ public String getTextMsg() { return (String)get_Value(COLUMNNAME_TextMsg); } /** Set Valid from. @param ValidFrom Valid from including this date (first day) */ public void setValidFrom (Timestamp ValidFrom) { set_Value (COLUMNNAME_ValidFrom, ValidFrom); } /** Get Valid from. @return Valid from including this date (first day) */ public Timestamp getValidFrom() { return (Timestamp)get_Value(COLUMNNAME_ValidFrom); } /** Set Valid to. @param ValidTo Valid to including this date (last day) */ public void setValidTo (Timestamp ValidTo) { set_Value (COLUMNNAME_ValidTo, ValidTo); } /** Get Valid to. @return Valid to including this date (last day) */ public Timestamp getValidTo() { return (Timestamp)get_Value(COLUMNNAME_ValidTo); } }