Portability Libraries  2015.2.0.0
Common Methods and Objects for Platform Independance.
bookkeeper/Tables/users.hpp
Go to the documentation of this file.
1 /**
2  * Sql2Cpp is Copyright (C) 2016 Douglas Mark Royer
3  *
4  * Sql2Cpp Author: DouglasRoyer@gmail.com
5  *
6  * For Sql2cpp help: Support@SoftwareAndServices.US
7  *
8  * Sql2Cpp Product: http://SoftwareAndServices.US/Sql2Cpp
9  *
10  * Sql2Cpp Programming Documentation:
11  * http://SoftwareAndServices.US/Sql2Cpp/API
12  *
13  * This file automaticly generated by Sql2Cpp on: Mon Dec 5 00:58:23 2016
14  *
15  * @note
16  * THIS SOFTWARE AND MANUAL ARE BOTH PROTECTED BY UNITED STATES
17  * COPYRIGHT LAW (TITLE 17 UNITED STATES CODE). UNAUTHORIZED REPRODUCTION
18  * AND/OR SALE MAY RESULT IN IMPRISONMENT OF UP TO ONE YEAR AND FINES
19  * OF UP TO $100,000 (17 USC 506). COPYRIGHT INFRINGERS MAY ALSO
20  * BE SUBJECT TO CIVIL LIABILITY.
21  *
22  * @note
23  * THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN IS
24  * PROVIDED ON AN "AS IS" BASIS AND THE AUTHOR DISCLAIMS ALL
25  * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
26  * TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT
27  * INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY
28  * OR FITNESS FOR A PARTICULAR PURPOSE.
29  */
30 #include <SaS/Common/String.hpp>
31 #include <SaS/UpnDb/UpnDB.hpp>
32 #include <SaS/Sql2Cpp/Sql2CppGenBase.hpp>
33 #include <SaS/Sql2Cpp/SQLBIGINT.hpp>
34 #include <SaS/Sql2Cpp/SQLBIGSERIAL.hpp>
35 #include <SaS/Sql2Cpp/SQLBINARY.hpp>
36 #include <SaS/Sql2Cpp/SQLBIT.hpp>
37 #include <SaS/Sql2Cpp/SQLBOOLEAN.hpp>
38 #include <SaS/Sql2Cpp/SQLBOX.hpp>
39 #include <SaS/Sql2Cpp/SQLBYTEA.hpp>
40 #include <SaS/Sql2Cpp/SQLCHAR.hpp>
41 #include <SaS/Sql2Cpp/SQLCIDR.hpp>
42 #include <SaS/Sql2Cpp/SQLCIRCLE.hpp>
43 #include <SaS/Sql2Cpp/SQLDATE.hpp>
44 #include <SaS/Sql2Cpp/SQLDATERANGE.hpp>
45 #include <SaS/Sql2Cpp/SQLDATETIME.hpp>
46 #include <SaS/Sql2Cpp/SQLDOMAIN.hpp>
47 #include <SaS/Sql2Cpp/SQLDOUBLEPRECISION.hpp>
48 #include <SaS/Sql2Cpp/SQLENUM.hpp>
49 #include <SaS/Sql2Cpp/SQLINET.hpp>
50 #include <SaS/Sql2Cpp/SQLINT4RANGE.hpp>
51 #include <SaS/Sql2Cpp/SQLINT8RANGE.hpp>
52 #include <SaS/Sql2Cpp/SQLINTEGER.hpp>
53 #include <SaS/Sql2Cpp/SQLLINE.hpp>
54 #include <SaS/Sql2Cpp/SQLLSEG.hpp>
55 #include <SaS/Sql2Cpp/SQLMACADDR.hpp>
56 #include <SaS/Sql2Cpp/SQLMONEY.hpp>
57 #include <SaS/Sql2Cpp/SQLNUMERIC.hpp>
58 #include <SaS/Sql2Cpp/SQLPATH.hpp>
59 #include <SaS/Sql2Cpp/SQLPOINT.hpp>
60 #include <SaS/Sql2Cpp/SQLPOLYGON.hpp>
61 #include <SaS/Sql2Cpp/SQLREAL.hpp>
62 #include <SaS/Sql2Cpp/SQLSERIAL.hpp>
63 #include <SaS/Sql2Cpp/SQLSMALLINT.hpp>
64 #include <SaS/Sql2Cpp/SQLSMALLSERIAL.hpp>
65 #include <SaS/Sql2Cpp/SQLTEXT.hpp>
66 #include <SaS/Sql2Cpp/SQLTIME.hpp>
67 #include <SaS/Sql2Cpp/SQLTIMESTAMP.hpp>
68 #include <SaS/Sql2Cpp/SQLTIMESTAMPTZ.hpp>
69 #include <SaS/Sql2Cpp/SQLTIMETZ.hpp>
70 #include <SaS/Sql2Cpp/SQLTSRANGE.hpp>
71 #include <SaS/Sql2Cpp/SQLTSTZRANGE.hpp>
72 #include <SaS/Sql2Cpp/SQLTSVECTOR.hpp>
73 #include <SaS/Sql2Cpp/SQLUUID.hpp>
74 #include <SaS/Sql2Cpp/SQLVARBINARY.hpp>
75 #include <SaS/Sql2Cpp/SQLVARCHAR.hpp>
76 
77 #ifdef USE_POSTGRES
78 #include <SaS/Sql/SQL_postgres.hpp>
79 #endif // USE_POSTGRES
80 
83 using namespace SoftwareAndServices::Library::UPN;
84 
85 //
86 // Beginning of namespace SoftwareAndServices::Library::BookKeeper
87 //
88 namespace SoftwareAndServices { namespace Library { namespace BookKeeper {
89 
90 /**
91  * @class users_Table users.hpp <SaS/Sql2Cpp/Generated/bookkeeper/users.hpp>
92  * This object represents a PostgreSql table: <b>users</b>.
93  * in database <b>bookkeeper</b>, which has these columns:
94  *
95  * |Column Name|Column Type|Notes|
96  * |:----------|:----------|-----|
97  * |name|SQLTEXT|<br/>Is Unique.<br/>NULL <b>NOT</b> allowed.|
98  * |name_id|SQLBIGINT|<br/>Is Unique.<br/>Is Primary Key.<br/>Has Sequence: users_name_id_seq.<br/>NULL <b>NOT</b> allowed.|
99  * |permissions|SQLBIGINT|<br/>NULL <b>NOT</b> allowed.|
100  * |upndb_id|SQLBIGINT|<br/>NULL <b>NOT</b> allowed.<br/>Is FOREIGN KEY to: <b>upndb.upndb_id</b>|
101  *
102  * @note To use this object using a dynamic library,
103  * link with <b>-lSaSSql2Cpp_bookkeeper_users</b>
104  *
105  * @note Where:
106  * <ul>
107  * <li><b>SaS</b> is the vender ID.</li>
108  * <li><b>bookkeeper</b> is the database name.</li>
109  * <li><b>users</b> is the database table name.</li>
110  * </ul>
111  * @note To use this object from a static library,
112  * link with <b>-lSaSSql2Cpp_bookkeeper</b>
113  *
114  * @note Where:
115  * <ul>
116  * <li><b>SaS</b> is the vender ID.</li>
117  * <li><b>bookkeeper</b> is the database name.</li>
118  * </ul>
119  *
120  * @ingroup Sql2CppGroup
121  * @see \ref Sql2CppOverview
122  */
124  : public Sql2CppGenBase
125 {
126 
127 public:
128 
129  /**
130  * users_Table - Default Constructor
131  *
132  * @note This is an Automatically Generated Sql2Cpp Method.
133  */
134  users_Table();
135 
136  /**
137  * users_Table - Destructor
138  *
139  * @note This is an Automatically Generated Sql2Cpp Method.
140  */
141  virtual ~users_Table();
142 
143  /**
144  * Load all of the values into a cache.
145  *
146  * @note This is an Automatically Generated Sql2Cpp Method.
147  *
148  * @param Auth The authentication handle.
149  *
150  * @param Db An initialzied UpnDB handle.
151  *
152  * @param List Where the results will be returned.
153  *
154  * @return The number of entries loaded.
155  * Results restricted to data accessable by Auth.
156  * Auth <b>MUST BE</b> the owning UPN, a site
157  * administrator, or a realm administrator to load
158  * information about a realm or UPN.
159  *
160  * @throws ErrorCode_e
161  */
162  static uint64_t LoadAll(UpnDbAuthHandle_t Auth, UpnDB & Db, std::list<users_Table*> & List);
163 
164 public:
165 
166  /*
167  * --
168  * -- Column: name
169  * --
170  */
171 
172 #ifdef USE_QT5
173 public slots:
174 #else
175 public:
176 #endif // USE_QT5
177 
178  /**
179  * Set name
180  *
181  * @note This is an Automatically Generated Sql2Cpp Method.
182  *
183  * @param NewVal The new value.
184  */
185  void
186  Set_name(const SQLTEXT * NewVal);
187 
188  /**
189  * Set name
190  *
191  * @note This is an Automatically Generated Sql2Cpp Method.
192  *
193  * @param NewVal The new value as a (char*).
194  * When NewVal is NULL, the SQL value will be NULL.
195  */
196  void
197  Set_name(const char * NewVal);
198 
199  /**
200  * Set name
201  *
202  * @note This is an Automatically Generated Sql2Cpp Method.
203  *
204  * @param NewVal The new value.
205  */
206  void
207  Set_name(const String & NewVal);
208 
209  /**
210  * Set name
211  *
212  * @note This is an Automatically Generated Sql2Cpp Method.
213  *
214  * @param NewVal The new value.
215  */
216  void
217  Set_name(const std::string & NewVal);
218 
219 #ifdef USE_QT5
220  /**
221  * Set name
222  *
223  * @note This is an Automatically Generated Sql2Cpp Method.
224  *
225  * @param NewVal The new value.
226  */
227  void
228  Set_name(const QString & NewVal);
229 
230 #endif
231 public:
232 
233  /**
234  * Get name
235  *
236  * @note This is an Automatically Generated Sql2Cpp Method.
237  *
238  * @return The name
239  */
240  (char*)
241  Get_name() const;
242 
243 public:
244 
245  /**
246  * Load by this record types unique key.
247  *
248  * @note This is an Automatically Generated Sql2Cpp Method.
249  *
250  * @param Auth The authentication handle.
251  *
252  * @param Db An initialzied UpnDB handle.
253  *
254  * @param name_ToFind The value to load by.
255  *
256  * @return true when found and loaded.
257  * Results restricted to data accessable by Auth.
258  * Auth <b>MUST BE</b> the owning UPN, a site
259  * administrator, or a realm administrator to load
260  * information about a realm or UPN.
261  */
262  bool LoadBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, SQLTEXT * name_ToFind);
263 
264  /**
265  * Load by this record types unique key.
266  *
267  * @note This is an Automatically Generated Sql2Cpp Method.
268  *
269  * @param Auth The authentication handle.
270  *
271  * @param Db An initialzied UpnDB handle.
272  *
273  * @param name_ToFind The value to load by.
274  * When name_ToFind is NULL, will search for NULL values.
275  *
276  * @return true when found and loaded.
277  * Results restricted to data accessable by Auth.
278  * Auth <b>MUST BE</b> the owning UPN, a site
279  * administrator, or a realm administrator to load
280  * information about a realm or UPN.
281  */
282  bool LoadBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, const char * name_ToFind);
283 
284  /**
285  * Load by this record types unique key.
286  *
287  * @note This is an Automatically Generated Sql2Cpp Method.
288  *
289  * @param Auth The authentication handle.
290  *
291  * @param Db An initialzied UpnDB handle.
292  *
293  * @param name_ToFind The value to load by.
294  *
295  * @return true when found and loaded.
296  * Results restricted to data accessable by Auth.
297  * Auth <b>MUST BE</b> the owning UPN, a site
298  * administrator, or a realm administrator to load
299  * information about a realm or UPN.
300  */
301  bool LoadBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, String & name_ToFind);
302 
303  /**
304  * Load by this record types unique key.
305  *
306  * @note This is an Automatically Generated Sql2Cpp Method.
307  *
308  * @param Auth The authentication handle.
309  *
310  * @param Db An initialzied UpnDB handle.
311  *
312  * @param name_ToFind The value to load by.
313  *
314  * @return true when found and loaded.
315  * Results restricted to data accessable by Auth.
316  * Auth <b>MUST BE</b> the owning UPN, a site
317  * administrator, or a realm administrator to load
318  * information about a realm or UPN.
319  */
320  bool LoadBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, String & name_ToFind);
321 
322  /**
323  * Load by this record types unique key.
324  *
325  * @note This is an Automatically Generated Sql2Cpp Method.
326  *
327  * @param Auth The authentication handle.
328  *
329  * @param Db An initialzied UpnDB handle.
330  *
331  * @param name_ToFind The value to load by.
332  *
333  * @return true when found and loaded.
334  * Results restricted to data accessable by Auth.
335  * Auth <b>MUST BE</b> the owning UPN, a site
336  * administrator, or a realm administrator to load
337  * information about a realm or UPN.
338  */
339  bool LoadBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, std::string & name_ToFind);
340 
341 #ifdef USE_QT5
342  /**
343  * Load all records that match the value in name.
344  *
345  * @note This is an Automatically Generated Sql2Cpp Method.
346  *
347  * @param Auth The authentication handle.
348  *
349  * @param Db An initialzied UpnDB handle.
350  *
351  * @param name_ToFind The value to load by.
352  *
353  * @param Results Where the results will be
354  * stored. This method frees each content of, and
355  * and calls clear() on Results before processing
356  * the request.
357  *
358  * @return the number of records found.
359  * Results restricted to data accessable by Auth.
360  * Auth <b>MUST BE</b> the owning UPN, a site
361  * administrator, or a realm administrator to load
362  * information about a realm or UPN.
363  */
364  uint64_t LoadAllBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, QString & name_ToFind, std::list<users_Table *> & Results);
365 
366 #endif
367  /**
368  * Load all records that match the value in name.
369  *
370  * @note This is an Automatically Generated Sql2Cpp Method.
371  *
372  * @param Auth The authentication handle.
373  *
374  * @param Db An initialzied UpnDB handle.
375  *
376  * @param name_ToFind The value to load by.
377  * When name_ToFind is NULL, will search for NULL value.
378  *
379  * @param Results Where the results will be
380  * stored. This method frees each content of, and
381  * and calls clear() on Results before processing
382  * the request.
383  *
384  * @return the number of records found.
385  * Results restricted to data accessable by Auth.
386  * Auth <b>MUST BE</b> the owning UPN, a site
387  * administrator, or a realm administrator to load
388  * information about a realm or UPN.
389  */
390  uint64_t LoadAllBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, const char * name_ToFind, std::list<users_Table *> & Results);
391 
392  /**
393  * Load all records that match the value in name.
394  *
395  * @note This is an Automatically Generated Sql2Cpp Method.
396  *
397  * @param Auth The authentication handle.
398  *
399  * @param Db An initialzied UpnDB handle.
400  *
401  * @param name_ToFind The value to load by.
402  * When name_ToFind is NULL, will search for NULL value.
403  *
404  * @param Results Where the results will be
405  * stored. This method frees each content of, and
406  * and calls clear() on Results before processing
407  * the request.
408  *
409  * @return the number of records found.
410  * Results restricted to data accessable by Auth.
411  * Auth <b>MUST BE</b> the owning UPN, a site
412  * administrator, or a realm administrator to load
413  * information about a realm or UPN.
414  */
415  uint64_t LoadAllBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, String & name_ToFind, std::list<users_Table *> & Results);
416 
417  /**
418  * Load all records that match the value in name.
419  *
420  * @note This is an Automatically Generated Sql2Cpp Method.
421  *
422  * @param Auth The authentication handle.
423  *
424  * @param Db An initialzied UpnDB handle.
425  *
426  * @param name_ToFind The value to load by.
427  * When name_ToFind is NULL, will search for NULL value.
428  *
429  * @param Results Where the results will be
430  * stored. This method frees each content of, and
431  * and calls clear() on Results before processing
432  * the request.
433  *
434  * @return the number of records found.
435  * Results restricted to data accessable by Auth.
436  * Auth <b>MUST BE</b> the owning UPN, a site
437  * administrator, or a realm administrator to load
438  * information about a realm or UPN.
439  */
440  uint64_t LoadAllBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, std::string & name_ToFind, std::list<users_Table *> & Results);
441 
442 #ifdef USE_QT5
443  /**
444  * Load all records that match the value in name.
445  *
446  * @note This is an Automatically Generated Sql2Cpp Method.
447  *
448  * @param Auth The authentication handle.
449  *
450  * @param Db An initialzied UpnDB handle.
451  *
452  * @param name_ToFind The value to load by.
453  * When name_ToFind is NULL, will search for NULL value.
454  *
455  * @param Results Where the results will be
456  * stored. This method frees each content of, and
457  * and calls clear() on Results before processing
458  * the request.
459  *
460  * @return the number of records found.
461  * Results restricted to data accessable by Auth.
462  * Auth <b>MUST BE</b> the owning UPN, a site
463  * administrator, or a realm administrator to load
464  * information about a realm or UPN.
465  */
466  uint64_t LoadAllBy_name(UpnDbAuthHandle_t Auth, UpnDB & Db, QString name_ToFind, std::list<users_Table *> & Results);
467 
468 #endif
469 #ifdef USE_QT5
470 signals:
471 #endif // USE_QT5
472 
473  /**
474  * this->name changed. (Qt5 signal)
475  * Not sent during Load or Find...
476  *
477  * @param users_DbTable A pointer to the throwing object.
478  */
479  void name_Changed(users_Table * users_DbTable);
480 
481 
482 private:
483 
484  /**
485  * The name
486  * @note This is an Automaticly Generated Value
487  */
488  SQLTEXT * _name;
489 
490 public:
491 
492  /*
493  * --
494  * -- Column: name_id
495  * --
496  */
497 
498 #ifdef USE_QT5
499 public slots:
500 #else
501 public:
502 #endif // USE_QT5
503 
504  /**
505  * Set name_id by value.
506  *
507  * @note This is an Automatically Generated Sql2Cpp Method.
508  *
509  * @warning This SQL column is an auto-increment sequence.
510  * Altering its value may cause database problems.
511  *
512  * @param NewVal The new value.
513  *
514  * @throws ErrorCode_e
515  */
516  void
517  Set_name_id(const SQLBIGINT * NewVal);
518 
519  /**
520  * Set name_id by value.
521  *
522  * @note This is an Automatically Generated Sql2Cpp Method.
523  *
524  * @warning This SQL column is an auto-increment sequence.
525  * Altering its value may cause database problems.
526  *
527  * @param NewVal The new value.
528  *
529  * @throws ErrorCode_e
530  */
531  void
532  Set_name_id(int64_t NewVal);
533 
534  /**
535  * Set name_id by value.
536  *
537  * @note This is an Automatically Generated Sql2Cpp Method.
538  *
539  * @warning This SQL column is an auto-increment sequence.
540  * Altering its value may cause database problems.
541  *
542  * @param NewVal The new value as a (char*).
543  * Does a atoll(NewVal) and the results are used.
544  * When NewVal is NULL, the SQL value will be NULL.
545  *
546  * @throws ErrorCode_e
547  */
548  void
549  Set_name_id(const char * NewVal);
550 
551  /**
552  * Set name_id by value.
553  *
554  * @note This is an Automatically Generated Sql2Cpp Method.
555  *
556  * @warning This SQL column is an auto-increment sequence.
557  * Altering its value may cause database problems.
558  *
559  * @param NewVal The new value as a (char*).
560  * Does a atoll(NewVal) and the results are used.
561  *
562  * @throws ErrorCode_e
563  */
564  void
565  Set_name_id(const String & NewVal);
566 
567  /**
568  * Set name_id - by value.
569  *
570  * @note This is an Automatically Generated Sql2Cpp Method.
571  *
572  * @warning This SQL column is an auto-increment sequence.
573  * Altering its value may cause database problems.
574  *
575  * @param NewVal The new value as a (char*).
576  * Does a atoll(NewVal) and the results are used.
577  *
578  * @throws ErrorCode_e
579  */
580  void
581  Set_name_id(const std::string & NewVal);
582 
583 #ifdef USE_QT5
584  /**
585  * Set name_id by value.
586  *
587  * @note This is an Automatically Generated Sql2Cpp Method.
588  *
589  * @warning This SQL column is an auto-increment sequence.
590  * Altering its value may cause database problems.
591  *
592  * @param NewVal The new value as a (char*).
593  * Does a atoll(NewVal) and the results are used.
594  *
595  * @throws ErrorCode_e
596  */
597  void
598  Set_name_id(const QStrting & NewVal);
599 
600 #endif
601 public:
602 
603  /**
604  * Get name_id
605  *
606  * @note This is an Automatically Generated Sql2Cpp Method.
607  *
608  * @return The name_id
609  *
610  * @throws ErrorCode_e
611  */
612  int64_t
613  Get_name_id() const;
614 
615 public:
616 
617  /**
618  * Load by this record types unique key.
619  *
620  * @note This is an Automatically Generated Sql2Cpp Method.
621  *
622  * @param Auth The authentication handle.
623  *
624  * @param Db An initialzied UpnDB handle.
625  *
626  * @param name_id_ToFind The value to load by.
627  *
628  * @return true when found and loaded.
629  * Results restricted to data accessable by Auth.
630  * Auth <b>MUST BE</b> the owning UPN, a site
631  * administrator, or a realm administrator to load
632  * information about a realm or UPN.
633  *
634  * @throws ErrorCode_e
635  */
636  bool LoadBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const SQLBIGINT * name_id_ToFind);
637 
638  /**
639  * Load by this record types unique key.
640  *
641  * @note This is an Automatically Generated Sql2Cpp Method.
642  *
643  * @param Auth The authentication handle.
644  *
645  * @param Db An initialzied UpnDB handle.
646  *
647  * @param name_id_ToFind The value to load by.
648  * Does a atoll(NewVal) and the results are used.
649  * When name_id_ToFind is NULL, will search for NULL values.
650  *
651  * @return true when found and loaded.
652  * Results restricted to data accessable by Auth.
653  * Auth <b>MUST BE</b> the owning UPN, a site
654  * administrator, or a realm administrator to load
655  * information about a realm or UPN.
656  *
657  * @throws ErrorCode_e
658  */
659  bool LoadBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const char * name_id_ToFind);
660 
661  /**
662  * Load by this record types unique key.
663  *
664  * @note This is an Automatically Generated Sql2Cpp Method.
665  *
666  * @param Auth The authentication handle.
667  *
668  * @param Db An initialzied UpnDB handle.
669  *
670  * @param name_id_ToFind The value to load by.
671  * Does a atoll(NewVal) and the results are used.
672  *
673  * @return true when found and loaded.
674  * Results restricted to data accessable by Auth.
675  * Auth <b>MUST BE</b> the owning UPN, a site
676  * administrator, or a realm administrator to load
677  * information about a realm or UPN.
678  *
679  * @throws ErrorCode_e
680  */
681  bool LoadBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const String & name_id_ToFind);
682 
683  /**
684  * Load by this record types unique key.
685  *
686  * @note This is an Automatically Generated Sql2Cpp Method.
687  *
688  * @param Auth The authentication handle.
689  *
690  * @param Db An initialzied UpnDB handle.
691  *
692  * @param name_id_ToFind The value to load by.
693  * Does a atoll(NewVal) and the results are used.
694  *
695  * @return true when found and loaded.
696  * Results restricted to data accessable by Auth.
697  * Auth <b>MUST BE</b> the owning UPN, a site
698  * administrator, or a realm administrator to load
699  * information about a realm or UPN.
700  *
701  * @throws ErrorCode_e
702  */
703  bool LoadBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const std::string & name_id_ToFind);
704 
705 #ifdef USE_QT5
706  /**
707  * Load by this record types unique key.
708  *
709  * @note This is an Automatically Generated Sql2Cpp Method.
710  *
711  * @param Auth The authentication handle.
712  *
713  * @param Db An initialzied UpnDB handle.
714  *
715  * @param name_id_ToFind The value to load by.
716  * Does a atoll(NewVal) and the results are used.
717  *
718  * @return true when found and loaded.
719  * Results restricted to data accessable by Auth.
720  * Auth <b>MUST BE</b> the owning UPN, a site
721  * administrator, or a realm administrator to load
722  * information about a realm or UPN.
723  *
724  * @throws ErrorCode_e
725  */
726  bool LoadBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const QString & name_id_ToFind);
727 
728 #endif
729  /**
730  * Load by this record types unique key.
731  *
732  * @note This is an Automatically Generated Sql2Cpp Method.
733  *
734  * @param Auth The authentication handle.
735  *
736  * @param Db An initialzied UpnDB handle.
737  *
738  * @param name_id_ToFind The value to load by.
739  *
740  * @return true when found and loaded.
741  * Results restricted to data accessable by Auth.
742  * Auth <b>MUST BE</b> the owning UPN, a site
743  * administrator, or a realm administrator to load
744  * information about a realm or UPN.
745  *
746  * @throws ErrorCode_e
747  */
748  bool LoadBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, int64_t name_id_ToFind);
749 
750  /**
751  * Load all records that match the value in name_id.
752  *
753  * @note This is an Automatically Generated Sql2Cpp Method.
754  *
755  * @param Auth The authentication handle.
756  *
757  * @param Db An initialzied UpnDB handle.
758  *
759  * @param name_id_ToFind The value to load by.
760  *
761  * @param Results Where the results will be
762  * stored. This method frees each content of, and
763  * and calls clear() on Results before processing
764  * the request.
765  *
766  * @return the number of records found.
767  * Results restricted to data accessable by Auth.
768  * Auth <b>MUST BE</b> the owning UPN, a site
769  * administrator, or a realm administrator to load
770  * information about a realm or UPN.
771  *
772  * @throws ErrorCode_e
773  */
774  uint32_t LoadAllBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const SQLBIGINT & name_id_ToFind, std::list<users_Table *> & Results);
775 
776  /**
777  * Load all records that match the value in name_id.
778  *
779  * @note This is an Automatically Generated Sql2Cpp Method.
780  *
781  * @param Auth The authentication handle.
782  *
783  * @param Db An initialzied UpnDB handle.
784  *
785  * @param name_id_ToFind The value to load by.
786  *
787  * @param Results Where the results will be
788  * stored. This method frees each content of, and
789  * and calls clear() on Results before processing
790  * the request.
791  *
792  * @return the number of records found.
793  * Results restricted to data accessable by Auth.
794  * Auth <b>MUST BE</b> the owning UPN, a site
795  * administrator, or a realm administrator to load
796  * information about a realm or UPN.
797  *
798  * @throws ErrorCode_e
799  */
800  uint32_t LoadAllBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, int64_t name_id_ToFind, std::list<users_Table *> & Results);
801 
802  /**
803  * Load all records that match the value in name_id.
804  *
805  * @note This is an Automatically Generated Sql2Cpp Method.
806  *
807  * @param Auth The authentication handle.
808  *
809  * @param Db An initialzied UpnDB handle.
810  *
811  * @param name_id_ToFind The value to load by.
812  * Does a atoll(name_id_ToFind) and the results are used.
813  * When name_id_ToFind is NULL, will search for NULL value.
814  *
815  * @param Results Where the results will be
816  * stored. This method frees each content of, and
817  * and calls clear() on Results before processing
818  * the request.
819  *
820  * @return the number of records found.
821  * Results restricted to data accessable by Auth.
822  * Auth <b>MUST BE</b> the owning UPN, a site
823  * administrator, or a realm administrator to load
824  * information about a realm or UPN.
825  *
826  * @throws ErrorCode_e
827  */
828  uint32_t LoadAllBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const char * name_id_ToFind, std::list<users_Table *> & Results);
829 
830  /**
831  * Load all records that match the value in name_id.
832  *
833  * @note This is an Automatically Generated Sql2Cpp Method.
834  *
835  * @param Auth The authentication handle.
836  *
837  * @param Db An initialzied UpnDB handle.
838  *
839  * @param name_id_ToFind The value to load by.
840  * Does a atoll(name_id_ToFind) and the results are used.
841  *
842  * @param Results Where the results will be
843  * stored. This method frees each content of, and
844  * and calls clear() on Results before processing
845  * the request.
846  *
847  * @return the number of records found.
848  * Results restricted to data accessable by Auth.
849  * Auth <b>MUST BE</b> the owning UPN, a site
850  * administrator, or a realm administrator to load
851  * information about a realm or UPN.
852  *
853  * @throws ErrorCode_e
854  */
855  uint32_t LoadAllBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const String & name_id_ToFind, std::list<users_Table *> & Results);
856 
857  /**
858  * Load all records that match the value in name_id.
859  *
860  * @note This is an Automatically Generated Sql2Cpp Method.
861  *
862  * @param Auth The authentication handle.
863  *
864  * @param Db An initialzied UpnDB handle.
865  *
866  * @param name_id_ToFind The value to load by.
867  * Does a atoll(name_id_ToFind) and the results are used.
868  *
869  * @param Results Where the results will be
870  * stored. This method frees each content of, and
871  * and calls clear() on Results before processing
872  * the request.
873  *
874  * @return the number of records found.
875  * Results restricted to data accessable by Auth.
876  * Auth <b>MUST BE</b> the owning UPN, a site
877  * administrator, or a realm administrator to load
878  * information about a realm or UPN.
879  *
880  * @throws ErrorCode_e
881  */
882  uint32_t LoadAllBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const std::string & name_id_ToFind, std::list<users_Table *> & Results);
883 
884 #ifdef USE_QT5
885  /**
886  * Load all records that match the value in name_id.
887  *
888  * @note This is an Automatically Generated Sql2Cpp Method.
889  *
890  * @param Auth The authentication handle.
891  *
892  * @param Db An initialzied UpnDB handle.
893  *
894  * @param name_id_ToFind The value to load by.
895  * Does a atoll(name_id_ToFind) and the results are used.
896  *
897  * @param Results Where the results will be
898  * stored. This method frees each content of, and
899  * and calls clear() on Results before processing
900  * the request.
901  *
902  * @return the number of records found.
903  * Results restricted to data accessable by Auth.
904  * Auth <b>MUST BE</b> the owning UPN, a site
905  * administrator, or a realm administrator to load
906  * information about a realm or UPN.
907  *
908  * @throws ErrorCode_e
909  */
910  uint32_t LoadAllBy_name_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const QString & name_id_ToFind, std::list<users_Table *> & Results);
911 
912 #endif
913 #ifdef USE_QT5
914 signals:
915 #endif // USE_QT5
916 
917  /**
918  * name_id changed. (Qt5 signal)
919  * Not sent during Load or Find.
920  *
921  * @param users_DbTable A pointer to the throwing object.
922  */
923  void name_id_Changed(users_Table * users_DbTable);
924 
925 
926 private:
927 
928  /**
929  * The name_id
930  * @note This is an Automaticly Generated Value
931  */
932  SQLBIGINT * _name_id;
933 
934 public:
935 
936  /*
937  * --
938  * -- Column: permissions
939  * --
940  */
941 
942 #ifdef USE_QT5
943 public slots:
944 #else
945 public:
946 #endif // USE_QT5
947 
948  /**
949  * Set permissions by value.
950  *
951  * @note This is an Automatically Generated Sql2Cpp Method.
952  *
953  * @param NewVal The new value.
954  *
955  * @throws ErrorCode_e
956  */
957  void
958  Set_permissions(const SQLBIGINT * NewVal);
959 
960  /**
961  * Set permissions by value.
962  *
963  * @note This is an Automatically Generated Sql2Cpp Method.
964  *
965  * @param NewVal The new value.
966  *
967  * @throws ErrorCode_e
968  */
969  void
970  Set_permissions(int64_t NewVal);
971 
972  /**
973  * Set permissions by value.
974  *
975  * @note This is an Automatically Generated Sql2Cpp Method.
976  *
977  * @param NewVal The new value as a (char*).
978  * Does a atoll(NewVal) and the results are used.
979  * When NewVal is NULL, the SQL value will be NULL.
980  *
981  * @throws ErrorCode_e
982  */
983  void
984  Set_permissions(const char * NewVal);
985 
986  /**
987  * Set permissions by value.
988  *
989  * @note This is an Automatically Generated Sql2Cpp Method.
990  *
991  * @param NewVal The new value as a (char*).
992  * Does a atoll(NewVal) and the results are used.
993  *
994  * @throws ErrorCode_e
995  */
996  void
997  Set_permissions(const String & NewVal);
998 
999  /**
1000  * Set permissions - by value.
1001  *
1002  * @note This is an Automatically Generated Sql2Cpp Method.
1003  *
1004  * @param NewVal The new value as a (char*).
1005  * Does a atoll(NewVal) and the results are used.
1006  *
1007  * @throws ErrorCode_e
1008  */
1009  void
1010  Set_permissions(const std::string & NewVal);
1011 
1012 #ifdef USE_QT5
1013  /**
1014  * Set permissions by value.
1015  *
1016  * @note This is an Automatically Generated Sql2Cpp Method.
1017  *
1018  * @param NewVal The new value as a (char*).
1019  * Does a atoll(NewVal) and the results are used.
1020  *
1021  * @throws ErrorCode_e
1022  */
1023  void
1024  Set_permissions(const QStrting & NewVal);
1025 
1026 #endif
1027 public:
1028 
1029  /**
1030  * Get permissions
1031  *
1032  * @note This is an Automatically Generated Sql2Cpp Method.
1033  *
1034  * @return The permissions
1035  *
1036  * @throws ErrorCode_e
1037  */
1038  int64_t
1039  Get_permissions() const;
1040 
1041 public:
1042 
1043  /**
1044  * Load all records that match the value in permissions.
1045  *
1046  * @note This is an Automatically Generated Sql2Cpp Method.
1047  *
1048  * @param Auth The authentication handle.
1049  *
1050  * @param Db An initialzied UpnDB handle.
1051  *
1052  * @param permissions_ToFind The value to load by.
1053  *
1054  * @param Results Where the results will be
1055  * stored. This method frees each content of, and
1056  * and calls clear() on Results before processing
1057  * the request.
1058  *
1059  * @return the number of records found.
1060  * Results restricted to data accessable by Auth.
1061  * Auth <b>MUST BE</b> the owning UPN, a site
1062  * administrator, or a realm administrator to load
1063  * information about a realm or UPN.
1064  *
1065  * @throws ErrorCode_e
1066  */
1067  uint32_t LoadAllBy_permissions(UpnDbAuthHandle_t Auth, UpnDB & Db, const SQLBIGINT & permissions_ToFind, std::list<users_Table *> & Results);
1068 
1069  /**
1070  * Load all records that match the value in permissions.
1071  *
1072  * @note This is an Automatically Generated Sql2Cpp Method.
1073  *
1074  * @param Auth The authentication handle.
1075  *
1076  * @param Db An initialzied UpnDB handle.
1077  *
1078  * @param permissions_ToFind The value to load by.
1079  *
1080  * @param Results Where the results will be
1081  * stored. This method frees each content of, and
1082  * and calls clear() on Results before processing
1083  * the request.
1084  *
1085  * @return the number of records found.
1086  * Results restricted to data accessable by Auth.
1087  * Auth <b>MUST BE</b> the owning UPN, a site
1088  * administrator, or a realm administrator to load
1089  * information about a realm or UPN.
1090  *
1091  * @throws ErrorCode_e
1092  */
1093  uint32_t LoadAllBy_permissions(UpnDbAuthHandle_t Auth, UpnDB & Db, int64_t permissions_ToFind, std::list<users_Table *> & Results);
1094 
1095  /**
1096  * Load all records that match the value in permissions.
1097  *
1098  * @note This is an Automatically Generated Sql2Cpp Method.
1099  *
1100  * @param Auth The authentication handle.
1101  *
1102  * @param Db An initialzied UpnDB handle.
1103  *
1104  * @param permissions_ToFind The value to load by.
1105  * Does a atoll(permissions_ToFind) and the results are used.
1106  * When permissions_ToFind is NULL, will search for NULL value.
1107  *
1108  * @param Results Where the results will be
1109  * stored. This method frees each content of, and
1110  * and calls clear() on Results before processing
1111  * the request.
1112  *
1113  * @return the number of records found.
1114  * Results restricted to data accessable by Auth.
1115  * Auth <b>MUST BE</b> the owning UPN, a site
1116  * administrator, or a realm administrator to load
1117  * information about a realm or UPN.
1118  *
1119  * @throws ErrorCode_e
1120  */
1121  uint32_t LoadAllBy_permissions(UpnDbAuthHandle_t Auth, UpnDB & Db, const char * permissions_ToFind, std::list<users_Table *> & Results);
1122 
1123  /**
1124  * Load all records that match the value in permissions.
1125  *
1126  * @note This is an Automatically Generated Sql2Cpp Method.
1127  *
1128  * @param Auth The authentication handle.
1129  *
1130  * @param Db An initialzied UpnDB handle.
1131  *
1132  * @param permissions_ToFind The value to load by.
1133  * Does a atoll(permissions_ToFind) and the results are used.
1134  *
1135  * @param Results Where the results will be
1136  * stored. This method frees each content of, and
1137  * and calls clear() on Results before processing
1138  * the request.
1139  *
1140  * @return the number of records found.
1141  * Results restricted to data accessable by Auth.
1142  * Auth <b>MUST BE</b> the owning UPN, a site
1143  * administrator, or a realm administrator to load
1144  * information about a realm or UPN.
1145  *
1146  * @throws ErrorCode_e
1147  */
1148  uint32_t LoadAllBy_permissions(UpnDbAuthHandle_t Auth, UpnDB & Db, const String & permissions_ToFind, std::list<users_Table *> & Results);
1149 
1150  /**
1151  * Load all records that match the value in permissions.
1152  *
1153  * @note This is an Automatically Generated Sql2Cpp Method.
1154  *
1155  * @param Auth The authentication handle.
1156  *
1157  * @param Db An initialzied UpnDB handle.
1158  *
1159  * @param permissions_ToFind The value to load by.
1160  * Does a atoll(permissions_ToFind) and the results are used.
1161  *
1162  * @param Results Where the results will be
1163  * stored. This method frees each content of, and
1164  * and calls clear() on Results before processing
1165  * the request.
1166  *
1167  * @return the number of records found.
1168  * Results restricted to data accessable by Auth.
1169  * Auth <b>MUST BE</b> the owning UPN, a site
1170  * administrator, or a realm administrator to load
1171  * information about a realm or UPN.
1172  *
1173  * @throws ErrorCode_e
1174  */
1175  uint32_t LoadAllBy_permissions(UpnDbAuthHandle_t Auth, UpnDB & Db, const std::string & permissions_ToFind, std::list<users_Table *> & Results);
1176 
1177 #ifdef USE_QT5
1178  /**
1179  * Load all records that match the value in permissions.
1180  *
1181  * @note This is an Automatically Generated Sql2Cpp Method.
1182  *
1183  * @param Auth The authentication handle.
1184  *
1185  * @param Db An initialzied UpnDB handle.
1186  *
1187  * @param permissions_ToFind The value to load by.
1188  * Does a atoll(permissions_ToFind) and the results are used.
1189  *
1190  * @param Results Where the results will be
1191  * stored. This method frees each content of, and
1192  * and calls clear() on Results before processing
1193  * the request.
1194  *
1195  * @return the number of records found.
1196  * Results restricted to data accessable by Auth.
1197  * Auth <b>MUST BE</b> the owning UPN, a site
1198  * administrator, or a realm administrator to load
1199  * information about a realm or UPN.
1200  *
1201  * @throws ErrorCode_e
1202  */
1203  uint32_t LoadAllBy_permissions(UpnDbAuthHandle_t Auth, UpnDB & Db, const QString & permissions_ToFind, std::list<users_Table *> & Results);
1204 
1205 #endif
1206 #ifdef USE_QT5
1207 signals:
1208 #endif // USE_QT5
1209 
1210  /**
1211  * permissions changed. (Qt5 signal)
1212  * Not sent during Load or Find.
1213  *
1214  * @param users_DbTable A pointer to the throwing object.
1215  */
1216  void permissions_Changed(users_Table * users_DbTable);
1217 
1218 
1219 private:
1220 
1221  /**
1222  * The permissions
1223  * @note This is an Automaticly Generated Value
1224  */
1225  SQLBIGINT * _permissions;
1226 
1227 public:
1228 
1229  /*
1230  * --
1231  * -- Column: upndb_id
1232  * --
1233  */
1234 
1235 #ifdef USE_QT5
1236 public slots:
1237 #else
1238 public:
1239 #endif // USE_QT5
1240 
1241  /**
1242  * Set upndb_id by foreign key ID value.
1243  * This column is a foreign key into
1244  * <b>upndb.upndb_id</b>. Call this method.
1245  * to set by KEY value.
1246  *
1247  * @note This is an Automatically Generated Sql2Cpp Method.
1248  *
1249  * @param NewVal The new value.
1250  *
1251  * @throws ErrorCode_e
1252  */
1253  void
1254  Set_upndb_id(const SQLBIGINT * NewVal);
1255 
1256  /**
1257  * Set upndb_id by foreign key ID value.
1258  * This column is a foreign key into
1259  * <b>upndb.upndb_id</b>. Call this method.
1260  * to set by KEY value.
1261  *
1262  * @note This is an Automatically Generated Sql2Cpp Method.
1263  *
1264  * @param NewVal The new value.
1265  *
1266  * @throws ErrorCode_e
1267  */
1268  void
1269  Set_upndb_id(int64_t NewVal);
1270 
1271  /**
1272  * Set upndb_id by foreign key ID value.
1273  * This column is a foreign key into
1274  * <b>upndb.upndb_id</b>. Call this method.
1275  * to set by KEY value.
1276  *
1277  * @note This is an Automatically Generated Sql2Cpp Method.
1278  *
1279  * @param NewVal The new value as a (char*).
1280  * Does a atoll(NewVal) and the results are used.
1281  * When NewVal is NULL, the SQL value will be NULL.
1282  *
1283  * @throws ErrorCode_e
1284  */
1285  void
1286  Set_upndb_id(const char * NewVal);
1287 
1288  /**
1289  * Set upndb_id by foreign key ID value.
1290  * This column is a foreign key into
1291  * <b>upndb.upndb_id</b>. Call this method.
1292  * to set by KEY value.
1293  *
1294  * @note This is an Automatically Generated Sql2Cpp Method.
1295  *
1296  * @param NewVal The new value as a (char*).
1297  * Does a atoll(NewVal) and the results are used.
1298  * When NewVal is NULL, the SQL value will be NULL.
1299  *
1300  * @throws ErrorCode_e
1301  */
1302  void
1303  Set_upndb_id(const String & NewVal);
1304 
1305  /**
1306  * Set upndb_id by foreign key ID value.
1307  * This column is a foreign key into
1308  * <b>upndb.upndb_id</b>. Call this method.
1309  * to set by KEY value.
1310  *
1311  * @note This is an Automatically Generated Sql2Cpp Method.
1312  *
1313  * @param NewVal The new value as a (char*).
1314  * Does a atoll(NewVal) and the results are used.
1315  *
1316  * @throws ErrorCode_e
1317  */
1318  void
1319  Set_upndb_id(const std::string & NewVal);
1320 
1321 #ifdef USE_QT5
1322  /**
1323  * Set upndb_id by foreign key ID value.
1324  * This column is a foreign key into
1325  * <b>upndb.upndb_id</b>. Call this method.
1326  * to set by KEY value.
1327  *
1328  * @note This is an Automatically Generated Sql2Cpp Method.
1329  *
1330  * @param NewVal The new value as a (char*).
1331  * Does a atoll(NewVal) and the results are used.
1332  *
1333  * @throws ErrorCode_e
1334  */
1335  void
1336  Set_upndb_id(const QStrting & NewVal);
1337 #endif
1338 
1339 public:
1340 
1341  /**
1342  * Get upndb_id
1343  * This column is a foreign key into
1344  * <b>upndb.upndb_id</b>. Call this method.
1345  * to get by key ID.
1346  *
1347  * @note This is an Automatically Generated Sql2Cpp Method.
1348  *
1349  * @return The upndb_id - The foreign key ID.
1350  *
1351  * @throws ErrorCode_e
1352  */
1353  int64_t
1354  Get_upndb_id() const;
1355 
1356 public:
1357 
1358  /**
1359  * Load all records that match the value in upndb_id.
1360  *
1361  * @note This is an Automatically Generated Sql2Cpp Method.
1362  *
1363  * @param Auth The authentication handle.
1364  *
1365  * @param Db An initialzied UpnDB handle.
1366  *
1367  * @param upndb_id_ToFind The value to load by.
1368  *
1369  * @param Results Where the results will be
1370  * stored. This method frees each content of, and
1371  * and calls clear() on Results before processing
1372  * the request.
1373  *
1374  * @return the number of records found.
1375  * Results restricted to data accessable by Auth.
1376  * Auth <b>MUST BE</b> the owning UPN, a site
1377  * administrator, or a realm administrator to load
1378  * information about a realm or UPN.
1379  *
1380  * @throws ErrorCode_e
1381  */
1382  uint32_t LoadAllBy_upndb_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const SQLBIGINT & upndb_id_ToFind, std::list<users_Table *> & Results);
1383 
1384  /**
1385  * Load all records that match the value in upndb_id.
1386  *
1387  * @note This is an Automatically Generated Sql2Cpp Method.
1388  *
1389  * @param Auth The authentication handle.
1390  *
1391  * @param Db An initialzied UpnDB handle.
1392  *
1393  * @param upndb_id_ToFind The value to load by.
1394  *
1395  * @param Results Where the results will be
1396  * stored. This method frees each content of, and
1397  * and calls clear() on Results before processing
1398  * the request.
1399  *
1400  * @return the number of records found.
1401  * Results restricted to data accessable by Auth.
1402  * Auth <b>MUST BE</b> the owning UPN, a site
1403  * administrator, or a realm administrator to load
1404  * information about a realm or UPN.
1405  *
1406  * @throws ErrorCode_e
1407  */
1408  uint32_t LoadAllBy_upndb_id(UpnDbAuthHandle_t Auth, UpnDB & Db, int64_t upndb_id_ToFind, std::list<users_Table *> & Results);
1409 
1410  /**
1411  * Load all records that match the value in upndb_id.
1412  *
1413  * @note This is an Automatically Generated Sql2Cpp Method.
1414  *
1415  * @param Auth The authentication handle.
1416  *
1417  * @param Db An initialzied UpnDB handle.
1418  *
1419  * @param upndb_id_ToFind The value to load by.
1420  * Does a atoll(upndb_id_ToFind) and the results are used.
1421  * When upndb_id_ToFind is NULL, will search for NULL value.
1422  *
1423  * @param Results Where the results will be
1424  * stored. This method frees each content of, and
1425  * and calls clear() on Results before processing
1426  * the request.
1427  *
1428  * @return the number of records found.
1429  * Results restricted to data accessable by Auth.
1430  * Auth <b>MUST BE</b> the owning UPN, a site
1431  * administrator, or a realm administrator to load
1432  * information about a realm or UPN.
1433  *
1434  * @throws ErrorCode_e
1435  */
1436  uint32_t LoadAllBy_upndb_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const char * upndb_id_ToFind, std::list<users_Table *> & Results);
1437 
1438  /**
1439  * Load all records that match the value in upndb_id.
1440  *
1441  * @note This is an Automatically Generated Sql2Cpp Method.
1442  *
1443  * @param Auth The authentication handle.
1444  *
1445  * @param Db An initialzied UpnDB handle.
1446  *
1447  * @param upndb_id_ToFind The value to load by.
1448  * Does a atoll(upndb_id_ToFind) and the results are used.
1449  *
1450  * @param Results Where the results will be
1451  * stored. This method frees each content of, and
1452  * and calls clear() on Results before processing
1453  * the request.
1454  *
1455  * @return the number of records found.
1456  * Results restricted to data accessable by Auth.
1457  * Auth <b>MUST BE</b> the owning UPN, a site
1458  * administrator, or a realm administrator to load
1459  * information about a realm or UPN.
1460  *
1461  * @throws ErrorCode_e
1462  */
1463  uint32_t LoadAllBy_upndb_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const String & upndb_id_ToFind, std::list<users_Table *> & Results);
1464 
1465  /**
1466  * Load all records that match the value in upndb_id.
1467  *
1468  * @note This is an Automatically Generated Sql2Cpp Method.
1469  *
1470  * @param Auth The authentication handle.
1471  *
1472  * @param Db An initialzied UpnDB handle.
1473  *
1474  * @param upndb_id_ToFind The value to load by.
1475  * Does a atoll(upndb_id_ToFind) and the results are used.
1476  *
1477  * @param Results Where the results will be
1478  * stored. This method frees each content of, and
1479  * and calls clear() on Results before processing
1480  * the request.
1481  *
1482  * @return the number of records found.
1483  * Results restricted to data accessable by Auth.
1484  * Auth <b>MUST BE</b> the owning UPN, a site
1485  * administrator, or a realm administrator to load
1486  * information about a realm or UPN.
1487  *
1488  * @throws ErrorCode_e
1489  */
1490  uint32_t LoadAllBy_upndb_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const std::string & upndb_id_ToFind, std::list<users_Table *> & Results);
1491 
1492 #ifdef USE_QT5
1493  /**
1494  * Load all records that match the value in upndb_id.
1495  *
1496  * @note This is an Automatically Generated Sql2Cpp Method.
1497  *
1498  * @param Auth The authentication handle.
1499  *
1500  * @param Db An initialzied UpnDB handle.
1501  *
1502  * @param upndb_id_ToFind The value to load by.
1503  * Does a atoll(upndb_id_ToFind) and the results are used.
1504  *
1505  * @param Results Where the results will be
1506  * stored. This method frees each content of, and
1507  * and calls clear() on Results before processing
1508  * the request.
1509  *
1510  * @return the number of records found.
1511  * Results restricted to data accessable by Auth.
1512  * Auth <b>MUST BE</b> the owning UPN, a site
1513  * administrator, or a realm administrator to load
1514  * information about a realm or UPN.
1515  *
1516  * @throws ErrorCode_e
1517  */
1518  uint32_t LoadAllBy_upndb_id(UpnDbAuthHandle_t Auth, UpnDB & Db, const QString & upndb_id_ToFind, std::list<users_Table *> & Results);
1519 
1520 #endif
1521 #ifdef USE_QT5
1522 signals:
1523 #endif // USE_QT5
1524 
1525  /**
1526  * upndb_id changed. (Qt5 signal)
1527  * Not sent during Load or Find.
1528  *
1529  * @param users_DbTable A pointer to the throwing object.
1530  */
1531  void upndb_id_Changed(users_Table * users_DbTable);
1532 
1533 
1534 private:
1535 
1536  /**
1537  * The upndb_id
1538  * @note This is an Automaticly Generated Value
1539  */
1540  SQLBIGINT * _upndb_id;
1541 
1542 
1543 public:
1544 
1545  /**
1546  * Update this record in the database.
1547  *
1548  * @note This is an Automatically Generated Sql2Cpp Method.
1549  *
1550  * @param Auth The authentication handle.
1551  *
1552  * @param Db An initialzied UpnDB handle.
1553  *
1554  * @return the number of records updated. It is an error
1555  * to call this method method on an new record.
1556  * If this records does not have a any primary key
1557  * or unique record, then all records that match
1558  * will be updated.
1559  * Results restricted to data accessable by Auth.
1560  * Auth <b>MUST BE</b> the owning UPN, a site
1561  * administrator, or a realm administrator to update
1562  * information about a realm or UPN.
1563  *
1564  * @throws ErrorCode_e
1565  */
1566  virtual uint64_t
1567  Update(UpnDbAuthHandle_t Auth, UpnDB & Db);
1568 
1569  /**
1570  * Add this object as a new record in the database.
1571  *
1572  * @note This is an Automatically Generated Sql2Cpp Method.
1573  *
1574  * @param Auth The authentication handle.
1575  *
1576  * @param Db An initialzied UpnDB handle.
1577  *
1578  * @return true when added.
1579  * Returns false on error.
1580  * On success, any serial or AUTO INCREMENT key
1581  * will be updated in this record.
1582  * Results restricted to data accessable by Auth.
1583  * Auth <b>MUST BE</b> the owning UPN, a site
1584  * administrator, or a realm administrator to add
1585  * information about a realm or UPN.
1586  *
1587  * @throws ErrorCode_e
1588  */
1589  virtual bool
1590  Add(UpnDbAuthHandle_t Auth, UpnDB & Db);
1591 
1592  /**
1593  * Remove this object from the database.
1594  *
1595  * @note This is an Automatically Generated Sql2Cpp Method.
1596  *
1597  * @param Auth The authentication handle.
1598  *
1599  * @param Db An initialzied UpnDB handle.
1600  *
1601  * @return the number of records removed.
1602  * Returns false on error.
1603  * If this records does not have a any primary key
1604  * or unique record, then all records that match
1605  * will be removed.
1606  * Results restricted to data accessable by Auth.
1607  * Auth <b>MUST BE</b> the owning UPN, a site
1608  * administrator, or a realm administrator to remove
1609  * information about a realm or UPN.
1610  *
1611  * @throws ErrorCode_e
1612  */
1613  virtual uint64_t
1614  Remove(UpnDbAuthHandle_t Auth, UpnDB & Db);
1615 
1616 #ifdef USE_QT5
1617 signals:
1618 #endif // USE_QT5
1619 
1620  /**
1621  * Something in this object changed. (Qt5 signal)
1622  * Not sent during Load or Find...
1623  *
1624  * @note This is an Automatically Generated Sql2Cpp Method.
1625  *
1626  * @param users_DbTable A pointer to the throwing object.
1627  *
1628  * @throws ErrorCode_e
1629  */
1630  void users_Table_Changed(users_Table * users_DbTable);
1631 
1632 }; // END users_Table
1633 
1634 
1635 } } }
1636 //
1637 // End of Namespace SoftwareAndServices::Library::BookKeeper
1638 //
1639 
void * UpnDbAuthHandle_t
Definition: UpnDB.h:83
DNSDB * Db
#define int64_t
Definition: SaSNameser.h:67