|
1 | | -// This file was generated by Mendix Studio Pro. |
2 | | -// |
3 | | -// WARNING: Code you write here will be lost the next time you deploy the project. |
4 | | - |
5 | | -package datagrid.proxies; |
6 | | - |
7 | | -public class DataGrid |
8 | | -{ |
9 | | - private final com.mendix.systemwideinterfaces.core.IMendixObject dataGridMendixObject; |
10 | | - |
11 | | - private final com.mendix.systemwideinterfaces.core.IContext context; |
12 | | - |
13 | | - /** |
14 | | - * Internal name of this entity |
15 | | - */ |
16 | | - public static final java.lang.String entityName = "DataGrid.DataGrid"; |
17 | | - |
18 | | - /** |
19 | | - * Enum describing members of this entity |
20 | | - */ |
21 | | - public enum MemberNames |
22 | | - { |
23 | | - StringAttribute("StringAttribute"), |
24 | | - NumberAttribute("NumberAttribute"), |
25 | | - DateAttribute("DateAttribute"), |
26 | | - EnumAttribute("EnumAttribute"); |
27 | | - |
28 | | - private java.lang.String metaName; |
29 | | - |
30 | | - MemberNames(java.lang.String s) |
31 | | - { |
32 | | - metaName = s; |
33 | | - } |
34 | | - |
35 | | - @java.lang.Override |
36 | | - public java.lang.String toString() |
37 | | - { |
38 | | - return metaName; |
39 | | - } |
40 | | - } |
41 | | - |
42 | | - public DataGrid(com.mendix.systemwideinterfaces.core.IContext context) |
43 | | - { |
44 | | - this(context, com.mendix.core.Core.instantiate(context, "DataGrid.DataGrid")); |
45 | | - } |
46 | | - |
47 | | - protected DataGrid(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject dataGridMendixObject) |
48 | | - { |
49 | | - if (dataGridMendixObject == null) |
50 | | - throw new java.lang.IllegalArgumentException("The given object cannot be null."); |
51 | | - if (!com.mendix.core.Core.isSubClassOf("DataGrid.DataGrid", dataGridMendixObject.getType())) |
52 | | - throw new java.lang.IllegalArgumentException("The given object is not a DataGrid.DataGrid"); |
53 | | - |
54 | | - this.dataGridMendixObject = dataGridMendixObject; |
55 | | - this.context = context; |
56 | | - } |
57 | | - |
58 | | - /** |
59 | | - * @deprecated Use 'DataGrid.load(IContext, IMendixIdentifier)' instead. |
60 | | - */ |
61 | | - @java.lang.Deprecated |
62 | | - public static datagrid.proxies.DataGrid initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException |
63 | | - { |
64 | | - return datagrid.proxies.DataGrid.load(context, mendixIdentifier); |
65 | | - } |
66 | | - |
67 | | - /** |
68 | | - * Initialize a proxy using context (recommended). This context will be used for security checking when the get- and set-methods without context parameters are called. |
69 | | - * The get- and set-methods with context parameter should be used when for instance sudo access is necessary (IContext.createSudoClone() can be used to obtain sudo access). |
70 | | - */ |
71 | | - public static datagrid.proxies.DataGrid initialize(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixObject mendixObject) |
72 | | - { |
73 | | - return new datagrid.proxies.DataGrid(context, mendixObject); |
74 | | - } |
75 | | - |
76 | | - public static datagrid.proxies.DataGrid load(com.mendix.systemwideinterfaces.core.IContext context, com.mendix.systemwideinterfaces.core.IMendixIdentifier mendixIdentifier) throws com.mendix.core.CoreException |
77 | | - { |
78 | | - com.mendix.systemwideinterfaces.core.IMendixObject mendixObject = com.mendix.core.Core.retrieveId(context, mendixIdentifier); |
79 | | - return datagrid.proxies.DataGrid.initialize(context, mendixObject); |
80 | | - } |
81 | | - |
82 | | - public static java.util.List<datagrid.proxies.DataGrid> load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException |
83 | | - { |
84 | | - java.util.List<datagrid.proxies.DataGrid> result = new java.util.ArrayList<datagrid.proxies.DataGrid>(); |
85 | | - for (com.mendix.systemwideinterfaces.core.IMendixObject obj : com.mendix.core.Core.retrieveXPathQuery(context, "//DataGrid.DataGrid" + xpathConstraint)) |
86 | | - result.add(datagrid.proxies.DataGrid.initialize(context, obj)); |
87 | | - return result; |
88 | | - } |
89 | | - |
90 | | - /** |
91 | | - * Commit the changes made on this proxy object. |
92 | | - */ |
93 | | - public final void commit() throws com.mendix.core.CoreException |
94 | | - { |
95 | | - com.mendix.core.Core.commit(context, getMendixObject()); |
96 | | - } |
97 | | - |
98 | | - /** |
99 | | - * Commit the changes made on this proxy object using the specified context. |
100 | | - */ |
101 | | - public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException |
102 | | - { |
103 | | - com.mendix.core.Core.commit(context, getMendixObject()); |
104 | | - } |
105 | | - |
106 | | - /** |
107 | | - * Delete the object. |
108 | | - */ |
109 | | - public final void delete() |
110 | | - { |
111 | | - com.mendix.core.Core.delete(context, getMendixObject()); |
112 | | - } |
113 | | - |
114 | | - /** |
115 | | - * Delete the object using the specified context. |
116 | | - */ |
117 | | - public final void delete(com.mendix.systemwideinterfaces.core.IContext context) |
118 | | - { |
119 | | - com.mendix.core.Core.delete(context, getMendixObject()); |
120 | | - } |
121 | | - /** |
122 | | - * @return value of StringAttribute |
123 | | - */ |
124 | | - public final java.lang.String getStringAttribute() |
125 | | - { |
126 | | - return getStringAttribute(getContext()); |
127 | | - } |
128 | | - |
129 | | - /** |
130 | | - * @param context |
131 | | - * @return value of StringAttribute |
132 | | - */ |
133 | | - public final java.lang.String getStringAttribute(com.mendix.systemwideinterfaces.core.IContext context) |
134 | | - { |
135 | | - return (java.lang.String) getMendixObject().getValue(context, MemberNames.StringAttribute.toString()); |
136 | | - } |
137 | | - |
138 | | - /** |
139 | | - * Set value of StringAttribute |
140 | | - * @param stringattribute |
141 | | - */ |
142 | | - public final void setStringAttribute(java.lang.String stringattribute) |
143 | | - { |
144 | | - setStringAttribute(getContext(), stringattribute); |
145 | | - } |
146 | | - |
147 | | - /** |
148 | | - * Set value of StringAttribute |
149 | | - * @param context |
150 | | - * @param stringattribute |
151 | | - */ |
152 | | - public final void setStringAttribute(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String stringattribute) |
153 | | - { |
154 | | - getMendixObject().setValue(context, MemberNames.StringAttribute.toString(), stringattribute); |
155 | | - } |
156 | | - |
157 | | - /** |
158 | | - * @return value of NumberAttribute |
159 | | - */ |
160 | | - public final java.math.BigDecimal getNumberAttribute() |
161 | | - { |
162 | | - return getNumberAttribute(getContext()); |
163 | | - } |
164 | | - |
165 | | - /** |
166 | | - * @param context |
167 | | - * @return value of NumberAttribute |
168 | | - */ |
169 | | - public final java.math.BigDecimal getNumberAttribute(com.mendix.systemwideinterfaces.core.IContext context) |
170 | | - { |
171 | | - return (java.math.BigDecimal) getMendixObject().getValue(context, MemberNames.NumberAttribute.toString()); |
172 | | - } |
173 | | - |
174 | | - /** |
175 | | - * Set value of NumberAttribute |
176 | | - * @param numberattribute |
177 | | - */ |
178 | | - public final void setNumberAttribute(java.math.BigDecimal numberattribute) |
179 | | - { |
180 | | - setNumberAttribute(getContext(), numberattribute); |
181 | | - } |
182 | | - |
183 | | - /** |
184 | | - * Set value of NumberAttribute |
185 | | - * @param context |
186 | | - * @param numberattribute |
187 | | - */ |
188 | | - public final void setNumberAttribute(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal numberattribute) |
189 | | - { |
190 | | - getMendixObject().setValue(context, MemberNames.NumberAttribute.toString(), numberattribute); |
191 | | - } |
192 | | - |
193 | | - /** |
194 | | - * @return value of DateAttribute |
195 | | - */ |
196 | | - public final java.util.Date getDateAttribute() |
197 | | - { |
198 | | - return getDateAttribute(getContext()); |
199 | | - } |
200 | | - |
201 | | - /** |
202 | | - * @param context |
203 | | - * @return value of DateAttribute |
204 | | - */ |
205 | | - public final java.util.Date getDateAttribute(com.mendix.systemwideinterfaces.core.IContext context) |
206 | | - { |
207 | | - return (java.util.Date) getMendixObject().getValue(context, MemberNames.DateAttribute.toString()); |
208 | | - } |
209 | | - |
210 | | - /** |
211 | | - * Set value of DateAttribute |
212 | | - * @param dateattribute |
213 | | - */ |
214 | | - public final void setDateAttribute(java.util.Date dateattribute) |
215 | | - { |
216 | | - setDateAttribute(getContext(), dateattribute); |
217 | | - } |
218 | | - |
219 | | - /** |
220 | | - * Set value of DateAttribute |
221 | | - * @param context |
222 | | - * @param dateattribute |
223 | | - */ |
224 | | - public final void setDateAttribute(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date dateattribute) |
225 | | - { |
226 | | - getMendixObject().setValue(context, MemberNames.DateAttribute.toString(), dateattribute); |
227 | | - } |
228 | | - |
229 | | - /** |
230 | | - * Set value of EnumAttribute |
231 | | - * @param enumattribute |
232 | | - */ |
233 | | - public final datagrid.proxies.Enumeration_Example getEnumAttribute() |
234 | | - { |
235 | | - return getEnumAttribute(getContext()); |
236 | | - } |
237 | | - |
238 | | - /** |
239 | | - * @param context |
240 | | - * @return value of EnumAttribute |
241 | | - */ |
242 | | - public final datagrid.proxies.Enumeration_Example getEnumAttribute(com.mendix.systemwideinterfaces.core.IContext context) |
243 | | - { |
244 | | - Object obj = getMendixObject().getValue(context, MemberNames.EnumAttribute.toString()); |
245 | | - if (obj == null) |
246 | | - return null; |
247 | | - |
248 | | - return datagrid.proxies.Enumeration_Example.valueOf((java.lang.String) obj); |
249 | | - } |
250 | | - |
251 | | - /** |
252 | | - * Set value of EnumAttribute |
253 | | - * @param enumattribute |
254 | | - */ |
255 | | - public final void setEnumAttribute(datagrid.proxies.Enumeration_Example enumattribute) |
256 | | - { |
257 | | - setEnumAttribute(getContext(), enumattribute); |
258 | | - } |
259 | | - |
260 | | - /** |
261 | | - * Set value of EnumAttribute |
262 | | - * @param context |
263 | | - * @param enumattribute |
264 | | - */ |
265 | | - public final void setEnumAttribute(com.mendix.systemwideinterfaces.core.IContext context, datagrid.proxies.Enumeration_Example enumattribute) |
266 | | - { |
267 | | - if (enumattribute != null) |
268 | | - getMendixObject().setValue(context, MemberNames.EnumAttribute.toString(), enumattribute.toString()); |
269 | | - else |
270 | | - getMendixObject().setValue(context, MemberNames.EnumAttribute.toString(), null); |
271 | | - } |
272 | | - |
273 | | - /** |
274 | | - * @return the IMendixObject instance of this proxy for use in the Core interface. |
275 | | - */ |
276 | | - public final com.mendix.systemwideinterfaces.core.IMendixObject getMendixObject() |
277 | | - { |
278 | | - return dataGridMendixObject; |
279 | | - } |
280 | | - |
281 | | - /** |
282 | | - * @return the IContext instance of this proxy, or null if no IContext instance was specified at initialization. |
283 | | - */ |
284 | | - public final com.mendix.systemwideinterfaces.core.IContext getContext() |
285 | | - { |
286 | | - return context; |
287 | | - } |
288 | | - |
289 | | - @java.lang.Override |
290 | | - public boolean equals(Object obj) |
291 | | - { |
292 | | - if (obj == this) |
293 | | - return true; |
294 | | - |
295 | | - if (obj != null && getClass().equals(obj.getClass())) |
296 | | - { |
297 | | - final datagrid.proxies.DataGrid that = (datagrid.proxies.DataGrid) obj; |
298 | | - return getMendixObject().equals(that.getMendixObject()); |
299 | | - } |
300 | | - return false; |
301 | | - } |
302 | | - |
303 | | - @java.lang.Override |
304 | | - public int hashCode() |
305 | | - { |
306 | | - return getMendixObject().hashCode(); |
307 | | - } |
308 | | - |
309 | | - /** |
310 | | - * @return String name of this class |
311 | | - */ |
312 | | - public static java.lang.String getType() |
313 | | - { |
314 | | - return "DataGrid.DataGrid"; |
315 | | - } |
316 | | - |
317 | | - /** |
318 | | - * @return String GUID from this object, format: ID_0000000000 |
319 | | - * @deprecated Use getMendixObject().getId().toLong() to get a unique identifier for this object. |
320 | | - */ |
321 | | - @java.lang.Deprecated |
322 | | - public java.lang.String getGUID() |
323 | | - { |
324 | | - return "ID_" + getMendixObject().getId().toLong(); |
325 | | - } |
326 | | -} |
0 commit comments