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_System extends PO 11 { 12 13 public X_AD_System (Properties ctx, int AD_System_ID) 14 { 15 super (ctx, AD_System_ID); 16 27 } 28 29 public X_AD_System (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 531; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_AD_System[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 void setAD_System_ID (int AD_System_ID) 46 { 47 setValueNoCheck ("AD_System_ID", new Integer (AD_System_ID)); 48 } 49 public int getAD_System_ID() 50 { 51 Integer ii = (Integer )getValue("AD_System_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 public void setEncryptionKey (String EncryptionKey) 56 { 57 setValue ("EncryptionKey", EncryptionKey); 58 } 59 public String getEncryptionKey() 60 { 61 return (String )getValue("EncryptionKey"); 62 } 63 public void setIDRangeEnd (BigDecimal IDRangeEnd) 64 { 65 setValue ("IDRangeEnd", IDRangeEnd); 66 } 67 public BigDecimal getIDRangeEnd() 68 { 69 BigDecimal bd = (BigDecimal)getValue("IDRangeEnd"); 70 if (bd == null) return Env.ZERO; 71 return bd; 72 } 73 public void setIDRangeStart (BigDecimal IDRangeStart) 74 { 75 setValue ("IDRangeStart", IDRangeStart); 76 } 77 public BigDecimal getIDRangeStart() 78 { 79 BigDecimal bd = (BigDecimal)getValue("IDRangeStart"); 80 if (bd == null) return Env.ZERO; 81 return bd; 82 } 83 void setInfo (String Info) 84 { 85 if (Info == null) throw new IllegalArgumentException ("Info is mandatory"); 86 setValueNoCheck ("Info", Info); 87 } 88 public String getInfo() 89 { 90 return (String )getValue("Info"); 91 } 92 public void setName (String Name) 93 { 94 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 95 setValue ("Name", Name); 96 } 97 public String getName() 98 { 99 return (String )getValue("Name"); 100 } 101 public void setPassword (String Password) 102 { 103 if (Password == null) throw new IllegalArgumentException ("Password is mandatory"); 104 setValue ("Password", Password); 105 } 106 public String getPassword() 107 { 108 return (String )getValue("Password"); 109 } 110 void setReleaseNo (String ReleaseNo) 111 { 112 setValueNoCheck ("ReleaseNo", ReleaseNo); 113 } 114 public String getReleaseNo() 115 { 116 return (String )getValue("ReleaseNo"); 117 } 118 public static final String REPLICATIONTYPE_Local = "L"; 119 public static final String REPLICATIONTYPE_Merge = "M"; 120 public static final String REPLICATIONTYPE_Reference = "R"; 121 public void setReplicationType (String ReplicationType) 122 { 123 if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R")); 124 else throw new IllegalArgumentException ("ReplicationType Invalid value - Reference_ID=126 - L - M - R"); 125 if (ReplicationType == null) throw new IllegalArgumentException ("ReplicationType is mandatory"); 126 setValue ("ReplicationType", ReplicationType); 127 } 128 public String getReplicationType() 129 { 130 return (String )getValue("ReplicationType"); 131 } 132 void setSupportUnits (int SupportUnits) 133 { 134 setValueNoCheck ("SupportUnits", new Integer (SupportUnits)); 135 } 136 public int getSupportUnits() 137 { 138 Integer ii = (Integer )getValue("SupportUnits"); 139 if (ii == null) return 0; 140 return ii.intValue(); 141 } 142 public void setUserName (String UserName) 143 { 144 if (UserName == null) throw new IllegalArgumentException ("UserName is mandatory"); 145 setValue ("UserName", UserName); 146 } 147 public String getUserName() 148 { 149 return (String )getValue("UserName"); 150 } 151 void setVersion (String Version) 152 { 153 if (Version == null) throw new IllegalArgumentException ("Version is mandatory"); 154 setValueNoCheck ("Version", Version); 155 } 156 public String getVersion() 157 { 158 return (String )getValue("Version"); 159 } 160 } 161 | Popular Tags |