KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_AD_System


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for AD_System
9  ** @version $Id: X_AD_System.java,v 1.27 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_AD_System extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_System (Properties ctx, int AD_System_ID)
14 {
15 super (ctx, AD_System_ID);
16 /** if (AD_System_ID == 0)
17 {
18 setAD_System_ID (0);
19 setInfo (null);
20 setName (null);
21 setPassword (null);
22 setReplicationType (null);
23 setUserName (null);
24 setVersion (null);
25 }
26  **/

27 }
28 /** Load Constructor **/
29 public X_AD_System (Properties ctx, ResultSet rs)
30 {
31 super (ctx, rs);
32 }
33 /** Load Meta Data **/
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 JavaDoc toString()
41 {
42 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_System_ID));
48 }
49 public int getAD_System_ID()
50 {
51 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_System_ID");
52 if (ii == null) return 0;
53 return ii.intValue();
54 }
55 public void setEncryptionKey (String JavaDoc EncryptionKey)
56 {
57 setValue ("EncryptionKey", EncryptionKey);
58 }
59 public String JavaDoc getEncryptionKey()
60 {
61 return (String JavaDoc)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 JavaDoc Info)
84 {
85 if (Info == null) throw new IllegalArgumentException JavaDoc ("Info is mandatory");
86 setValueNoCheck ("Info", Info);
87 }
88 public String JavaDoc getInfo()
89 {
90 return (String JavaDoc)getValue("Info");
91 }
92 public void setName (String JavaDoc Name)
93 {
94 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
95 setValue ("Name", Name);
96 }
97 public String JavaDoc getName()
98 {
99 return (String JavaDoc)getValue("Name");
100 }
101 public void setPassword (String JavaDoc Password)
102 {
103 if (Password == null) throw new IllegalArgumentException JavaDoc ("Password is mandatory");
104 setValue ("Password", Password);
105 }
106 public String JavaDoc getPassword()
107 {
108 return (String JavaDoc)getValue("Password");
109 }
110 void setReleaseNo (String JavaDoc ReleaseNo)
111 {
112 setValueNoCheck ("ReleaseNo", ReleaseNo);
113 }
114 public String JavaDoc getReleaseNo()
115 {
116 return (String JavaDoc)getValue("ReleaseNo");
117 }
118 public static final String JavaDoc REPLICATIONTYPE_Local = "L";
119 public static final String JavaDoc REPLICATIONTYPE_Merge = "M";
120 public static final String JavaDoc REPLICATIONTYPE_Reference = "R";
121 public void setReplicationType (String JavaDoc ReplicationType)
122 {
123 if (ReplicationType.equals("L") || ReplicationType.equals("M") || ReplicationType.equals("R"));
124  else throw new IllegalArgumentException JavaDoc ("ReplicationType Invalid value - Reference_ID=126 - L - M - R");
125 if (ReplicationType == null) throw new IllegalArgumentException JavaDoc ("ReplicationType is mandatory");
126 setValue ("ReplicationType", ReplicationType);
127 }
128 public String JavaDoc getReplicationType()
129 {
130 return (String JavaDoc)getValue("ReplicationType");
131 }
132 void setSupportUnits (int SupportUnits)
133 {
134 setValueNoCheck ("SupportUnits", new Integer JavaDoc(SupportUnits));
135 }
136 public int getSupportUnits()
137 {
138 Integer JavaDoc ii = (Integer JavaDoc)getValue("SupportUnits");
139 if (ii == null) return 0;
140 return ii.intValue();
141 }
142 public void setUserName (String JavaDoc UserName)
143 {
144 if (UserName == null) throw new IllegalArgumentException JavaDoc ("UserName is mandatory");
145 setValue ("UserName", UserName);
146 }
147 public String JavaDoc getUserName()
148 {
149 return (String JavaDoc)getValue("UserName");
150 }
151 void setVersion (String JavaDoc Version)
152 {
153 if (Version == null) throw new IllegalArgumentException JavaDoc ("Version is mandatory");
154 setValueNoCheck ("Version", Version);
155 }
156 public String JavaDoc getVersion()
157 {
158 return (String JavaDoc)getValue("Version");
159 }
160 }
161
Popular Tags