/****************************************************************************** * 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.sql.Timestamp; import java.util.Properties; import org.compiere.util.KeyNamePair; /** Generated Model for A_Registration * @author iDempiere (generated) * @version Release 11 - $Id$ */ @org.adempiere.base.Model(table="A_Registration") public class X_A_Registration extends PO implements I_A_Registration, I_Persistent { /** * */ private static final long serialVersionUID = 20231222L; /** Standard Constructor */ public X_A_Registration (Properties ctx, int A_Registration_ID, String trxName) { super (ctx, A_Registration_ID, trxName); /** if (A_Registration_ID == 0) { setA_Registration_ID (0); setAssetServiceDate (new Timestamp( System.currentTimeMillis() )); setIsAllowPublish (false); setIsInProduction (false); setIsRegistered (false); setName (null); } */ } /** Standard Constructor */ public X_A_Registration (Properties ctx, int A_Registration_ID, String trxName, String ... virtualColumns) { super (ctx, A_Registration_ID, trxName, virtualColumns); /** if (A_Registration_ID == 0) { setA_Registration_ID (0); setAssetServiceDate (new Timestamp( System.currentTimeMillis() )); setIsAllowPublish (false); setIsInProduction (false); setIsRegistered (false); setName (null); } */ } /** Standard Constructor */ public X_A_Registration (Properties ctx, String A_Registration_UU, String trxName) { super (ctx, A_Registration_UU, trxName); /** if (A_Registration_UU == null) { setA_Registration_ID (0); setAssetServiceDate (new Timestamp( System.currentTimeMillis() )); setIsAllowPublish (false); setIsInProduction (false); setIsRegistered (false); setName (null); } */ } /** Standard Constructor */ public X_A_Registration (Properties ctx, String A_Registration_UU, String trxName, String ... virtualColumns) { super (ctx, A_Registration_UU, trxName, virtualColumns); /** if (A_Registration_UU == null) { setA_Registration_ID (0); setAssetServiceDate (new Timestamp( System.currentTimeMillis() )); setIsAllowPublish (false); setIsInProduction (false); setIsRegistered (false); setName (null); } */ } /** Load Constructor */ public X_A_Registration (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_A_Registration[") .append(get_ID()).append(",Name=").append(getName()).append("]"); return sb.toString(); } public org.compiere.model.I_A_Asset getA_Asset() throws RuntimeException { return (org.compiere.model.I_A_Asset)MTable.get(getCtx(), org.compiere.model.I_A_Asset.Table_ID) .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID Asset used internally or by customers */ public void setA_Asset_ID (int A_Asset_ID) { if (A_Asset_ID < 1) set_Value (COLUMNNAME_A_Asset_ID, null); else set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @return Asset used internally or by customers */ public int getA_Asset_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_User getAD_User() throws RuntimeException { return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_ID) .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact */ public void setAD_User_ID (int AD_User_ID) { if (AD_User_ID < 1) set_Value (COLUMNNAME_AD_User_ID, null); else set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @return User within the system - Internal or Business Partner Contact */ public int getAD_User_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Registration. @param A_Registration_ID User Asset Registration */ public void setA_Registration_ID (int A_Registration_ID) { if (A_Registration_ID < 1) set_ValueNoCheck (COLUMNNAME_A_Registration_ID, null); else set_ValueNoCheck (COLUMNNAME_A_Registration_ID, Integer.valueOf(A_Registration_ID)); } /** Get Registration. @return User Asset Registration */ public int getA_Registration_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_A_Registration_ID); if (ii == null) return 0; return ii.intValue(); } /** Set A_Registration_UU. @param A_Registration_UU A_Registration_UU */ public void setA_Registration_UU (String A_Registration_UU) { set_Value (COLUMNNAME_A_Registration_UU, A_Registration_UU); } /** Get A_Registration_UU. @return A_Registration_UU */ public String getA_Registration_UU() { return (String)get_Value(COLUMNNAME_A_Registration_UU); } /** Set In Service Date. @param AssetServiceDate Date when Asset was put into service */ public void setAssetServiceDate (Timestamp AssetServiceDate) { set_ValueNoCheck (COLUMNNAME_AssetServiceDate, AssetServiceDate); } /** Get In Service Date. @return Date when Asset was put into service */ public Timestamp getAssetServiceDate() { return (Timestamp)get_Value(COLUMNNAME_AssetServiceDate); } 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(); } /** 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); } /** Set Comment/Help. @param Help Comment or Hint */ public void setHelp (String Help) { set_Value (COLUMNNAME_Help, Help); } /** Get Comment/Help. @return Comment or Hint */ public String getHelp() { return (String)get_Value(COLUMNNAME_Help); } /** Set Allowed to be Published. @param IsAllowPublish You allow to publish the information, not just statistical summary info */ public void setIsAllowPublish (boolean IsAllowPublish) { set_Value (COLUMNNAME_IsAllowPublish, Boolean.valueOf(IsAllowPublish)); } /** Get Allowed to be Published. @return You allow to publish the information, not just statistical summary info */ public boolean isAllowPublish() { Object oo = get_Value(COLUMNNAME_IsAllowPublish); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set In Production. @param IsInProduction The system is in production */ public void setIsInProduction (boolean IsInProduction) { set_Value (COLUMNNAME_IsInProduction, Boolean.valueOf(IsInProduction)); } /** Get In Production. @return The system is in production */ public boolean isInProduction() { Object oo = get_Value(COLUMNNAME_IsInProduction); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Registered. @param IsRegistered The application is registered. */ public void setIsRegistered (boolean IsRegistered) { set_Value (COLUMNNAME_IsRegistered, Boolean.valueOf(IsRegistered)); } /** Get Registered. @return The application is registered. */ public boolean isRegistered() { Object oo = get_Value(COLUMNNAME_IsRegistered); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } public org.compiere.model.I_M_Product getM_Product() throws RuntimeException { return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_ID) .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID Product, Service, Item */ public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @return Product, Service, Item */ public int getM_Product_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); if (ii == null) return 0; return ii.intValue(); } /** 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 Note. @param Note Optional additional user defined information */ public void setNote (String Note) { set_Value (COLUMNNAME_Note, Note); } /** Get Note. @return Optional additional user defined information */ public String getNote() { return (String)get_Value(COLUMNNAME_Note); } /** 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 Remote Addr. @param Remote_Addr Remote Address */ public void setRemote_Addr (String Remote_Addr) { set_Value (COLUMNNAME_Remote_Addr, Remote_Addr); } /** Get Remote Addr. @return Remote Address */ public String getRemote_Addr() { return (String)get_Value(COLUMNNAME_Remote_Addr); } /** Set Remote Host. @param Remote_Host Remote host Info */ public void setRemote_Host (String Remote_Host) { set_Value (COLUMNNAME_Remote_Host, Remote_Host); } /** Get Remote Host. @return Remote host Info */ public String getRemote_Host() { return (String)get_Value(COLUMNNAME_Remote_Host); } }