/****************************************************************************** * 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_Note * @author iDempiere (generated) * @version Release 11 - $Id$ */ @org.adempiere.base.Model(table="AD_Note") public class X_AD_Note extends PO implements I_AD_Note, I_Persistent { /** * */ private static final long serialVersionUID = 20231222L; /** Standard Constructor */ public X_AD_Note (Properties ctx, int AD_Note_ID, String trxName) { super (ctx, AD_Note_ID, trxName); /** if (AD_Note_ID == 0) { setAD_Message_ID (0); setAD_Note_ID (0); } */ } /** Standard Constructor */ public X_AD_Note (Properties ctx, int AD_Note_ID, String trxName, String ... virtualColumns) { super (ctx, AD_Note_ID, trxName, virtualColumns); /** if (AD_Note_ID == 0) { setAD_Message_ID (0); setAD_Note_ID (0); } */ } /** Standard Constructor */ public X_AD_Note (Properties ctx, String AD_Note_UU, String trxName) { super (ctx, AD_Note_UU, trxName); /** if (AD_Note_UU == null) { setAD_Message_ID (0); setAD_Note_ID (0); } */ } /** Standard Constructor */ public X_AD_Note (Properties ctx, String AD_Note_UU, String trxName, String ... virtualColumns) { super (ctx, AD_Note_UU, trxName, virtualColumns); /** if (AD_Note_UU == null) { setAD_Message_ID (0); setAD_Note_ID (0); } */ } /** Load Constructor */ public X_AD_Note (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** AccessLevel * @return 7 - System - 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_AD_Note[") .append(get_ID()).append("]"); return sb.toString(); } public org.compiere.model.I_AD_BroadcastMessage getAD_BroadcastMessage() throws RuntimeException { return (org.compiere.model.I_AD_BroadcastMessage)MTable.get(getCtx(), org.compiere.model.I_AD_BroadcastMessage.Table_ID) .getPO(getAD_BroadcastMessage_ID(), get_TrxName()); } /** Set Broadcast Message. @param AD_BroadcastMessage_ID Broadcast Message */ public void setAD_BroadcastMessage_ID (int AD_BroadcastMessage_ID) { if (AD_BroadcastMessage_ID < 1) set_Value (COLUMNNAME_AD_BroadcastMessage_ID, null); else set_Value (COLUMNNAME_AD_BroadcastMessage_ID, Integer.valueOf(AD_BroadcastMessage_ID)); } /** Get Broadcast Message. @return Broadcast Message */ public int getAD_BroadcastMessage_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_BroadcastMessage_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_Message getAD_Message() throws RuntimeException { return (org.compiere.model.I_AD_Message)MTable.get(getCtx(), org.compiere.model.I_AD_Message.Table_ID) .getPO(getAD_Message_ID(), get_TrxName()); } /** Set Message. @param AD_Message_ID System Message */ public void setAD_Message_ID (int AD_Message_ID) { if (AD_Message_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Message_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Message_ID, Integer.valueOf(AD_Message_ID)); } /** Get Message. @return System Message */ public int getAD_Message_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Message_ID); if (ii == null) return 0; return ii.intValue(); } /** Get Record ID/ColumnName @return ID/ColumnName pair */ public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(getAD_Message_ID())); } /** Set Notice. @param AD_Note_ID System Notice */ public void setAD_Note_ID (int AD_Note_ID) { if (AD_Note_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Note_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Note_ID, Integer.valueOf(AD_Note_ID)); } /** Get Notice. @return System Notice */ public int getAD_Note_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Note_ID); if (ii == null) return 0; return ii.intValue(); } /** Set AD_Note_UU. @param AD_Note_UU AD_Note_UU */ public void setAD_Note_UU (String AD_Note_UU) { set_Value (COLUMNNAME_AD_Note_UU, AD_Note_UU); } /** Get AD_Note_UU. @return AD_Note_UU */ public String getAD_Note_UU() { return (String)get_Value(COLUMNNAME_AD_Note_UU); } public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException { return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_ID) .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID Database Table information */ public void setAD_Table_ID (int AD_Table_ID) { if (AD_Table_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @return Database Table information */ public int getAD_Table_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_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(); } public org.compiere.model.I_AD_WF_Activity getAD_WF_Activity() throws RuntimeException { return (org.compiere.model.I_AD_WF_Activity)MTable.get(getCtx(), org.compiere.model.I_AD_WF_Activity.Table_ID) .getPO(getAD_WF_Activity_ID(), get_TrxName()); } /** Set Workflow Activity. @param AD_WF_Activity_ID Workflow Activity */ public void setAD_WF_Activity_ID (int AD_WF_Activity_ID) { if (AD_WF_Activity_ID < 1) set_Value (COLUMNNAME_AD_WF_Activity_ID, null); else set_Value (COLUMNNAME_AD_WF_Activity_ID, Integer.valueOf(AD_WF_Activity_ID)); } /** Get Workflow Activity. @return Workflow Activity */ public int getAD_WF_Activity_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Activity_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 Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return The document has been processed */ public boolean isProcessed() { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** 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 Record ID. @param Record_ID Direct internal record ID */ public void setRecord_ID (int Record_ID) { if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. @return Direct internal record ID */ public int getRecord_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Reference. @param Reference Reference for this record */ public void setReference (String Reference) { set_Value (COLUMNNAME_Reference, Reference); } /** Get Reference. @return Reference for this record */ public String getReference() { return (String)get_Value(COLUMNNAME_Reference); } /** 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); } }