1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_AD_Replication extends PO 11 { 12 13 public X_AD_Replication (Properties ctx, int AD_Replication_ID) 14 { 15 super (ctx, AD_Replication_ID); 16 28 } 29 30 public X_AD_Replication (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 605; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_AD_Replication[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) 47 { 48 setValue ("AD_ReplicationStrategy_ID", new Integer (AD_ReplicationStrategy_ID)); 49 } 50 public int getAD_ReplicationStrategy_ID() 51 { 52 Integer ii = (Integer )getValue("AD_ReplicationStrategy_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 void setAD_Replication_ID (int AD_Replication_ID) 57 { 58 setValueNoCheck ("AD_Replication_ID", new Integer (AD_Replication_ID)); 59 } 60 public int getAD_Replication_ID() 61 { 62 Integer ii = (Integer )getValue("AD_Replication_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 void setDateLastRun (Timestamp DateLastRun) 67 { 68 setValueNoCheck ("DateLastRun", DateLastRun); 69 } 70 public Timestamp getDateLastRun() 71 { 72 return (Timestamp)getValue("DateLastRun"); 73 } 74 public void setDescription (String Description) 75 { 76 setValue ("Description", Description); 77 } 78 public String getDescription() 79 { 80 return (String )getValue("Description"); 81 } 82 public void setHelp (String Help) 83 { 84 setValue ("Help", Help); 85 } 86 public String getHelp() 87 { 88 return (String )getValue("Help"); 89 } 90 public void setHostAddress (String HostAddress) 91 { 92 if (HostAddress == null) throw new IllegalArgumentException ("HostAddress is mandatory"); 93 setValue ("HostAddress", HostAddress); 94 } 95 public String getHostAddress() 96 { 97 return (String )getValue("HostAddress"); 98 } 99 public void setHostPort (int HostPort) 100 { 101 setValue ("HostPort", new Integer (HostPort)); 102 } 103 public int getHostPort() 104 { 105 Integer ii = (Integer )getValue("HostPort"); 106 if (ii == null) return 0; 107 return ii.intValue(); 108 } 109 public void setIDRangeEnd (BigDecimal IDRangeEnd) 110 { 111 setValue ("IDRangeEnd", IDRangeEnd); 112 } 113 public BigDecimal getIDRangeEnd() 114 { 115 BigDecimal bd = (BigDecimal)getValue("IDRangeEnd"); 116 if (bd == null) return Env.ZERO; 117 return bd; 118 } 119 public void setIDRangeStart (BigDecimal IDRangeStart) 120 { 121 setValue ("IDRangeStart", IDRangeStart); 122 } 123 public BigDecimal getIDRangeStart() 124 { 125 BigDecimal bd = (BigDecimal)getValue("IDRangeStart"); 126 if (bd == null) return Env.ZERO; 127 return bd; 128 } 129 public void setIsRMIoverHTTP (boolean IsRMIoverHTTP) 130 { 131 setValue ("IsRMIoverHTTP", new Boolean (IsRMIoverHTTP)); 132 } 133 public boolean isRMIoverHTTP() 134 { 135 Boolean bb = (Boolean )getValue("IsRMIoverHTTP"); 136 if (bb != null) return bb.booleanValue(); 137 return false; 138 } 139 public void setName (String Name) 140 { 141 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 142 setValue ("Name", Name); 143 } 144 public String getName() 145 { 146 return (String )getValue("Name"); 147 } 148 public void setPrefix (String Prefix) 149 { 150 setValue ("Prefix", Prefix); 151 } 152 public String getPrefix() 153 { 154 return (String )getValue("Prefix"); 155 } 156 public void setProcessing (String Processing) 157 { 158 setValue ("Processing", Processing); 159 } 160 public String getProcessing() 161 { 162 return (String )getValue("Processing"); 163 } 164 void setRemote_Client_ID (int Remote_Client_ID) 165 { 166 setValueNoCheck ("Remote_Client_ID", new Integer (Remote_Client_ID)); 167 } 168 public int getRemote_Client_ID() 169 { 170 Integer ii = (Integer )getValue("Remote_Client_ID"); 171 if (ii == null) return 0; 172 return ii.intValue(); 173 } 174 void setRemote_Org_ID (int Remote_Org_ID) 175 { 176 setValueNoCheck ("Remote_Org_ID", new Integer (Remote_Org_ID)); 177 } 178 public int getRemote_Org_ID() 179 { 180 Integer ii = (Integer )getValue("Remote_Org_ID"); 181 if (ii == null) return 0; 182 return ii.intValue(); 183 } 184 public void setSuffix (String Suffix) 185 { 186 setValue ("Suffix", Suffix); 187 } 188 public String getSuffix() 189 { 190 return (String )getValue("Suffix"); 191 } 192 } 193
| Popular Tags
|