/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 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.spinsuite.model; import android.content.Context; import android.database.Cursor; import java.sql.Timestamp; import java.util.Date; import org.spinsuite.base.DB; import org.spinsuite.util.KeyNamePair; /** Generated Model for AD_User * @author Adempiere (generated) * @version Release 3.7.0LTS (1252452765) - $Id$ */ public class X_AD_User extends PO implements I_AD_User, I_Persistent { /** * */ private static final long serialVersionUID = 20140407L; /** Standard Constructor */ public X_AD_User (Context ctx, int AD_User_ID, DB conn) { super (ctx, AD_User_ID, conn); /** if (AD_User_ID == 0) { setAD_User_ID (0); setIsFullBPAccess (true); // Y setIsInPayroll (false); // N setName (null); setNotificationType (null); // E } */ } /** Load Constructor */ public X_AD_User (Context ctx, Cursor rs, DB conn) { super (ctx, rs, conn); } /** Load Meta Data */ protected POInfo initPO (Context ctx) { POInfo poi = POInfo.getPOInfo (ctx, SFA_Table_ID, get_Connection()); return poi; } public String toString() { StringBuffer sb = new StringBuffer ("X_AD_User[") .append(get_ID()).append("]"); return sb.toString(); } /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization */ public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) { if (AD_OrgTrx_ID < 1) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); else set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); } /** Get Trx Organization. @return Performing or initiating organization */ public int getAD_OrgTrx_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Usuario. @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 Usuario. @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 Birthday. @param Birthday Birthday or Anniversary day */ public void setBirthday (Date Birthday) { set_Value (COLUMNNAME_Birthday, Birthday); } /** Get Birthday. @return Birthday or Anniversary day */ public Date getBirthday () { return (Date)get_Value(COLUMNNAME_Birthday); } /** 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 Partner Location. @param C_BPartner_Location_ID Identifies the (ship to) address for this Business Partner */ public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) { if (C_BPartner_Location_ID < 1) set_Value (COLUMNNAME_C_BPartner_Location_ID, null); else set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); } /** Get Partner Location. @return Identifies the (ship to) address for this Business Partner */ public int getC_BPartner_Location_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Greeting. @param C_Greeting_ID Greeting to print on correspondence */ public void setC_Greeting_ID (int C_Greeting_ID) { if (C_Greeting_ID < 1) set_Value (COLUMNNAME_C_Greeting_ID, null); else set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); } /** Get Greeting. @return Greeting to print on correspondence */ public int getC_Greeting_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Greeting_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Position. @param C_Job_ID Job Position */ public void setC_Job_ID (int C_Job_ID) { if (C_Job_ID < 1) set_Value (COLUMNNAME_C_Job_ID, null); else set_Value (COLUMNNAME_C_Job_ID, Integer.valueOf(C_Job_ID)); } /** Get Position. @return Job Position */ public int getC_Job_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_Job_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Comments. @param Comments Comments or additional information */ public void setComments (String Comments) { set_Value (COLUMNNAME_Comments, Comments); } /** Get Comments. @return Comments or additional information */ public String getComments () { return (String)get_Value(COLUMNNAME_Comments); } /** ConnectionProfile AD_Reference_ID=364 */ public static final int CONNECTIONPROFILE_AD_Reference_ID=364; /** LAN = L */ public static final String CONNECTIONPROFILE_LAN = "L"; /** Terminal Server = T */ public static final String CONNECTIONPROFILE_TerminalServer = "T"; /** VPN = V */ public static final String CONNECTIONPROFILE_VPN = "V"; /** WAN = W */ public static final String CONNECTIONPROFILE_WAN = "W"; /** Set Connection Profile. @param ConnectionProfile How a Java Client connects to the server(s) */ public void setConnectionProfile (String ConnectionProfile) { set_Value (COLUMNNAME_ConnectionProfile, ConnectionProfile); } /** Get Connection Profile. @return How a Java Client connects to the server(s) */ public String getConnectionProfile () { return (String)get_Value(COLUMNNAME_ConnectionProfile); } /** 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 EMail Address. @param EMail Electronic Mail Address */ public void setEMail (String EMail) { set_Value (COLUMNNAME_EMail, EMail); } /** Get EMail Address. @return Electronic Mail Address */ public String getEMail () { return (String)get_Value(COLUMNNAME_EMail); } /** Set EMail User ID. @param EMailUser User Name (ID) in the Mail System */ public void setEMailUser (String EMailUser) { set_Value (COLUMNNAME_EMailUser, EMailUser); } /** Get EMail User ID. @return User Name (ID) in the Mail System */ public String getEMailUser () { return (String)get_Value(COLUMNNAME_EMailUser); } /** Set EMail User Password. @param EMailUserPW Password of your email user id */ public void setEMailUserPW (String EMailUserPW) { set_Value (COLUMNNAME_EMailUserPW, EMailUserPW); } /** Get EMail User Password. @return Password of your email user id */ public String getEMailUserPW () { return (String)get_Value(COLUMNNAME_EMailUserPW); } /** Set Verification Info. @param EMailVerify Verification information of EMail Address */ public void setEMailVerify (String EMailVerify) { set_Value (COLUMNNAME_EMailVerify, EMailVerify); } /** Get Verification Info. @return Verification information of EMail Address */ public String getEMailVerify () { return (String)get_Value(COLUMNNAME_EMailVerify); } /** Set EMail Verify. @param EMailVerifyDate Date Email was verified */ public void setEMailVerifyDate (Date EMailVerifyDate) { set_Value (COLUMNNAME_EMailVerifyDate, EMailVerifyDate); } /** Get EMail Verify. @return Date Email was verified */ public Date getEMailVerifyDate () { return (Date)get_Value(COLUMNNAME_EMailVerifyDate); } /** Set Fax. @param Fax Facsimile number */ public void setFax (String Fax) { set_Value (COLUMNNAME_Fax, Fax); } /** Get Fax. @return Facsimile number */ public String getFax () { return (String)get_Value(COLUMNNAME_Fax); } /** Set Full BP Access. @param IsFullBPAccess The user/contact has full access to Business Partner information and resources */ public void setIsFullBPAccess (boolean IsFullBPAccess) { set_Value (COLUMNNAME_IsFullBPAccess, Boolean.valueOf(IsFullBPAccess)); } /** Get Full BP Access. @return The user/contact has full access to Business Partner information and resources */ public boolean isFullBPAccess () { Object oo = get_Value(COLUMNNAME_IsFullBPAccess); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Is In Payroll. @param IsInPayroll Defined if any User Contact will be used for Calculate Payroll */ public void setIsInPayroll (boolean IsInPayroll) { set_Value (COLUMNNAME_IsInPayroll, Boolean.valueOf(IsInPayroll)); } /** Get Is In Payroll. @return Defined if any User Contact will be used for Calculate Payroll */ public boolean isInPayroll () { Object oo = get_Value(COLUMNNAME_IsInPayroll); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Last Contact. @param LastContact Date this individual was last contacted */ public void setLastContact (Date LastContact) { set_Value (COLUMNNAME_LastContact, LastContact); } /** Get Last Contact. @return Date this individual was last contacted */ public Date getLastContact () { return (Date)get_Value(COLUMNNAME_LastContact); } /** Set Last Result. @param LastResult Result of last contact */ public void setLastResult (String LastResult) { set_Value (COLUMNNAME_LastResult, LastResult); } /** Get Last Result. @return Result of last contact */ public String getLastResult () { return (String)get_Value(COLUMNNAME_LastResult); } /** Set LDAP User Name. @param LDAPUser User Name used for authorization via LDAP (directory) services */ public void setLDAPUser (String LDAPUser) { set_Value (COLUMNNAME_LDAPUser, LDAPUser); } /** Get LDAP User Name. @return User Name used for authorization via LDAP (directory) services */ public String getLDAPUser () { return (String)get_Value(COLUMNNAME_LDAPUser); } /** 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()); } /** NotificationType AD_Reference_ID=344 */ public static final int NOTIFICATIONTYPE_AD_Reference_ID=344; /** EMail = E */ public static final String NOTIFICATIONTYPE_EMail = "E"; /** Notice = N */ public static final String NOTIFICATIONTYPE_Notice = "N"; /** None = X */ public static final String NOTIFICATIONTYPE_None = "X"; /** EMail+Notice = B */ public static final String NOTIFICATIONTYPE_EMailPlusNotice = "B"; /** Set Notification Type. @param NotificationType Type of Notifications */ public void setNotificationType (String NotificationType) { set_Value (COLUMNNAME_NotificationType, NotificationType); } /** Get Notification Type. @return Type of Notifications */ public String getNotificationType () { return (String)get_Value(COLUMNNAME_NotificationType); } /** Set Password. @param Password Password of any length (case sensitive) */ public void setPassword (String Password) { set_Value (COLUMNNAME_Password, Password); } /** Get Password. @return Password of any length (case sensitive) */ public String getPassword () { return (String)get_Value(COLUMNNAME_Password); } /** Set Phone. @param Phone Identifies a telephone number */ public void setPhone (String Phone) { set_Value (COLUMNNAME_Phone, Phone); } /** Get Phone. @return Identifies a telephone number */ public String getPhone () { return (String)get_Value(COLUMNNAME_Phone); } /** Set 2nd Phone. @param Phone2 Identifies an alternate telephone number. */ public void setPhone2 (String Phone2) { set_Value (COLUMNNAME_Phone2, Phone2); } /** Get 2nd Phone. @return Identifies an alternate telephone number. */ public String getPhone2 () { return (String)get_Value(COLUMNNAME_Phone2); } /** 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 Supervisor. @param Supervisor_ID Supervisor for this user/organization - used for escalation and approval */ public void setSupervisor_ID (int Supervisor_ID) { if (Supervisor_ID < 1) set_Value (COLUMNNAME_Supervisor_ID, null); else set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); } /** Get Supervisor. @return Supervisor for this user/organization - used for escalation and approval */ public int getSupervisor_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Title. @param Title Name this entity is referred to as */ public void setTitle (String Title) { set_Value (COLUMNNAME_Title, Title); } /** Get Title. @return Name this entity is referred to as */ public String getTitle () { return (String)get_Value(COLUMNNAME_Title); } /** Set User PIN. @param UserPIN User PIN */ public void setUserPIN (String UserPIN) { set_Value (COLUMNNAME_UserPIN, UserPIN); } /** Get User PIN. @return User PIN */ public String getUserPIN () { return (String)get_Value(COLUMNNAME_UserPIN); } /** Set Search Key. @param Value Search key for the record in the format required - must be unique */ public void setValue (String Value) { set_Value (COLUMNNAME_Value, Value); } /** Get Search Key. @return Search key for the record in the format required - must be unique */ public String getValue () { return (String)get_Value(COLUMNNAME_Value); } }