81 | | /// \brief |
82 | | /// Constructs an MgParameter object with a boolean vlaue. |
83 | | /// |
84 | | /// \param name (String/string) |
85 | | /// The name of the parameter |
86 | | /// \param value (boolean/bool) |
87 | | /// The value of the parameter |
88 | | /// |
89 | | MgParameter (CREFSTRING name, bool value); |
90 | | |
91 | | /// \brief |
92 | | /// Constructs an MgParameter object with a byte vlaue. |
93 | | /// |
94 | | /// \param name (String/string) |
95 | | /// The name of the parameter |
96 | | /// \param value (signed char/unsigned char/string) |
97 | | /// The value of the parameter |
98 | | /// |
99 | | MgParameter (CREFSTRING name, BYTE value); |
100 | | |
101 | | /// \brief |
102 | | /// Constructs an MgParameter object with an MgDateTime instance. |
103 | | /// |
104 | | /// \param name (String/string) |
105 | | /// The name of the parameter |
106 | | /// \param value (MgDateTime) |
107 | | /// The value of the parameter |
108 | | /// |
109 | | MgParameter (CREFSTRING name, MgDateTime* value); |
110 | | |
111 | | /// \brief |
112 | | /// Constructs an MgParameter object with a float value. |
113 | | /// |
114 | | /// \param name (String/string) |
115 | | /// The name of the parameter |
116 | | /// \param value (float) |
117 | | /// The value of the parameter |
118 | | /// |
119 | | MgParameter (CREFSTRING name, float value); |
120 | | |
121 | | /// \brief |
122 | | /// Constructs an MgParameter object with a double value. |
123 | | /// |
124 | | /// \param name (String/string) |
125 | | /// The name of the parameter |
126 | | /// \param value (double) |
127 | | /// The value of the parameter |
128 | | /// |
129 | | MgParameter (CREFSTRING name, double value); |
130 | | |
131 | | /// \brief |
132 | | /// Constructs an MgParameter object with a 16 bits integer. |
133 | | /// |
134 | | /// \param name (String/string) |
135 | | /// The name of the parameter |
136 | | /// \param value (short/int) |
137 | | /// The value of the parameter |
138 | | /// |
139 | | MgParameter (CREFSTRING name, INT16 value); |
140 | | |
141 | | /// \brief |
142 | | /// Constructs an MgParameter object with a 32 bits integer. |
143 | | /// |
144 | | /// \param name (String/string) |
145 | | /// The name of the parameter |
| 81 | /// \brief |
| 82 | /// Constructs an MgParameter object. |
| 83 | /// |
| 84 | /// \param name (MgNullableProperty) |
| 85 | /// An MgNullableProperty instance which contains |
| 86 | /// the name and value of the parameter |
147 | | /// The value of the parameter |
148 | | /// |
149 | | MgParameter (CREFSTRING name, INT32 value); |
150 | | |
151 | | /// \brief |
152 | | /// Constructs an MgParameter object with a 64 bits integer. |
153 | | /// |
154 | | /// \param name (String/string) |
155 | | /// The name of the parameter |
156 | | /// \param value (long/string) |
157 | | /// The value of the parameter |
158 | | /// |
159 | | MgParameter (CREFSTRING name, INT64 value); |
160 | | |
161 | | /// \brief |
162 | | /// Constructs an MgParameter object with a string. |
163 | | /// |
164 | | /// \param name (String/string) |
165 | | /// The name of the parameter |
166 | | /// \param value (String/string) |
167 | | /// The value of the parameter |
168 | | /// |
169 | | MgParameter (CREFSTRING name, CREFSTRING value); |
170 | | |
171 | | /// \brief |
172 | | /// Constructs an MgParameter object with an MgByteReader instance. |
173 | | /// |
174 | | /// \param name (String/string) |
175 | | /// The name of the parameter |
176 | | /// \param value |
177 | | /// The value of the parameter |
178 | | /// \param valueType |
179 | | /// The type of parameter value. It can be one of MgPropertyType::Blob, |
180 | | /// MgPropertyType::Clob or MgPropertyType::Geometry. |
181 | | /// |
182 | | MgParameter (CREFSTRING name, MgByteReader* value, INT32 valueType); |
183 | | |
184 | | /// \brief |
185 | | /// Gets the parameter name. |
186 | | /// |
187 | | /// \return |
188 | | /// Returns the parameter name. |
189 | | /// |
190 | | STRING GetName(); /// __get, __set |
191 | | |
192 | | /// \brief |
193 | | /// Gets the parameter type. |
194 | | /// |
195 | | /// \return |
196 | | /// Returns the parameter type. See MgPropertyType. |
197 | | /// |
198 | | INT32 GetType(); /// __get |
199 | | |
200 | | /// \brief |
201 | | /// If set to true, disables the getting and setting of the |
202 | | /// parameter's value. If set to false, reenables the |
203 | | /// getting and setting of the parameter's values. |
204 | | /// |
205 | | /// \param bIsNull (boolean/bool) |
206 | | /// Set to true to disable the getting and setting of |
207 | | /// the parameter value. Set to false to reenable the |
208 | | /// getting and setting of the parameter value. |
209 | | /// |
210 | | /// \return |
211 | | /// Returns nothing. |
212 | | /// |
213 | | void SetNull(bool bIsNull); |
214 | | |
215 | | /// \brief |
216 | | /// Test whether the parameter value is null. |
217 | | /// |
218 | | /// \return |
219 | | /// True if the parameter value is null, false Otherwise. |
220 | | /// |
221 | | bool IsNull(); |
222 | | |
223 | | /// \brief |
224 | | /// Gets the boolean value of the parameter. |
225 | | /// |
226 | | /// \remarks |
227 | | /// No conversion is performed. Therefore, the parameter must be |
228 | | /// of type MgPropertyType::Boolean or an |
229 | | /// MgInvalidPropertyTypeException is thrown. |
230 | | /// |
231 | | /// \return |
232 | | /// Returns the boolean value. |
233 | | /// |
234 | | /// \exception MgInvalidPropertyTypeException. |
235 | | /// |
236 | | bool GetBoolean(); |
237 | | |
238 | | /// \brief |
239 | | /// Gets the byte value of the parameter. |
240 | | /// |
241 | | /// \remarks |
242 | | /// No conversion is performed. Therefore, the parameter must be |
243 | | /// of type MgPropertyType::Byte or an |
244 | | /// MgInvalidPropertyTypeException is thrown. |
245 | | /// |
246 | | /// \return |
247 | | /// Returns the byte value. |
248 | | /// |
249 | | /// \exception MgInvalidPropertyTypeException. |
250 | | /// |
251 | | BYTE GetByte(); |
252 | | |
253 | | /// \brief |
254 | | /// Gets the MgDateTime value of the parameter. |
255 | | /// |
256 | | /// \remarks |
257 | | /// No conversion is performed. Therefore, the parameter must be |
258 | | /// of type MgPropertyType::DateTime or an |
259 | | /// MgInvalidPropertyTypeException is thrown. |
260 | | /// |
261 | | /// \return |
262 | | /// Returns an MgDateTime object. |
263 | | /// |
264 | | /// \exception MgInvalidPropertyTypeException. |
265 | | /// |
266 | | MgDateTime* GetDateTime(); |
267 | | |
268 | | /// \brief |
269 | | /// Gets the float value of the parameter. |
270 | | /// |
271 | | /// \remarks |
272 | | /// No conversion is performed. Therefore, the parameter must be a |
273 | | /// of type MgPropertyType::Single or an |
274 | | /// MgInvalidPropertyTypeException is thrown. |
275 | | /// |
276 | | /// \return |
277 | | /// Returns the float value. |
278 | | /// |
279 | | /// \exception MgInvalidPropertyTypeException. |
280 | | /// |
281 | | float GetSingle(); |
282 | | |
283 | | /// \brief |
284 | | /// Gets the double value of the parameter. |
285 | | /// |
286 | | /// \remarks |
287 | | /// No conversion is performed. Therefore, the parameter must be a |
288 | | /// of type MgPropertyType::Double or an |
289 | | /// MgInvalidPropertyTypeException is thrown. |
290 | | /// |
291 | | /// \return |
292 | | /// Returns the double value. |
293 | | /// |
294 | | /// \exception MgInvalidPropertyTypeException. |
295 | | /// |
296 | | double GetDouble(); |
297 | | |
298 | | /// \brief |
299 | | /// Gets the 16 bits integer value of the parameter. |
300 | | /// |
301 | | /// \remarks |
302 | | /// No conversion is performed. Therefore the parameter must be a |
303 | | /// of type MgPropertyType::Int16 or an |
304 | | /// MgInvalidPropertyTypeException is thrown. |
305 | | /// |
306 | | /// \return |
307 | | /// Returns the 16 bits integer value. |
308 | | /// |
309 | | /// \exception MgInvalidPropertyTypeException |
310 | | /// |
311 | | INT16 GetInt16(); |
312 | | |
313 | | /// \brief |
314 | | /// Gets the 32 bits integer value of the parameter. |
315 | | /// |
316 | | /// \remarks |
317 | | /// No conversion is performed. Therefore, the parameter must be a |
318 | | /// of type MgPropertyType::Int32 or an |
319 | | /// MgInvalidPropertyTypeException is thrown. |
320 | | /// |
321 | | /// \return |
322 | | /// Returns the 32 bits integer value. |
323 | | /// |
324 | | /// \exception MgInvalidPropertyTypeException. |
325 | | /// |
326 | | INT32 GetInt32(); |
327 | | |
328 | | /// \brief |
329 | | /// Gets the 64 bits integer value of the parameter. |
330 | | /// |
331 | | /// \remarks |
332 | | /// No conversion is performed. Therefore, the parameter must be a |
333 | | /// of type MgPropertyType::Int64 or an |
334 | | /// MgInvalidPropertyTypeException is thrown. |
335 | | /// |
336 | | /// \return |
337 | | /// Returns the 64 bits integer value. |
338 | | /// |
339 | | /// \exception MgInvalidPropertyTypeException. |
340 | | /// |
341 | | INT64 GetInt64(); |
342 | | |
343 | | /// \brief |
344 | | /// Gets the string value of the parameter. |
345 | | /// |
346 | | /// \remarks |
347 | | /// No conversion is performed. Therefore, the parameter must be a |
348 | | /// of type MgPropertyType::String or an |
349 | | /// MgInvalidPropertyTypeException is thrown. |
350 | | /// |
351 | | /// \return |
352 | | /// Returns the string value. |
353 | | /// |
354 | | /// \exception MgInvalidPropertyTypeException. |
355 | | /// |
356 | | STRING GetString(); |
357 | | |
358 | | /// \brief |
359 | | /// Gets the byte reader value of the parameter. |
360 | | /// |
361 | | /// \remarks |
362 | | /// No conversion is performed. Therefore, the parameter must be a |
363 | | /// of type MgPropertyType::Blob, MgPropertyType::Clob or |
364 | | /// MgPropertyType::Geometry. Otherwise, an |
365 | | /// MgInvalidPropertyTypeException is thrown. |
366 | | /// |
367 | | /// \return |
368 | | /// Returns the byte reader value. |
369 | | /// |
370 | | /// \exception MgInvalidPropertyTypeException. |
371 | | /// |
372 | | MgByteReader* GetByteReader(); |
| 88 | /// The function direction of the parameter value |
| 89 | /// |
| 90 | MgParameter (MgNullableProperty* prop, INT32 direction); |
| 91 | |
| 92 | /// \brief |
| 93 | /// Sets the name and value of the parameter. |
| 94 | /// |
| 95 | /// \param value |
| 96 | /// Input an MgNullableProperty instance which contains |
| 97 | /// the name and value of the parameter. |
| 98 | /// |
| 99 | /// \return |
| 100 | /// Returns nothing |
| 101 | /// |
| 102 | void SetProperty(MgNullableProperty* prop); |
| 103 | |
| 104 | /// \brief |
| 105 | /// Gets the name and value of the parameter. |
| 106 | /// |
| 107 | /// \return |
| 108 | /// Returns an MgNullableProperty instance which contains |
| 109 | /// the name and value of the parameter. |
| 110 | /// |
| 111 | MgNullableProperty* GetProperty(); |