1 package org.tigris.scarab.om; 2 3 4 import java.math.BigDecimal ; 5 import java.sql.Connection ; 6 import java.util.ArrayList ; 7 import java.util.Collections ; 8 import java.util.Date ; 9 import java.util.List ; 10 11 import org.apache.commons.lang.ObjectUtils; 12 import org.apache.fulcrum.intake.Retrievable; 13 import org.apache.torque.TorqueException; 14 import org.apache.torque.om.BaseObject; 15 import org.apache.torque.om.ComboKey; 16 import org.apache.torque.om.DateKey; 17 import org.apache.torque.om.NumberKey; 18 import org.apache.torque.om.ObjectKey; 19 import org.apache.torque.om.SimpleKey; 20 import org.apache.torque.om.StringKey; 21 import org.apache.torque.om.Persistent; 22 import org.apache.torque.util.Criteria; 23 import org.apache.torque.util.Transaction; 24 25 26 30 public abstract class BaseScarabUserImpl extends org.apache.fulcrum.security.impl.db.entity.TurbineUser 31 implements org.apache.fulcrum.intake.Retrievable 32 { 33 34 private static final ScarabUserImplPeer peer = 35 new ScarabUserImplPeer(); 36 37 38 39 40 41 44 protected List collActivitysRelatedByOldUserId; 45 46 51 protected void initActivitysRelatedByOldUserId() 52 { 53 if (collActivitysRelatedByOldUserId == null) 54 { 55 collActivitysRelatedByOldUserId = new ArrayList (); 56 } 57 } 58 59 60 67 public void addActivityRelatedByOldUserId(Activity l) throws TorqueException 68 { 69 getActivitysRelatedByOldUserId().add(l); 70 l.setScarabUserRelatedByOldUserId((ScarabUserImpl)this); 71 } 72 73 76 private Criteria lastActivitysRelatedByOldUserIdCriteria = null; 77 78 85 public List getActivitysRelatedByOldUserId() throws TorqueException 86 { 87 if (collActivitysRelatedByOldUserId == null) 88 { 89 collActivitysRelatedByOldUserId = getActivitysRelatedByOldUserId(new Criteria(10)); 90 } 91 return collActivitysRelatedByOldUserId; 92 } 93 94 105 public List getActivitysRelatedByOldUserId(Criteria criteria) throws TorqueException 106 { 107 if (collActivitysRelatedByOldUserId == null) 108 { 109 if (isNew()) 110 { 111 collActivitysRelatedByOldUserId = new ArrayList (); 112 } 113 else 114 { 115 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 116 collActivitysRelatedByOldUserId = ActivityPeer.doSelect(criteria); 117 } 118 } 119 else 120 { 121 if (!isNew()) 123 { 124 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 128 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 129 { 130 collActivitysRelatedByOldUserId = ActivityPeer.doSelect(criteria); 131 } 132 } 133 } 134 lastActivitysRelatedByOldUserIdCriteria = criteria; 135 136 return collActivitysRelatedByOldUserId; 137 } 138 139 147 public List getActivitysRelatedByOldUserId(Connection con) throws TorqueException 148 { 149 if (collActivitysRelatedByOldUserId == null) 150 { 151 collActivitysRelatedByOldUserId = getActivitysRelatedByOldUserId(new Criteria(10),con); 152 } 153 return collActivitysRelatedByOldUserId; 154 } 155 156 168 public List getActivitysRelatedByOldUserId(Criteria criteria,Connection con) throws TorqueException 169 { 170 if (collActivitysRelatedByOldUserId == null) 171 { 172 if (isNew()) 173 { 174 collActivitysRelatedByOldUserId = new ArrayList (); 175 } 176 else 177 { 178 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 179 collActivitysRelatedByOldUserId = ActivityPeer.doSelect(criteria,con); 180 } 181 } 182 else 183 { 184 if (!isNew()) 186 { 187 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 191 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 192 { 193 collActivitysRelatedByOldUserId = ActivityPeer.doSelect(criteria,con); 194 } 195 } 196 } 197 lastActivitysRelatedByOldUserIdCriteria = criteria; 198 199 return collActivitysRelatedByOldUserId; 200 } 201 202 203 204 205 206 207 208 209 210 211 212 223 protected List getActivitysRelatedByOldUserIdJoinIssue(Criteria criteria) 224 throws TorqueException 225 { 226 if (collActivitysRelatedByOldUserId == null) 227 { 228 if (isNew()) 229 { 230 collActivitysRelatedByOldUserId = new ArrayList (); 231 } 232 else 233 { 234 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 235 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinIssue(criteria); 236 } 237 } 238 else 239 { 240 244 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 245 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 246 { 247 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinIssue(criteria); 248 } 249 } 250 lastActivitysRelatedByOldUserIdCriteria = criteria; 251 252 return collActivitysRelatedByOldUserId; 253 } 254 255 256 257 258 259 260 261 262 263 274 protected List getActivitysRelatedByOldUserIdJoinAttribute(Criteria criteria) 275 throws TorqueException 276 { 277 if (collActivitysRelatedByOldUserId == null) 278 { 279 if (isNew()) 280 { 281 collActivitysRelatedByOldUserId = new ArrayList (); 282 } 283 else 284 { 285 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 286 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttribute(criteria); 287 } 288 } 289 else 290 { 291 295 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 296 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 297 { 298 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttribute(criteria); 299 } 300 } 301 lastActivitysRelatedByOldUserIdCriteria = criteria; 302 303 return collActivitysRelatedByOldUserId; 304 } 305 306 307 308 309 310 311 312 313 314 325 protected List getActivitysRelatedByOldUserIdJoinActivitySet(Criteria criteria) 326 throws TorqueException 327 { 328 if (collActivitysRelatedByOldUserId == null) 329 { 330 if (isNew()) 331 { 332 collActivitysRelatedByOldUserId = new ArrayList (); 333 } 334 else 335 { 336 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 337 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinActivitySet(criteria); 338 } 339 } 340 else 341 { 342 346 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 347 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 348 { 349 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinActivitySet(criteria); 350 } 351 } 352 lastActivitysRelatedByOldUserIdCriteria = criteria; 353 354 return collActivitysRelatedByOldUserId; 355 } 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 384 protected List getActivitysRelatedByOldUserIdJoinScarabUserImplRelatedByNewUserId(Criteria criteria) 385 throws TorqueException 386 { 387 if (collActivitysRelatedByOldUserId == null) 388 { 389 if (isNew()) 390 { 391 collActivitysRelatedByOldUserId = new ArrayList (); 392 } 393 else 394 { 395 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 396 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinScarabUserImplRelatedByNewUserId(criteria); 397 } 398 } 399 else 400 { 401 405 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 406 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 407 { 408 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinScarabUserImplRelatedByNewUserId(criteria); 409 } 410 } 411 lastActivitysRelatedByOldUserIdCriteria = criteria; 412 413 return collActivitysRelatedByOldUserId; 414 } 415 416 417 418 419 420 421 422 423 424 435 protected List getActivitysRelatedByOldUserIdJoinAttributeOptionRelatedByOldOptionId(Criteria criteria) 436 throws TorqueException 437 { 438 if (collActivitysRelatedByOldUserId == null) 439 { 440 if (isNew()) 441 { 442 collActivitysRelatedByOldUserId = new ArrayList (); 443 } 444 else 445 { 446 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 447 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByOldOptionId(criteria); 448 } 449 } 450 else 451 { 452 456 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 457 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 458 { 459 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByOldOptionId(criteria); 460 } 461 } 462 lastActivitysRelatedByOldUserIdCriteria = criteria; 463 464 return collActivitysRelatedByOldUserId; 465 } 466 467 468 469 470 471 472 473 474 475 486 protected List getActivitysRelatedByOldUserIdJoinAttributeOptionRelatedByNewOptionId(Criteria criteria) 487 throws TorqueException 488 { 489 if (collActivitysRelatedByOldUserId == null) 490 { 491 if (isNew()) 492 { 493 collActivitysRelatedByOldUserId = new ArrayList (); 494 } 495 else 496 { 497 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 498 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByNewOptionId(criteria); 499 } 500 } 501 else 502 { 503 507 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 508 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 509 { 510 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByNewOptionId(criteria); 511 } 512 } 513 lastActivitysRelatedByOldUserIdCriteria = criteria; 514 515 return collActivitysRelatedByOldUserId; 516 } 517 518 519 520 521 522 523 524 525 526 537 protected List getActivitysRelatedByOldUserIdJoinAttachment(Criteria criteria) 538 throws TorqueException 539 { 540 if (collActivitysRelatedByOldUserId == null) 541 { 542 if (isNew()) 543 { 544 collActivitysRelatedByOldUserId = new ArrayList (); 545 } 546 else 547 { 548 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 549 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttachment(criteria); 550 } 551 } 552 else 553 { 554 558 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 559 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 560 { 561 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinAttachment(criteria); 562 } 563 } 564 lastActivitysRelatedByOldUserIdCriteria = criteria; 565 566 return collActivitysRelatedByOldUserId; 567 } 568 569 570 571 572 573 574 575 576 577 588 protected List getActivitysRelatedByOldUserIdJoinDepend(Criteria criteria) 589 throws TorqueException 590 { 591 if (collActivitysRelatedByOldUserId == null) 592 { 593 if (isNew()) 594 { 595 collActivitysRelatedByOldUserId = new ArrayList (); 596 } 597 else 598 { 599 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 600 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinDepend(criteria); 601 } 602 } 603 else 604 { 605 609 criteria.add(ActivityPeer.OLD_USER_ID, getUserId() ); 610 if (!lastActivitysRelatedByOldUserIdCriteria.equals(criteria)) 611 { 612 collActivitysRelatedByOldUserId = ActivityPeer.doSelectJoinDepend(criteria); 613 } 614 } 615 lastActivitysRelatedByOldUserIdCriteria = criteria; 616 617 return collActivitysRelatedByOldUserId; 618 } 619 620 621 622 623 624 627 protected List collActivitysRelatedByNewUserId; 628 629 634 protected void initActivitysRelatedByNewUserId() 635 { 636 if (collActivitysRelatedByNewUserId == null) 637 { 638 collActivitysRelatedByNewUserId = new ArrayList (); 639 } 640 } 641 642 643 650 public void addActivityRelatedByNewUserId(Activity l) throws TorqueException 651 { 652 getActivitysRelatedByNewUserId().add(l); 653 l.setScarabUserRelatedByNewUserId((ScarabUserImpl)this); 654 } 655 656 659 private Criteria lastActivitysRelatedByNewUserIdCriteria = null; 660 661 668 public List getActivitysRelatedByNewUserId() throws TorqueException 669 { 670 if (collActivitysRelatedByNewUserId == null) 671 { 672 collActivitysRelatedByNewUserId = getActivitysRelatedByNewUserId(new Criteria(10)); 673 } 674 return collActivitysRelatedByNewUserId; 675 } 676 677 688 public List getActivitysRelatedByNewUserId(Criteria criteria) throws TorqueException 689 { 690 if (collActivitysRelatedByNewUserId == null) 691 { 692 if (isNew()) 693 { 694 collActivitysRelatedByNewUserId = new ArrayList (); 695 } 696 else 697 { 698 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 699 collActivitysRelatedByNewUserId = ActivityPeer.doSelect(criteria); 700 } 701 } 702 else 703 { 704 if (!isNew()) 706 { 707 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 711 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 712 { 713 collActivitysRelatedByNewUserId = ActivityPeer.doSelect(criteria); 714 } 715 } 716 } 717 lastActivitysRelatedByNewUserIdCriteria = criteria; 718 719 return collActivitysRelatedByNewUserId; 720 } 721 722 730 public List getActivitysRelatedByNewUserId(Connection con) throws TorqueException 731 { 732 if (collActivitysRelatedByNewUserId == null) 733 { 734 collActivitysRelatedByNewUserId = getActivitysRelatedByNewUserId(new Criteria(10),con); 735 } 736 return collActivitysRelatedByNewUserId; 737 } 738 739 751 public List getActivitysRelatedByNewUserId(Criteria criteria,Connection con) throws TorqueException 752 { 753 if (collActivitysRelatedByNewUserId == null) 754 { 755 if (isNew()) 756 { 757 collActivitysRelatedByNewUserId = new ArrayList (); 758 } 759 else 760 { 761 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 762 collActivitysRelatedByNewUserId = ActivityPeer.doSelect(criteria,con); 763 } 764 } 765 else 766 { 767 if (!isNew()) 769 { 770 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 774 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 775 { 776 collActivitysRelatedByNewUserId = ActivityPeer.doSelect(criteria,con); 777 } 778 } 779 } 780 lastActivitysRelatedByNewUserIdCriteria = criteria; 781 782 return collActivitysRelatedByNewUserId; 783 } 784 785 786 787 788 789 790 791 792 793 794 795 806 protected List getActivitysRelatedByNewUserIdJoinIssue(Criteria criteria) 807 throws TorqueException 808 { 809 if (collActivitysRelatedByNewUserId == null) 810 { 811 if (isNew()) 812 { 813 collActivitysRelatedByNewUserId = new ArrayList (); 814 } 815 else 816 { 817 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 818 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinIssue(criteria); 819 } 820 } 821 else 822 { 823 827 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 828 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 829 { 830 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinIssue(criteria); 831 } 832 } 833 lastActivitysRelatedByNewUserIdCriteria = criteria; 834 835 return collActivitysRelatedByNewUserId; 836 } 837 838 839 840 841 842 843 844 845 846 857 protected List getActivitysRelatedByNewUserIdJoinAttribute(Criteria criteria) 858 throws TorqueException 859 { 860 if (collActivitysRelatedByNewUserId == null) 861 { 862 if (isNew()) 863 { 864 collActivitysRelatedByNewUserId = new ArrayList (); 865 } 866 else 867 { 868 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 869 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttribute(criteria); 870 } 871 } 872 else 873 { 874 878 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 879 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 880 { 881 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttribute(criteria); 882 } 883 } 884 lastActivitysRelatedByNewUserIdCriteria = criteria; 885 886 return collActivitysRelatedByNewUserId; 887 } 888 889 890 891 892 893 894 895 896 897 908 protected List getActivitysRelatedByNewUserIdJoinActivitySet(Criteria criteria) 909 throws TorqueException 910 { 911 if (collActivitysRelatedByNewUserId == null) 912 { 913 if (isNew()) 914 { 915 collActivitysRelatedByNewUserId = new ArrayList (); 916 } 917 else 918 { 919 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 920 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinActivitySet(criteria); 921 } 922 } 923 else 924 { 925 929 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 930 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 931 { 932 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinActivitySet(criteria); 933 } 934 } 935 lastActivitysRelatedByNewUserIdCriteria = criteria; 936 937 return collActivitysRelatedByNewUserId; 938 } 939 940 941 942 943 944 945 946 947 948 959 protected List getActivitysRelatedByNewUserIdJoinScarabUserImplRelatedByOldUserId(Criteria criteria) 960 throws TorqueException 961 { 962 if (collActivitysRelatedByNewUserId == null) 963 { 964 if (isNew()) 965 { 966 collActivitysRelatedByNewUserId = new ArrayList (); 967 } 968 else 969 { 970 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 971 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinScarabUserImplRelatedByOldUserId(criteria); 972 } 973 } 974 else 975 { 976 980 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 981 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 982 { 983 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinScarabUserImplRelatedByOldUserId(criteria); 984 } 985 } 986 lastActivitysRelatedByNewUserIdCriteria = criteria; 987 988 return collActivitysRelatedByNewUserId; 989 } 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1018 protected List getActivitysRelatedByNewUserIdJoinAttributeOptionRelatedByOldOptionId(Criteria criteria) 1019 throws TorqueException 1020 { 1021 if (collActivitysRelatedByNewUserId == null) 1022 { 1023 if (isNew()) 1024 { 1025 collActivitysRelatedByNewUserId = new ArrayList (); 1026 } 1027 else 1028 { 1029 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1030 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByOldOptionId(criteria); 1031 } 1032 } 1033 else 1034 { 1035 1039 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1040 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 1041 { 1042 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByOldOptionId(criteria); 1043 } 1044 } 1045 lastActivitysRelatedByNewUserIdCriteria = criteria; 1046 1047 return collActivitysRelatedByNewUserId; 1048 } 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1069 protected List getActivitysRelatedByNewUserIdJoinAttributeOptionRelatedByNewOptionId(Criteria criteria) 1070 throws TorqueException 1071 { 1072 if (collActivitysRelatedByNewUserId == null) 1073 { 1074 if (isNew()) 1075 { 1076 collActivitysRelatedByNewUserId = new ArrayList (); 1077 } 1078 else 1079 { 1080 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1081 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByNewOptionId(criteria); 1082 } 1083 } 1084 else 1085 { 1086 1090 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1091 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 1092 { 1093 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttributeOptionRelatedByNewOptionId(criteria); 1094 } 1095 } 1096 lastActivitysRelatedByNewUserIdCriteria = criteria; 1097 1098 return collActivitysRelatedByNewUserId; 1099 } 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1120 protected List getActivitysRelatedByNewUserIdJoinAttachment(Criteria criteria) 1121 throws TorqueException 1122 { 1123 if (collActivitysRelatedByNewUserId == null) 1124 { 1125 if (isNew()) 1126 { 1127 collActivitysRelatedByNewUserId = new ArrayList (); 1128 } 1129 else 1130 { 1131 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1132 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttachment(criteria); 1133 } 1134 } 1135 else 1136 { 1137 1141 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1142 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 1143 { 1144 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinAttachment(criteria); 1145 } 1146 } 1147 lastActivitysRelatedByNewUserIdCriteria = criteria; 1148 1149 return collActivitysRelatedByNewUserId; 1150 } 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1171 protected List getActivitysRelatedByNewUserIdJoinDepend(Criteria criteria) 1172 throws TorqueException 1173 { 1174 if (collActivitysRelatedByNewUserId == null) 1175 { 1176 if (isNew()) 1177 { 1178 collActivitysRelatedByNewUserId = new ArrayList (); 1179 } 1180 else 1181 { 1182 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1183 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinDepend(criteria); 1184 } 1185 } 1186 else 1187 { 1188 1192 criteria.add(ActivityPeer.NEW_USER_ID, getUserId() ); 1193 if (!lastActivitysRelatedByNewUserIdCriteria.equals(criteria)) 1194 { 1195 collActivitysRelatedByNewUserId = ActivityPeer.doSelectJoinDepend(criteria); 1196 } 1197 } 1198 lastActivitysRelatedByNewUserIdCriteria = criteria; 1199 1200 return collActivitysRelatedByNewUserId; 1201 } 1202 1203 1204 1205 1206 1207 1210 protected List collAttachmentsRelatedByCreatedBy; 1211 1212 1217 protected void initAttachmentsRelatedByCreatedBy() 1218 { 1219 if (collAttachmentsRelatedByCreatedBy == null) 1220 { 1221 collAttachmentsRelatedByCreatedBy = new ArrayList (); 1222 } 1223 } 1224 1225 1226 1233 public void addAttachmentRelatedByCreatedBy(Attachment l) throws TorqueException 1234 { 1235 getAttachmentsRelatedByCreatedBy().add(l); 1236 l.setScarabUserRelatedByCreatedBy((ScarabUserImpl)this); 1237 } 1238 1239 1242 private Criteria lastAttachmentsRelatedByCreatedByCriteria = null; 1243 1244 1251 public List getAttachmentsRelatedByCreatedBy() throws TorqueException 1252 { 1253 if (collAttachmentsRelatedByCreatedBy == null) 1254 { 1255 collAttachmentsRelatedByCreatedBy = getAttachmentsRelatedByCreatedBy(new Criteria(10)); 1256 } 1257 return collAttachmentsRelatedByCreatedBy; 1258 } 1259 1260 1271 public List getAttachmentsRelatedByCreatedBy(Criteria criteria) throws TorqueException 1272 { 1273 if (collAttachmentsRelatedByCreatedBy == null) 1274 { 1275 if (isNew()) 1276 { 1277 collAttachmentsRelatedByCreatedBy = new ArrayList (); 1278 } 1279 else 1280 { 1281 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1282 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelect(criteria); 1283 } 1284 } 1285 else 1286 { 1287 if (!isNew()) 1289 { 1290 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1294 if (!lastAttachmentsRelatedByCreatedByCriteria.equals(criteria)) 1295 { 1296 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelect(criteria); 1297 } 1298 } 1299 } 1300 lastAttachmentsRelatedByCreatedByCriteria = criteria; 1301 1302 return collAttachmentsRelatedByCreatedBy; 1303 } 1304 1305 1313 public List getAttachmentsRelatedByCreatedBy(Connection con) throws TorqueException 1314 { 1315 if (collAttachmentsRelatedByCreatedBy == null) 1316 { 1317 collAttachmentsRelatedByCreatedBy = getAttachmentsRelatedByCreatedBy(new Criteria(10),con); 1318 } 1319 return collAttachmentsRelatedByCreatedBy; 1320 } 1321 1322 1334 public List getAttachmentsRelatedByCreatedBy(Criteria criteria,Connection con) throws TorqueException 1335 { 1336 if (collAttachmentsRelatedByCreatedBy == null) 1337 { 1338 if (isNew()) 1339 { 1340 collAttachmentsRelatedByCreatedBy = new ArrayList (); 1341 } 1342 else 1343 { 1344 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1345 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelect(criteria,con); 1346 } 1347 } 1348 else 1349 { 1350 if (!isNew()) 1352 { 1353 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1357 if (!lastAttachmentsRelatedByCreatedByCriteria.equals(criteria)) 1358 { 1359 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelect(criteria,con); 1360 } 1361 } 1362 } 1363 lastAttachmentsRelatedByCreatedByCriteria = criteria; 1364 1365 return collAttachmentsRelatedByCreatedBy; 1366 } 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1389 protected List getAttachmentsRelatedByCreatedByJoinIssue(Criteria criteria) 1390 throws TorqueException 1391 { 1392 if (collAttachmentsRelatedByCreatedBy == null) 1393 { 1394 if (isNew()) 1395 { 1396 collAttachmentsRelatedByCreatedBy = new ArrayList (); 1397 } 1398 else 1399 { 1400 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1401 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelectJoinIssue(criteria); 1402 } 1403 } 1404 else 1405 { 1406 1410 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1411 if (!lastAttachmentsRelatedByCreatedByCriteria.equals(criteria)) 1412 { 1413 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelectJoinIssue(criteria); 1414 } 1415 } 1416 lastAttachmentsRelatedByCreatedByCriteria = criteria; 1417 1418 return collAttachmentsRelatedByCreatedBy; 1419 } 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1440 protected List getAttachmentsRelatedByCreatedByJoinAttachmentType(Criteria criteria) 1441 throws TorqueException 1442 { 1443 if (collAttachmentsRelatedByCreatedBy == null) 1444 { 1445 if (isNew()) 1446 { 1447 collAttachmentsRelatedByCreatedBy = new ArrayList (); 1448 } 1449 else 1450 { 1451 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1452 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelectJoinAttachmentType(criteria); 1453 } 1454 } 1455 else 1456 { 1457 1461 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1462 if (!lastAttachmentsRelatedByCreatedByCriteria.equals(criteria)) 1463 { 1464 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelectJoinAttachmentType(criteria); 1465 } 1466 } 1467 lastAttachmentsRelatedByCreatedByCriteria = criteria; 1468 1469 return collAttachmentsRelatedByCreatedBy; 1470 } 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1499 protected List getAttachmentsRelatedByCreatedByJoinScarabUserImplRelatedByModifiedBy(Criteria criteria) 1500 throws TorqueException 1501 { 1502 if (collAttachmentsRelatedByCreatedBy == null) 1503 { 1504 if (isNew()) 1505 { 1506 collAttachmentsRelatedByCreatedBy = new ArrayList (); 1507 } 1508 else 1509 { 1510 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1511 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelectJoinScarabUserImplRelatedByModifiedBy(criteria); 1512 } 1513 } 1514 else 1515 { 1516 1520 criteria.add(AttachmentPeer.CREATED_BY, getUserId() ); 1521 if (!lastAttachmentsRelatedByCreatedByCriteria.equals(criteria)) 1522 { 1523 collAttachmentsRelatedByCreatedBy = AttachmentPeer.doSelectJoinScarabUserImplRelatedByModifiedBy(criteria); 1524 } 1525 } 1526 lastAttachmentsRelatedByCreatedByCriteria = criteria; 1527 1528 return collAttachmentsRelatedByCreatedBy; 1529 } 1530 1531 1532 1533 1534 1535 1538 protected List collAttachmentsRelatedByModifiedBy; 1539 1540 1545 protected void initAttachmentsRelatedByModifiedBy() 1546 { 1547 if (collAttachmentsRelatedByModifiedBy == null) 1548 { 1549 collAttachmentsRelatedByModifiedBy = new ArrayList (); 1550 } 1551 } 1552 1553 1554 1561 public void addAttachmentRelatedByModifiedBy(Attachment l) throws TorqueException 1562 { 1563 getAttachmentsRelatedByModifiedBy().add(l); 1564 l.setScarabUserRelatedByModifiedBy((ScarabUserImpl)this); 1565 } 1566 1567 1570 private Criteria lastAttachmentsRelatedByModifiedByCriteria = null; 1571 1572 1579 public List getAttachmentsRelatedByModifiedBy() throws TorqueException 1580 { 1581 if (collAttachmentsRelatedByModifiedBy == null) 1582 { 1583 collAttachmentsRelatedByModifiedBy = getAttachmentsRelatedByModifiedBy(new Criteria(10)); 1584 } 1585 return collAttachmentsRelatedByModifiedBy; 1586 } 1587 1588 1599 public List getAttachmentsRelatedByModifiedBy(Criteria criteria) throws TorqueException 1600 { 1601 if (collAttachmentsRelatedByModifiedBy == null) 1602 { 1603 if (isNew()) 1604 { 1605 collAttachmentsRelatedByModifiedBy = new ArrayList (); 1606 } 1607 else 1608 { 1609 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1610 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelect(criteria); 1611 } 1612 } 1613 else 1614 { 1615 if (!isNew()) 1617 { 1618 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1622 if (!lastAttachmentsRelatedByModifiedByCriteria.equals(criteria)) 1623 { 1624 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelect(criteria); 1625 } 1626 } 1627 } 1628 lastAttachmentsRelatedByModifiedByCriteria = criteria; 1629 1630 return collAttachmentsRelatedByModifiedBy; 1631 } 1632 1633 1641 public List getAttachmentsRelatedByModifiedBy(Connection con) throws TorqueException 1642 { 1643 if (collAttachmentsRelatedByModifiedBy == null) 1644 { 1645 collAttachmentsRelatedByModifiedBy = getAttachmentsRelatedByModifiedBy(new Criteria(10),con); 1646 } 1647 return collAttachmentsRelatedByModifiedBy; 1648 } 1649 1650 1662 public List getAttachmentsRelatedByModifiedBy(Criteria criteria,Connection con) throws TorqueException 1663 { 1664 if (collAttachmentsRelatedByModifiedBy == null) 1665 { 1666 if (isNew()) 1667 { 1668 collAttachmentsRelatedByModifiedBy = new ArrayList (); 1669 } 1670 else 1671 { 1672 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1673 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelect(criteria,con); 1674 } 1675 } 1676 else 1677 { 1678 if (!isNew()) 1680 { 1681 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1685 if (!lastAttachmentsRelatedByModifiedByCriteria.equals(criteria)) 1686 { 1687 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelect(criteria,con); 1688 } 1689 } 1690 } 1691 lastAttachmentsRelatedByModifiedByCriteria = criteria; 1692 1693 return collAttachmentsRelatedByModifiedBy; 1694 } 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1717 protected List getAttachmentsRelatedByModifiedByJoinIssue(Criteria criteria) 1718 throws TorqueException 1719 { 1720 if (collAttachmentsRelatedByModifiedBy == null) 1721 { 1722 if (isNew()) 1723 { 1724 collAttachmentsRelatedByModifiedBy = new ArrayList (); 1725 } 1726 else 1727 { 1728 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1729 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelectJoinIssue(criteria); 1730 } 1731 } 1732 else 1733 { 1734 1738 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1739 if (!lastAttachmentsRelatedByModifiedByCriteria.equals(criteria)) 1740 { 1741 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelectJoinIssue(criteria); 1742 } 1743 } 1744 lastAttachmentsRelatedByModifiedByCriteria = criteria; 1745 1746 return collAttachmentsRelatedByModifiedBy; 1747 } 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1768 protected List getAttachmentsRelatedByModifiedByJoinAttachmentType(Criteria criteria) 1769 throws TorqueException 1770 { 1771 if (collAttachmentsRelatedByModifiedBy == null) 1772 { 1773 if (isNew()) 1774 { 1775 collAttachmentsRelatedByModifiedBy = new ArrayList (); 1776 } 1777 else 1778 { 1779 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1780 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelectJoinAttachmentType(criteria); 1781 } 1782 } 1783 else 1784 { 1785 1789 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1790 if (!lastAttachmentsRelatedByModifiedByCriteria.equals(criteria)) 1791 { 1792 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelectJoinAttachmentType(criteria); 1793 } 1794 } 1795 lastAttachmentsRelatedByModifiedByCriteria = criteria; 1796 1797 return collAttachmentsRelatedByModifiedBy; 1798 } 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1819 protected List getAttachmentsRelatedByModifiedByJoinScarabUserImplRelatedByCreatedBy(Criteria criteria) 1820 throws TorqueException 1821 { 1822 if (collAttachmentsRelatedByModifiedBy == null) 1823 { 1824 if (isNew()) 1825 { 1826 collAttachmentsRelatedByModifiedBy = new ArrayList (); 1827 } 1828 else 1829 { 1830 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1831 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelectJoinScarabUserImplRelatedByCreatedBy(criteria); 1832 } 1833 } 1834 else 1835 { 1836 1840 criteria.add(AttachmentPeer.MODIFIED_BY, getUserId() ); 1841 if (!lastAttachmentsRelatedByModifiedByCriteria.equals(criteria)) 1842 { 1843 collAttachmentsRelatedByModifiedBy = AttachmentPeer.doSelectJoinScarabUserImplRelatedByCreatedBy(criteria); 1844 } 1845 } 1846 lastAttachmentsRelatedByModifiedByCriteria = criteria; 1847 1848 return collAttachmentsRelatedByModifiedBy; 1849 } 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1866 protected List collAttributes; 1867 1868 1873 protected void initAttributes() 1874 { 1875 if (collAttributes == null) 1876 { 1877 collAttributes = new ArrayList (); 1878 } 1879 } 1880 1881 1882 1889 public void addAttribute(Attribute l) throws TorqueException 1890 { 1891 getAttributes().add(l); 1892 l.setScarabUser((ScarabUserImpl)this); 1893 } 1894 1895 1898 private Criteria lastAttributesCriteria = null; 1899 1900 1907 public List getAttributes() throws TorqueException 1908 { 1909 if (collAttributes == null) 1910 { 1911 collAttributes = getAttributes(new Criteria(10)); 1912 } 1913 return collAttributes; 1914 } 1915 1916 1927 public List getAttributes(Criteria criteria) throws TorqueException 1928 { 1929 if (collAttributes == null) 1930 { 1931 if (isNew()) 1932 { 1933 collAttributes = new ArrayList (); 1934 } 1935 else 1936 { 1937 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 1938 collAttributes = AttributePeer.doSelect(criteria); 1939 } 1940 } 1941 else 1942 { 1943 if (!isNew()) 1945 { 1946 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 1950 if (!lastAttributesCriteria.equals(criteria)) 1951 { 1952 collAttributes = AttributePeer.doSelect(criteria); 1953 } 1954 } 1955 } 1956 lastAttributesCriteria = criteria; 1957 1958 return collAttributes; 1959 } 1960 1961 1969 public List getAttributes(Connection con) throws TorqueException 1970 { 1971 if (collAttributes == null) 1972 { 1973 collAttributes = getAttributes(new Criteria(10),con); 1974 } 1975 return collAttributes; 1976 } 1977 1978 1990 public List getAttributes(Criteria criteria,Connection con) throws TorqueException 1991 { 1992 if (collAttributes == null) 1993 { 1994 if (isNew()) 1995 { 1996 collAttributes = new ArrayList (); 1997 } 1998 else 1999 { 2000 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2001 collAttributes = AttributePeer.doSelect(criteria,con); 2002 } 2003 } 2004 else 2005 { 2006 if (!isNew()) 2008 { 2009 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2013 if (!lastAttributesCriteria.equals(criteria)) 2014 { 2015 collAttributes = AttributePeer.doSelect(criteria,con); 2016 } 2017 } 2018 } 2019 lastAttributesCriteria = criteria; 2020 2021 return collAttributes; 2022 } 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2045 protected List getAttributesJoinAttributeType(Criteria criteria) 2046 throws TorqueException 2047 { 2048 if (collAttributes == null) 2049 { 2050 if (isNew()) 2051 { 2052 collAttributes = new ArrayList (); 2053 } 2054 else 2055 { 2056 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2057 collAttributes = AttributePeer.doSelectJoinAttributeType(criteria); 2058 } 2059 } 2060 else 2061 { 2062 2066 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2067 if (!lastAttributesCriteria.equals(criteria)) 2068 { 2069 collAttributes = AttributePeer.doSelectJoinAttributeType(criteria); 2070 } 2071 } 2072 lastAttributesCriteria = criteria; 2073 2074 return collAttributes; 2075 } 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2096 protected List getAttributesJoinAttributeOption(Criteria criteria) 2097 throws TorqueException 2098 { 2099 if (collAttributes == null) 2100 { 2101 if (isNew()) 2102 { 2103 collAttributes = new ArrayList (); 2104 } 2105 else 2106 { 2107 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2108 collAttributes = AttributePeer.doSelectJoinAttributeOption(criteria); 2109 } 2110 } 2111 else 2112 { 2113 2117 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2118 if (!lastAttributesCriteria.equals(criteria)) 2119 { 2120 collAttributes = AttributePeer.doSelectJoinAttributeOption(criteria); 2121 } 2122 } 2123 lastAttributesCriteria = criteria; 2124 2125 return collAttributes; 2126 } 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2147 protected List getAttributesJoinScarabUserImpl(Criteria criteria) 2148 throws TorqueException 2149 { 2150 if (collAttributes == null) 2151 { 2152 if (isNew()) 2153 { 2154 collAttributes = new ArrayList (); 2155 } 2156 else 2157 { 2158 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2159 collAttributes = AttributePeer.doSelectJoinScarabUserImpl(criteria); 2160 } 2161 } 2162 else 2163 { 2164 2168 criteria.add(AttributePeer.CREATED_BY, getUserId() ); 2169 if (!lastAttributesCriteria.equals(criteria)) 2170 { 2171 collAttributes = AttributePeer.doSelectJoinScarabUserImpl(criteria); 2172 } 2173 } 2174 lastAttributesCriteria = criteria; 2175 2176 return collAttributes; 2177 } 2178 2179 2180 2181 2182 2183 2186 protected List collMITLists; 2187 2188 2193 protected void initMITLists() 2194 { 2195 if (collMITLists == null) 2196 { 2197 collMITLists = new ArrayList (); 2198 } 2199 } 2200 2201 2202 2209 public void addMITList(MITList l) throws TorqueException 2210 { 2211 getMITLists().add(l); 2212 l.setScarabUser((ScarabUserImpl)this); 2213 } 2214 2215 2218 private Criteria lastMITListsCriteria = null; 2219 2220 2227 public List getMITLists() throws TorqueException 2228 { 2229 if (collMITLists == null) 2230 { 2231 collMITLists = getMITLists(new Criteria(10)); 2232 } 2233 return collMITLists; 2234 } 2235 2236 2247 public List getMITLists(Criteria criteria) throws TorqueException 2248 { 2249 if (collMITLists == null) 2250 { 2251 if (isNew()) 2252 { 2253 collMITLists = new ArrayList (); 2254 } 2255 else 2256 { 2257 criteria.add(MITListPeer.USER_ID, getUserId() ); 2258 collMITLists = MITListPeer.doSelect(criteria); 2259 } 2260 } 2261 else 2262 { 2263 if (!isNew()) 2265 { 2266 criteria.add(MITListPeer.USER_ID, getUserId() ); 2270 if (!lastMITListsCriteria.equals(criteria)) 2271 { 2272 collMITLists = MITListPeer.doSelect(criteria); 2273 } 2274 } 2275 } 2276 lastMITListsCriteria = criteria; 2277 2278 return collMITLists; 2279 } 2280 2281 2289 public List getMITLists(Connection con) throws TorqueException 2290 { 2291 if (collMITLists == null) 2292 { 2293 collMITLists = getMITLists(new Criteria(10),con); 2294 } 2295 return collMITLists; 2296 } 2297 2298 2310 public List getMITLists(Criteria criteria,Connection con) throws TorqueException 2311 { 2312 if (collMITLists == null) 2313 { 2314 if (isNew()) 2315 { 2316 collMITLists = new ArrayList (); 2317 } 2318 else 2319 { 2320 criteria.add(MITListPeer.USER_ID, getUserId() ); 2321 collMITLists = MITListPeer.doSelect(criteria,con); 2322 } 2323 } 2324 else 2325 { 2326 if (!isNew()) 2328 { 2329 criteria.add(MITListPeer.USER_ID, getUserId() ); 2333 if (!lastMITListsCriteria.equals(criteria)) 2334 { 2335 collMITLists = MITListPeer.doSelect(criteria,con); 2336 } 2337 } 2338 } 2339 lastMITListsCriteria = criteria; 2340 2341 return collMITLists; 2342 } 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2365 protected List getMITListsJoinScarabUserImpl(Criteria criteria) 2366 throws TorqueException 2367 { 2368 if (collMITLists == null) 2369 { 2370 if (isNew()) 2371 { 2372 collMITLists = new ArrayList (); 2373 } 2374 else 2375 { 2376 criteria.add(MITListPeer.USER_ID, getUserId() ); 2377 collMITLists = MITListPeer.doSelectJoinScarabUserImpl(criteria); 2378 } 2379 } 2380 else 2381 { 2382 2386 criteria.add(MITListPeer.USER_ID, getUserId() ); 2387 if (!lastMITListsCriteria.equals(criteria)) 2388 { 2389 collMITLists = MITListPeer.doSelectJoinScarabUserImpl(criteria); 2390 } 2391 } 2392 lastMITListsCriteria = criteria; 2393 2394 return collMITLists; 2395 } 2396 2397 2398 2399 2400 2401 2404 protected List collAttributeValues; 2405 2406 2411 protected void initAttributeValues() 2412 { 2413 if (collAttributeValues == null) 2414 { 2415 collAttributeValues = new ArrayList (); 2416 } 2417 } 2418 2419 2420 2427 public void addAttributeValue(AttributeValue l) throws TorqueException 2428 { 2429 getAttributeValues().add(l); 2430 l.setScarabUser((ScarabUserImpl)this); 2431 } 2432 2433 2436 private Criteria lastAttributeValuesCriteria = null; 2437 2438 2445 public List getAttributeValues() throws TorqueException 2446 { 2447 if (collAttributeValues == null) 2448 { 2449 collAttributeValues = getAttributeValues(new Criteria(10)); 2450 } 2451 return collAttributeValues; 2452 } 2453 2454 2465 public List getAttributeValues(Criteria criteria) throws TorqueException 2466 { 2467 if (collAttributeValues == null) 2468 { 2469 if (isNew()) 2470 { 2471 collAttributeValues = new ArrayList (); 2472 } 2473 else 2474 { 2475 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2476 collAttributeValues = AttributeValuePeer.doSelect(criteria); 2477 } 2478 } 2479 else 2480 { 2481 if (!isNew()) 2483 { 2484 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2488 if (!lastAttributeValuesCriteria.equals(criteria)) 2489 { 2490 collAttributeValues = AttributeValuePeer.doSelect(criteria); 2491 } 2492 } 2493 } 2494 lastAttributeValuesCriteria = criteria; 2495 2496 return collAttributeValues; 2497 } 2498 2499 2507 public List getAttributeValues(Connection con) throws TorqueException 2508 { 2509 if (collAttributeValues == null) 2510 { 2511 collAttributeValues = getAttributeValues(new Criteria(10),con); 2512 } 2513 return collAttributeValues; 2514 } 2515 2516 2528 public List getAttributeValues(Criteria criteria,Connection con) throws TorqueException 2529 { 2530 if (collAttributeValues == null) 2531 { 2532 if (isNew()) 2533 { 2534 collAttributeValues = new ArrayList (); 2535 } 2536 else 2537 { 2538 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2539 collAttributeValues = AttributeValuePeer.doSelect(criteria,con); 2540 } 2541 } 2542 else 2543 { 2544 if (!isNew()) 2546 { 2547 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2551 if (!lastAttributeValuesCriteria.equals(criteria)) 2552 { 2553 collAttributeValues = AttributeValuePeer.doSelect(criteria,con); 2554 } 2555 } 2556 } 2557 lastAttributeValuesCriteria = criteria; 2558 2559 return collAttributeValues; 2560 } 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2583 protected List getAttributeValuesJoinIssue(Criteria criteria) 2584 throws TorqueException 2585 { 2586 if (collAttributeValues == null) 2587 { 2588 if (isNew()) 2589 { 2590 collAttributeValues = new ArrayList (); 2591 } 2592 else 2593 { 2594 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2595 collAttributeValues = AttributeValuePeer.doSelectJoinIssue(criteria); 2596 } 2597 } 2598 else 2599 { 2600 2604 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2605 if (!lastAttributeValuesCriteria.equals(criteria)) 2606 { 2607 collAttributeValues = AttributeValuePeer.doSelectJoinIssue(criteria); 2608 } 2609 } 2610 lastAttributeValuesCriteria = criteria; 2611 2612 return collAttributeValues; 2613 } 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2634 protected List getAttributeValuesJoinAttribute(Criteria criteria) 2635 throws TorqueException 2636 { 2637 if (collAttributeValues == null) 2638 { 2639 if (isNew()) 2640 { 2641 collAttributeValues = new ArrayList (); 2642 } 2643 else 2644 { 2645 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2646 collAttributeValues = AttributeValuePeer.doSelectJoinAttribute(criteria); 2647 } 2648 } 2649 else 2650 { 2651 2655 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2656 if (!lastAttributeValuesCriteria.equals(criteria)) 2657 { 2658 collAttributeValues = AttributeValuePeer.doSelectJoinAttribute(criteria); 2659 } 2660 } 2661 lastAttributeValuesCriteria = criteria; 2662 2663 return collAttributeValues; 2664 } 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2685 protected List getAttributeValuesJoinAttributeOption(Criteria criteria) 2686 throws TorqueException 2687 { 2688 if (collAttributeValues == null) 2689 { 2690 if (isNew()) 2691 { 2692 collAttributeValues = new ArrayList (); 2693 } 2694 else 2695 { 2696 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2697 collAttributeValues = AttributeValuePeer.doSelectJoinAttributeOption(criteria); 2698 } 2699 } 2700 else 2701 { 2702 2706 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2707 if (!lastAttributeValuesCriteria.equals(criteria)) 2708 { 2709 collAttributeValues = AttributeValuePeer.doSelectJoinAttributeOption(criteria); 2710 } 2711 } 2712 lastAttributeValuesCriteria = criteria; 2713 2714 return collAttributeValues; 2715 } 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2736 protected List getAttributeValuesJoinScarabUserImpl(Criteria criteria) 2737 throws TorqueException 2738 { 2739 if (collAttributeValues == null) 2740 { 2741 if (isNew()) 2742 { 2743 collAttributeValues = new ArrayList (); 2744 } 2745 else 2746 { 2747 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2748 collAttributeValues = AttributeValuePeer.doSelectJoinScarabUserImpl(criteria); 2749 } 2750 } 2751 else 2752 { 2753 2757 criteria.add(AttributeValuePeer.USER_ID, getUserId() ); 2758 if (!lastAttributeValuesCriteria.equals(criteria)) 2759 { 2760 collAttributeValues = AttributeValuePeer.doSelectJoinScarabUserImpl(criteria); 2761 } 2762 } 2763 lastAttributeValuesCriteria = criteria; 2764 2765 return collAttributeValues; 2766 } 2767 2768 2769 2770 2771 2772 2775 protected List collScarabModulesRelatedByOwnerId; 2776 2777 2782 protected void initScarabModulesRelatedByOwnerId() 2783 { 2784 if (collScarabModulesRelatedByOwnerId == null) 2785 { 2786 collScarabModulesRelatedByOwnerId = new ArrayList (); 2787 } 2788 } 2789 2790 2791 2798 public void addScarabModuleRelatedByOwnerId(ScarabModule l) throws TorqueException 2799 { 2800 getScarabModulesRelatedByOwnerId().add(l); 2801 l.setScarabUserRelatedByOwnerId((ScarabUserImpl)this); 2802 } 2803 2804 2807 private Criteria lastScarabModulesRelatedByOwnerIdCriteria = null; 2808 2809 2816 public List getScarabModulesRelatedByOwnerId() throws TorqueException 2817 { 2818 if (collScarabModulesRelatedByOwnerId == null) 2819 { 2820 collScarabModulesRelatedByOwnerId = getScarabModulesRelatedByOwnerId(new Criteria(10)); 2821 } 2822 return collScarabModulesRelatedByOwnerId; 2823 } 2824 2825 2836 public List getScarabModulesRelatedByOwnerId(Criteria criteria) throws TorqueException 2837 { 2838 if (collScarabModulesRelatedByOwnerId == null) 2839 { 2840 if (isNew()) 2841 { 2842 collScarabModulesRelatedByOwnerId = new ArrayList (); 2843 } 2844 else 2845 { 2846 criteria.add(ScarabModulePeer.OWNER_ID, getUserId() ); 2847 collScarabModulesRelatedByOwnerId = ScarabModulePeer.doSelect(criteria); 2848 } 2849 } 2850 else 2851 { 2852 if (!isNew()) 2854 { 2855 criteria.add(ScarabModulePeer.OWNER_ID, getUserId() ); 2859 if (!lastScarabModulesRelatedByOwnerIdCriteria.equals(criteria)) 2860 { 2861 collScarabModulesRelatedByOwnerId = ScarabModulePeer.doSelect(criteria); 2862 } 2863 } 2864 } 2865 lastScarabModulesRelatedByOwnerIdCriteria = criteria; 2866 2867 return collScarabModulesRelatedByOwnerId; 2868 } 2869 2870 2878 public List getScarabModulesRelatedByOwnerId(Connection con) throws TorqueException 2879 { 2880 if (collScarabModulesRelatedByOwnerId == null) 2881 { 2882 collScarabModulesRelatedByOwnerId = getScarabModulesRelatedByOwnerId(new Criteria(10),con); 2883 } 2884 return collScarabModulesRelatedByOwnerId; 2885 } 2886 2887 2899 public List getScarabModulesRelatedByOwnerId(Criteria criteria,Connection con) throws TorqueException 2900 { 2901 if (collScarabModulesRelatedByOwnerId == null) 2902 { 2903 if (isNew()) 2904 { 2905 collScarabModulesRelatedByOwnerId = new ArrayList (); 2906 } 2907 else 2908 { 2909 criteria.add(ScarabModulePeer.OWNER_ID, getUserId() ); 2910 collScarabModulesRelatedByOwnerId = ScarabModulePeer.doSelect(criteria,con); 2911 } 2912 } 2913 else 2914 { 2915 if (!isNew()) 2917 { 2918 criteria.add(ScarabModulePeer.OWNER_ID, getUserId() ); 2922 if (!lastScarabModulesRelatedByOwnerIdCriteria.equals(criteria)) 2923 { 2924 collScarabModulesRelatedByOwnerId = ScarabModulePeer.doSelect(criteria,con); 2925 } 2926 } 2927 } 2928 lastScarabModulesRelatedByOwnerIdCriteria = criteria; 2929 2930 return collScarabModulesRelatedByOwnerId; 2931 } 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2970 protected List getScarabModulesRelatedByOwnerIdJoinScarabUserImplRelatedByQaContactId(Criteria criteria) 2971 throws TorqueException 2972 { 2973 if (collScarabModulesRelatedByOwnerId == null) 2974 { 2975 if (isNew()) 2976 { 2977 collScarabModulesRelatedByOwnerId = new ArrayList (); 2978 } 2979 else 2980 { 2981 criteria.add(ScarabModulePeer.OWNER_ID, getUserId() ); 2982 collScarabModulesRelatedByOwnerId = ScarabModulePeer.doSelectJoinScarabUserImplRelatedByQaContactId(criteria); 2983 } 2984 } 2985 else 2986 { 2987 2991 criteria.add(ScarabModulePeer.OWNER_ID, getUserId() ); 2992 if (!lastScarabModulesRelatedByOwnerIdCriteria.equals(criteria)) 2993 { 2994 collScarabModulesRelatedByOwnerId = ScarabModulePeer.doSelectJoinScarabUserImplRelatedByQaContactId(criteria); 2995 } 2996 } 2997 lastScarabModulesRelatedByOwnerIdCriteria = criteria; 2998 2999 return collScarabModulesRelatedByOwnerId; 3000 } 3001 3002 3003 3004 3005 3006 3009 protected List collScarabModulesRelatedByQaContactId; 3010 3011 3016 protected void initScarabModulesRelatedByQaContactId() 3017 { 3018 if (collScarabModulesRelatedByQaContactId == null) 3019 { 3020 collScarabModulesRelatedByQaContactId = new ArrayList (); 3021 } 3022 } 3023 3024 3025 3032 public void addScarabModuleRelatedByQaContactId(ScarabModule l) throws TorqueException 3033 { 3034 getScarabModulesRelatedByQaContactId().add(l); 3035 l.setScarabUserRelatedByQaContactId((ScarabUserImpl)this); 3036 } 3037 3038 3041 private Criteria lastScarabModulesRelatedByQaContactIdCriteria = null; 3042 3043 3050 public List getScarabModulesRelatedByQaContactId() throws TorqueException 3051 { 3052 if (collScarabModulesRelatedByQaContactId == null) 3053 { 3054 collScarabModulesRelatedByQaContactId = getScarabModulesRelatedByQaContactId(new Criteria(10)); 3055 } 3056 return collScarabModulesRelatedByQaContactId; 3057 } 3058 3059 3070 public List getScarabModulesRelatedByQaContactId(Criteria criteria) throws TorqueException 3071 { 3072 if (collScarabModulesRelatedByQaContactId == null) 3073 { 3074 if (isNew()) 3075 { 3076 collScarabModulesRelatedByQaContactId = new ArrayList (); 3077 } 3078 else 3079 { 3080 criteria.add(ScarabModulePeer.QA_CONTACT_ID, getUserId() ); 3081 collScarabModulesRelatedByQaContactId = ScarabModulePeer.doSelect(criteria); 3082 } 3083 } 3084 else 3085 { 3086 if (!isNew()) 3088 { 3089 criteria.add(ScarabModulePeer.QA_CONTACT_ID, getUserId() ); 3093 if (!lastScarabModulesRelatedByQaContactIdCriteria.equals(criteria)) 3094 { 3095 collScarabModulesRelatedByQaContactId = ScarabModulePeer.doSelect(criteria); 3096 } 3097 } 3098 } 3099 lastScarabModulesRelatedByQaContactIdCriteria = criteria; 3100 3101 return collScarabModulesRelatedByQaContactId; 3102 } 3103 3104 3112 public List getScarabModulesRelatedByQaContactId(Connection con) throws TorqueException 3113 { 3114 if (collScarabModulesRelatedByQaContactId == null) 3115 { 3116 collScarabModulesRelatedByQaContactId = getScarabModulesRelatedByQaContactId(new Criteria(10),con); 3117 } 3118 return collScarabModulesRelatedByQaContactId; 3119 } 3120 3121 3133 public List getScarabModulesRelatedByQaContactId(Criteria criteria,Connection con) throws TorqueException 3134 { 3135 if (collScarabModulesRelatedByQaContactId == null) 3136 { 3137 if (isNew()) 3138 { 3139 collScarabModulesRelatedByQaContactId = new ArrayList (); 3140 } 3141 else 3142 { 3143 criteria.add(ScarabModulePeer.QA_CONTACT_ID, getUserId() ); 3144 collScarabModulesRelatedByQaContactId = ScarabModulePeer.doSelect(criteria,con); 3145 } 3146 } 3147 else 3148 { 3149 if (!isNew()) 3151 { 3152 criteria.add(ScarabModulePeer.QA_CONTACT_ID, getUserId() ); 3156 if (!lastScarabModulesRelatedByQaContactIdCriteria.equals(criteria)) 3157 { 3158 collScarabModulesRelatedByQaContactId = ScarabModulePeer.doSelect(criteria,con); 3159 } 3160 } 3161 } 3162 lastScarabModulesRelatedByQaContactIdCriteria = criteria; 3163 3164 return collScarabModulesRelatedByQaContactId; 3165 } 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3196 protected List getScarabModulesRelatedByQaContactIdJoinScarabUserImplRelatedByOwnerId(Criteria criteria) 3197 throws TorqueException 3198 { 3199 if (collScarabModulesRelatedByQaContactId == null) 3200 { 3201 if (isNew()) 3202 { 3203 collScarabModulesRelatedByQaContactId = new ArrayList (); 3204 } 3205 else 3206 { 3207 criteria.add(ScarabModulePeer.QA_CONTACT_ID, getUserId() ); 3208 collScarabModulesRelatedByQaContactId = ScarabModulePeer.doSelectJoinScarabUserImplRelatedByOwnerId(criteria); 3209 } 3210 } 3211 else 3212 { 3213 3217 criteria.add(ScarabModulePeer.QA_CONTACT_ID, getUserId() ); 3218 if (!lastScarabModulesRelatedByQaContactIdCriteria.equals(criteria)) 3219 { 3220 collScarabModulesRelatedByQaContactId = ScarabModulePeer.doSelectJoinScarabUserImplRelatedByOwnerId(criteria); 3221 } 3222 } 3223 lastScarabModulesRelatedByQaContactIdCriteria = criteria; 3224 3225 return collScarabModulesRelatedByQaContactId; 3226 } 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3243 protected List collRModuleUserAttributes; 3244 3245 3250 protected void initRModuleUserAttributes() 3251 { 3252 if (collRModuleUserAttributes == null) 3253 { 3254 collRModuleUserAttributes = new ArrayList (); 3255 } 3256 } 3257 3258 3259 3266 public void addRModuleUserAttribute(RModuleUserAttribute l) throws TorqueException 3267 { 3268 getRModuleUserAttributes().add(l); 3269 l.setScarabUser((ScarabUserImpl)this); 3270 } 3271 3272 3275 private Criteria lastRModuleUserAttributesCriteria = null; 3276 3277 3284 public List getRModuleUserAttributes() throws TorqueException 3285 { 3286 if (collRModuleUserAttributes == null) 3287 { 3288 collRModuleUserAttributes = getRModuleUserAttributes(new Criteria(10)); 3289 } 3290 return collRModuleUserAttributes; 3291 } 3292 3293 3304 public List getRModuleUserAttributes(Criteria criteria) throws TorqueException 3305 { 3306 if (collRModuleUserAttributes == null) 3307 { 3308 if (isNew()) 3309 { 3310 collRModuleUserAttributes = new ArrayList (); 3311 } 3312 else 3313 { 3314 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3315 collRModuleUserAttributes = RModuleUserAttributePeer.doSelect(criteria); 3316 } 3317 } 3318 else 3319 { 3320 if (!isNew()) 3322 { 3323 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3327 if (!lastRModuleUserAttributesCriteria.equals(criteria)) 3328 { 3329 collRModuleUserAttributes = RModuleUserAttributePeer.doSelect(criteria); 3330 } 3331 } 3332 } 3333 lastRModuleUserAttributesCriteria = criteria; 3334 3335 return collRModuleUserAttributes; 3336 } 3337 3338 3346 public List getRModuleUserAttributes(Connection con) throws TorqueException 3347 { 3348 if (collRModuleUserAttributes == null) 3349 { 3350 collRModuleUserAttributes = getRModuleUserAttributes(new Criteria(10),con); 3351 } 3352 return collRModuleUserAttributes; 3353 } 3354 3355 3367 public List getRModuleUserAttributes(Criteria criteria,Connection con) throws TorqueException 3368 { 3369 if (collRModuleUserAttributes == null) 3370 { 3371 if (isNew()) 3372 { 3373 collRModuleUserAttributes = new ArrayList (); 3374 } 3375 else 3376 { 3377 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3378 collRModuleUserAttributes = RModuleUserAttributePeer.doSelect(criteria,con); 3379 } 3380 } 3381 else 3382 { 3383 if (!isNew()) 3385 { 3386 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3390 if (!lastRModuleUserAttributesCriteria.equals(criteria)) 3391 { 3392 collRModuleUserAttributes = RModuleUserAttributePeer.doSelect(criteria,con); 3393 } 3394 } 3395 } 3396 lastRModuleUserAttributesCriteria = criteria; 3397 3398 return collRModuleUserAttributes; 3399 } 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3422 protected List getRModuleUserAttributesJoinMITList(Criteria criteria) 3423 throws TorqueException 3424 { 3425 if (collRModuleUserAttributes == null) 3426 { 3427 if (isNew()) 3428 { 3429 collRModuleUserAttributes = new ArrayList (); 3430 } 3431 else 3432 { 3433 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3434 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinMITList(criteria); 3435 } 3436 } 3437 else 3438 { 3439 3443 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3444 if (!lastRModuleUserAttributesCriteria.equals(criteria)) 3445 { 3446 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinMITList(criteria); 3447 } 3448 } 3449 lastRModuleUserAttributesCriteria = criteria; 3450 3451 return collRModuleUserAttributes; 3452 } 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3473 protected List getRModuleUserAttributesJoinScarabModule(Criteria criteria) 3474 throws TorqueException 3475 { 3476 if (collRModuleUserAttributes == null) 3477 { 3478 if (isNew()) 3479 { 3480 collRModuleUserAttributes = new ArrayList (); 3481 } 3482 else 3483 { 3484 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3485 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinScarabModule(criteria); 3486 } 3487 } 3488 else 3489 { 3490 3494 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3495 if (!lastRModuleUserAttributesCriteria.equals(criteria)) 3496 { 3497 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinScarabModule(criteria); 3498 } 3499 } 3500 lastRModuleUserAttributesCriteria = criteria; 3501 3502 return collRModuleUserAttributes; 3503 } 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3524 protected List getRModuleUserAttributesJoinScarabUserImpl(Criteria criteria) 3525 throws TorqueException 3526 { 3527 if (collRModuleUserAttributes == null) 3528 { 3529 if (isNew()) 3530 { 3531 collRModuleUserAttributes = new ArrayList (); 3532 } 3533 else 3534 { 3535 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3536 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinScarabUserImpl(criteria); 3537 } 3538 } 3539 else 3540 { 3541 3545 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3546 if (!lastRModuleUserAttributesCriteria.equals(criteria)) 3547 { 3548 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinScarabUserImpl(criteria); 3549 } 3550 } 3551 lastRModuleUserAttributesCriteria = criteria; 3552 3553 return collRModuleUserAttributes; 3554 } 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3575 protected List getRModuleUserAttributesJoinIssueType(Criteria criteria) 3576 throws TorqueException 3577 { 3578 if (collRModuleUserAttributes == null) 3579 { 3580 if (isNew()) 3581 { 3582 collRModuleUserAttributes = new ArrayList (); 3583 } 3584 else 3585 { 3586 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3587 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinIssueType(criteria); 3588 } 3589 } 3590 else 3591 { 3592 3596 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3597 if (!lastRModuleUserAttributesCriteria.equals(criteria)) 3598 { 3599 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinIssueType(criteria); 3600 } 3601 } 3602 lastRModuleUserAttributesCriteria = criteria; 3603 3604 return collRModuleUserAttributes; 3605 } 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3626 protected List getRModuleUserAttributesJoinAttribute(Criteria criteria) 3627 throws TorqueException 3628 { 3629 if (collRModuleUserAttributes == null) 3630 { 3631 if (isNew()) 3632 { 3633 collRModuleUserAttributes = new ArrayList (); 3634 } 3635 else 3636 { 3637 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3638 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinAttribute(criteria); 3639 } 3640 } 3641 else 3642 { 3643 3647 criteria.add(RModuleUserAttributePeer.USER_ID, getUserId() ); 3648 if (!lastRModuleUserAttributesCriteria.equals(criteria)) 3649 { 3650 collRModuleUserAttributes = RModuleUserAttributePeer.doSelectJoinAttribute(criteria); 3651 } 3652 } 3653 lastRModuleUserAttributesCriteria = criteria; 3654 3655 return collRModuleUserAttributes; 3656 } 3657 3658 3659 3660 3661 3662 3665 protected List collActivitySets; 3666 3667 3672 protected void initActivitySets() 3673 { 3674 if (collActivitySets == null) 3675 { 3676 collActivitySets = new ArrayList (); 3677 } 3678 } 3679 3680 3681 3688 public void addActivitySet(ActivitySet l) throws TorqueException 3689 { 3690 getActivitySets().add(l); 3691 l.setScarabUser((ScarabUserImpl)this); 3692 } 3693 3694 3697 private Criteria lastActivitySetsCriteria = null; 3698 3699 3706 public List getActivitySets() throws TorqueException 3707 { 3708 if (collActivitySets == null) 3709 { 3710 collActivitySets = getActivitySets(new Criteria(10)); 3711 } 3712 return collActivitySets; 3713 } 3714 3715 3726 public List getActivitySets(Criteria criteria) throws TorqueException 3727 { 3728 if (collActivitySets == null) 3729 { 3730 if (isNew()) 3731 { 3732 collActivitySets = new ArrayList (); 3733 } 3734 else 3735 { 3736 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3737 collActivitySets = ActivitySetPeer.doSelect(criteria); 3738 } 3739 } 3740 else 3741 { 3742 if (!isNew()) 3744 { 3745 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3749 if (!lastActivitySetsCriteria.equals(criteria)) 3750 { 3751 collActivitySets = ActivitySetPeer.doSelect(criteria); 3752 } 3753 } 3754 } 3755 lastActivitySetsCriteria = criteria; 3756 3757 return collActivitySets; 3758 } 3759 3760 3768 public List getActivitySets(Connection con) throws TorqueException 3769 { 3770 if (collActivitySets == null) 3771 { 3772 collActivitySets = getActivitySets(new Criteria(10),con); 3773 } 3774 return collActivitySets; 3775 } 3776 3777 3789 public List getActivitySets(Criteria criteria,Connection con) throws TorqueException 3790 { 3791 if (collActivitySets == null) 3792 { 3793 if (isNew()) 3794 { 3795 collActivitySets = new ArrayList (); 3796 } 3797 else 3798 { 3799 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3800 collActivitySets = ActivitySetPeer.doSelect(criteria,con); 3801 } 3802 } 3803 else 3804 { 3805 if (!isNew()) 3807 { 3808 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3812 if (!lastActivitySetsCriteria.equals(criteria)) 3813 { 3814 collActivitySets = ActivitySetPeer.doSelect(criteria,con); 3815 } 3816 } 3817 } 3818 lastActivitySetsCriteria = criteria; 3819 3820 return collActivitySets; 3821 } 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3844 protected List getActivitySetsJoinScarabUserImpl(Criteria criteria) 3845 throws TorqueException 3846 { 3847 if (collActivitySets == null) 3848 { 3849 if (isNew()) 3850 { 3851 collActivitySets = new ArrayList (); 3852 } 3853 else 3854 { 3855 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3856 collActivitySets = ActivitySetPeer.doSelectJoinScarabUserImpl(criteria); 3857 } 3858 } 3859 else 3860 { 3861 3865 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3866 if (!lastActivitySetsCriteria.equals(criteria)) 3867 { 3868 collActivitySets = ActivitySetPeer.doSelectJoinScarabUserImpl(criteria); 3869 } 3870 } 3871 lastActivitySetsCriteria = criteria; 3872 3873 return collActivitySets; 3874 } 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3895 protected List getActivitySetsJoinActivitySetType(Criteria criteria) 3896 throws TorqueException 3897 { 3898 if (collActivitySets == null) 3899 { 3900 if (isNew()) 3901 { 3902 collActivitySets = new ArrayList (); 3903 } 3904 else 3905 { 3906 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3907 collActivitySets = ActivitySetPeer.doSelectJoinActivitySetType(criteria); 3908 } 3909 } 3910 else 3911 { 3912 3916 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3917 if (!lastActivitySetsCriteria.equals(criteria)) 3918 { 3919 collActivitySets = ActivitySetPeer.doSelectJoinActivitySetType(criteria); 3920 } 3921 } 3922 lastActivitySetsCriteria = criteria; 3923 3924 return collActivitySets; 3925 } 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3946 protected List getActivitySetsJoinAttachment(Criteria criteria) 3947 throws TorqueException 3948 { 3949 if (collActivitySets == null) 3950 { 3951 if (isNew()) 3952 { 3953 collActivitySets = new ArrayList (); 3954 } 3955 else 3956 { 3957 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3958 collActivitySets = ActivitySetPeer.doSelectJoinAttachment(criteria); 3959 } 3960 } 3961 else 3962 { 3963 3967 criteria.add(ActivitySetPeer.CREATED_BY, getUserId() ); 3968 if (!lastActivitySetsCriteria.equals(criteria)) 3969 { 3970 collActivitySets = ActivitySetPeer.doSelectJoinAttachment(criteria); 3971 } 3972 } 3973 lastActivitySetsCriteria = criteria; 3974 3975 return collActivitySets; 3976 } 3977 3978 3979 3980 3981 3982 3985 protected List collUserPreferences; 3986 3987 3992 protected void initUserPreferences() 3993 { 3994 if (collUserPreferences == null) 3995 { 3996 collUserPreferences = new ArrayList (); 3997 } 3998 } 3999 4000 4001 4008 public void addUserPreference(UserPreference l) throws TorqueException 4009 { 4010 getUserPreferences().add(l); 4011 l.setScarabUser((ScarabUserImpl)this); 4012 } 4013 4014 4017 private Criteria lastUserPreferencesCriteria = null; 4018 4019 4026 public List getUserPreferences() throws TorqueException 4027 { 4028 if (collUserPreferences == null) 4029 { 4030 collUserPreferences = getUserPreferences(new Criteria(10)); 4031 } 4032 return collUserPreferences; 4033 } 4034 4035 4046 public List getUserPreferences(Criteria criteria) throws TorqueException 4047 { 4048 if (collUserPreferences == null) 4049 { 4050 if (isNew()) 4051 { 4052 collUserPreferences = new ArrayList (); 4053 } 4054 else 4055 { 4056 criteria.add(UserPreferencePeer.USER_ID, getUserId() ); 4057 collUserPreferences = UserPreferencePeer.doSelect(criteria); 4058 } 4059 } 4060 else 4061 { 4062 if (!isNew()) 4064 { 4065 criteria.add(UserPreferencePeer.USER_ID, getUserId() ); 4069 if (!lastUserPreferencesCriteria.equals(criteria)) 4070 { 4071 collUserPreferences = UserPreferencePeer.doSelect(criteria); 4072 } 4073 } 4074 } 4075 lastUserPreferencesCriteria = criteria; 4076 4077 return collUserPreferences; 4078 } 4079 4080 4088 public List getUserPreferences(Connection con) throws TorqueException 4089 { 4090 if (collUserPreferences == null) 4091 { 4092 collUserPreferences = getUserPreferences(new Criteria(10),con); 4093 } 4094 return collUserPreferences; 4095 } 4096 4097 4109 public List getUserPreferences(Criteria criteria,Connection con) throws TorqueException 4110 { 4111 if (collUserPreferences == null) 4112 { 4113 if (isNew()) 4114 { 4115 collUserPreferences = new ArrayList (); 4116 } 4117 else 4118 { 4119 criteria.add(UserPreferencePeer.USER_ID, getUserId() ); 4120 collUserPreferences = UserPreferencePeer.doSelect(criteria,con); 4121 } 4122 } 4123 else 4124 { 4125 if (!isNew()) 4127 { 4128 criteria.add(UserPreferencePeer.USER_ID, getUserId() ); 4132 if (!lastUserPreferencesCriteria.equals(criteria)) 4133 { 4134 collUserPreferences = UserPreferencePeer.doSelect(criteria,con); 4135 } 4136 } 4137 } 4138 lastUserPreferencesCriteria = criteria; 4139 4140 return collUserPreferences; 4141 } 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4164 protected List getUserPreferencesJoinScarabUserImpl(Criteria criteria) 4165 throws TorqueException 4166 { 4167 if (collUserPreferences == null) 4168 { 4169 if (isNew()) 4170 { 4171 collUserPreferences = new ArrayList (); 4172 } 4173 else 4174 { 4175 criteria.add(UserPreferencePeer.USER_ID, getUserId() ); 4176 collUserPreferences = UserPreferencePeer.doSelectJoinScarabUserImpl(criteria); 4177 } 4178 } 4179 else 4180 { 4181 4185 criteria.add(UserPreferencePeer.USER_ID, getUserId() ); 4186 if (!lastUserPreferencesCriteria.equals(criteria)) 4187 { 4188 collUserPreferences = UserPreferencePeer.doSelectJoinScarabUserImpl(criteria); 4189 } 4190 } 4191 lastUserPreferencesCriteria = criteria; 4192 4193 return collUserPreferences; 4194 } 4195 4196 4197 4198 4199 4200 4203 protected List collUserVotes; 4204 4205 4210 protected void initUserVotes() 4211 { 4212 if (collUserVotes == null) 4213 { 4214 collUserVotes = new ArrayList (); 4215 } 4216 } 4217 4218 4219 4226 public void addUserVote(UserVote l) throws TorqueException 4227 { 4228 getUserVotes().add(l); 4229 l.setScarabUser((ScarabUserImpl)this); 4230 } 4231 4232 4235 private Criteria lastUserVotesCriteria = null; 4236 4237 4244 public List getUserVotes() throws TorqueException 4245 { 4246 if (collUserVotes == null) 4247 { 4248 collUserVotes = getUserVotes(new Criteria(10)); 4249 } 4250 return collUserVotes; 4251 } 4252 4253 4264 public List getUserVotes(Criteria criteria) throws TorqueException 4265 { 4266 if (collUserVotes == null) 4267 { 4268 if (isNew()) 4269 { 4270 collUserVotes = new ArrayList (); 4271 } 4272 else 4273 { 4274 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4275 collUserVotes = UserVotePeer.doSelect(criteria); 4276 } 4277 } 4278 else 4279 { 4280 if (!isNew()) 4282 { 4283 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4287 if (!lastUserVotesCriteria.equals(criteria)) 4288 { 4289 collUserVotes = UserVotePeer.doSelect(criteria); 4290 } 4291 } 4292 } 4293 lastUserVotesCriteria = criteria; 4294 4295 return collUserVotes; 4296 } 4297 4298 4306 public List getUserVotes(Connection con) throws TorqueException 4307 { 4308 if (collUserVotes == null) 4309 { 4310 collUserVotes = getUserVotes(new Criteria(10),con); 4311 } 4312 return collUserVotes; 4313 } 4314 4315 4327 public List getUserVotes(Criteria criteria,Connection con) throws TorqueException 4328 { 4329 if (collUserVotes == null) 4330 { 4331 if (isNew()) 4332 { 4333 collUserVotes = new ArrayList (); 4334 } 4335 else 4336 { 4337 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4338 collUserVotes = UserVotePeer.doSelect(criteria,con); 4339 } 4340 } 4341 else 4342 { 4343 if (!isNew()) 4345 { 4346 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4350 if (!lastUserVotesCriteria.equals(criteria)) 4351 { 4352 collUserVotes = UserVotePeer.doSelect(criteria,con); 4353 } 4354 } 4355 } 4356 lastUserVotesCriteria = criteria; 4357 4358 return collUserVotes; 4359 } 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4382 protected List getUserVotesJoinScarabModule(Criteria criteria) 4383 throws TorqueException 4384 { 4385 if (collUserVotes == null) 4386 { 4387 if (isNew()) 4388 { 4389 collUserVotes = new ArrayList (); 4390 } 4391 else 4392 { 4393 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4394 collUserVotes = UserVotePeer.doSelectJoinScarabModule(criteria); 4395 } 4396 } 4397 else 4398 { 4399 4403 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4404 if (!lastUserVotesCriteria.equals(criteria)) 4405 { 4406 collUserVotes = UserVotePeer.doSelectJoinScarabModule(criteria); 4407 } 4408 } 4409 lastUserVotesCriteria = criteria; 4410 4411 return collUserVotes; 4412 } 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4433 protected List getUserVotesJoinScarabUserImpl(Criteria criteria) 4434 throws TorqueException 4435 { 4436 if (collUserVotes == null) 4437 { 4438 if (isNew()) 4439 { 4440 collUserVotes = new ArrayList (); 4441 } 4442 else 4443 { 4444 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4445 collUserVotes = UserVotePeer.doSelectJoinScarabUserImpl(criteria); 4446 } 4447 } 4448 else 4449 { 4450 4454 criteria.add(UserVotePeer.USER_ID, getUserId() ); 4455 if (!lastUserVotesCriteria.equals(criteria)) 4456 { 4457 collUserVotes = UserVotePeer.doSelectJoinScarabUserImpl(criteria); 4458 } 4459 } 4460 lastUserVotesCriteria = criteria; 4461 4462 return collUserVotes; 4463 } 4464 4465 4466 4467 4468 4469 4472 protected List collIssueVotes; 4473 4474 4479 protected void initIssueVotes() 4480 { 4481 if (collIssueVotes == null) 4482 { 4483 collIssueVotes = new ArrayList (); 4484 } 4485 } 4486 4487 4488 4495 public void addIssueVote(IssueVote l) throws TorqueException 4496 { 4497 getIssueVotes().add(l); 4498 l.setScarabUser((ScarabUserImpl)this); 4499 } 4500 4501 4504 private Criteria lastIssueVotesCriteria = null; 4505 4506 4513 public List getIssueVotes() throws TorqueException 4514 { 4515 if (collIssueVotes == null) 4516 { 4517 collIssueVotes = getIssueVotes(new Criteria(10)); 4518 } 4519 return collIssueVotes; 4520 } 4521 4522 4533 public List getIssueVotes(Criteria criteria) throws TorqueException 4534 { 4535 if (collIssueVotes == null) 4536 { 4537 if (isNew()) 4538 { 4539 collIssueVotes = new ArrayList (); 4540 } 4541 else 4542 { 4543 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4544 collIssueVotes = IssueVotePeer.doSelect(criteria); 4545 } 4546 } 4547 else 4548 { 4549 if (!isNew()) 4551 { 4552 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4556 if (!lastIssueVotesCriteria.equals(criteria)) 4557 { 4558 collIssueVotes = IssueVotePeer.doSelect(criteria); 4559 } 4560 } 4561 } 4562 lastIssueVotesCriteria = criteria; 4563 4564 return collIssueVotes; 4565 } 4566 4567 4575 public List getIssueVotes(Connection con) throws TorqueException 4576 { 4577 if (collIssueVotes == null) 4578 { 4579 collIssueVotes = getIssueVotes(new Criteria(10),con); 4580 } 4581 return collIssueVotes; 4582 } 4583 4584 4596 public List getIssueVotes(Criteria criteria,Connection con) throws TorqueException 4597 { 4598 if (collIssueVotes == null) 4599 { 4600 if (isNew()) 4601 { 4602 collIssueVotes = new ArrayList (); 4603 } 4604 else 4605 { 4606 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4607 collIssueVotes = IssueVotePeer.doSelect(criteria,con); 4608 } 4609 } 4610 else 4611 { 4612 if (!isNew()) 4614 { 4615 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4619 if (!lastIssueVotesCriteria.equals(criteria)) 4620 { 4621 collIssueVotes = IssueVotePeer.doSelect(criteria,con); 4622 } 4623 } 4624 } 4625 lastIssueVotesCriteria = criteria; 4626 4627 return collIssueVotes; 4628 } 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4651 protected List getIssueVotesJoinIssue(Criteria criteria) 4652 throws TorqueException 4653 { 4654 if (collIssueVotes == null) 4655 { 4656 if (isNew()) 4657 { 4658 collIssueVotes = new ArrayList (); 4659 } 4660 else 4661 { 4662 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4663 collIssueVotes = IssueVotePeer.doSelectJoinIssue(criteria); 4664 } 4665 } 4666 else 4667 { 4668 4672 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4673 if (!lastIssueVotesCriteria.equals(criteria)) 4674 { 4675 collIssueVotes = IssueVotePeer.doSelectJoinIssue(criteria); 4676 } 4677 } 4678 lastIssueVotesCriteria = criteria; 4679 4680 return collIssueVotes; 4681 } 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4702 protected List getIssueVotesJoinScarabUserImpl(Criteria criteria) 4703 throws TorqueException 4704 { 4705 if (collIssueVotes == null) 4706 { 4707 if (isNew()) 4708 { 4709 collIssueVotes = new ArrayList (); 4710 } 4711 else 4712 { 4713 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4714 collIssueVotes = IssueVotePeer.doSelectJoinScarabUserImpl(criteria); 4715 } 4716 } 4717 else 4718 { 4719 4723 criteria.add(IssueVotePeer.USER_ID, getUserId() ); 4724 if (!lastIssueVotesCriteria.equals(criteria)) 4725 { 4726 collIssueVotes = IssueVotePeer.doSelectJoinScarabUserImpl(criteria); 4727 } 4728 } 4729 lastIssueVotesCriteria = criteria; 4730 4731 return collIssueVotes; 4732 } 4733 4734 4735 4736 4737 4738 4741 protected List collQuerys; 4742 4743 4748 protected void initQuerys() 4749 { 4750 if (collQuerys == null) 4751 { 4752 collQuerys = new ArrayList (); 4753 } 4754 } 4755 4756 4757 4764 public void addQuery(Query l) throws TorqueException 4765 { 4766 getQuerys().add(l); 4767 l.setScarabUser((ScarabUserImpl)this); 4768 } 4769 4770 4773 private Criteria lastQuerysCriteria = null; 4774 4775 4782 public List getQuerys() throws TorqueException 4783 { 4784 if (collQuerys == null) 4785 { 4786 collQuerys = getQuerys(new Criteria(10)); 4787 } 4788 return collQuerys; 4789 } 4790 4791 4802 public List getQuerys(Criteria criteria) throws TorqueException 4803 { 4804 if (collQuerys == null) 4805 { 4806 if (isNew()) 4807 { 4808 collQuerys = new ArrayList (); 4809 } 4810 else 4811 { 4812 criteria.add(QueryPeer.USER_ID, getUserId() ); 4813 collQuerys = QueryPeer.doSelect(criteria); 4814 } 4815 } 4816 else 4817 { 4818 if (!isNew()) 4820 { 4821 criteria.add(QueryPeer.USER_ID, getUserId() ); 4825 if (!lastQuerysCriteria.equals(criteria)) 4826 { 4827 collQuerys = QueryPeer.doSelect(criteria); 4828 } 4829 } 4830 } 4831 lastQuerysCriteria = criteria; 4832 4833 return collQuerys; 4834 } 4835 4836 4844 public List getQuerys(Connection con) throws TorqueException 4845 { 4846 if (collQuerys == null) 4847 { 4848 collQuerys = getQuerys(new Criteria(10),con); 4849 } 4850 return collQuerys; 4851 } 4852 4853 4865 public List getQuerys(Criteria criteria,Connection con) throws TorqueException 4866 { 4867 if (collQuerys == null) 4868 { 4869 if (isNew()) 4870 { 4871 collQuerys = new ArrayList (); 4872 } 4873 else 4874 { 4875 criteria.add(QueryPeer.USER_ID, getUserId() ); 4876 collQuerys = QueryPeer.doSelect(criteria,con); 4877 } 4878 } 4879 else 4880 { 4881 if (!isNew()) 4883 { 4884 criteria.add(QueryPeer.USER_ID, getUserId() ); 4888 if (!lastQuerysCriteria.equals(criteria)) 4889 { 4890 collQuerys = QueryPeer.doSelect(criteria,con); 4891 } 4892 } 4893 } 4894 lastQuerysCriteria = criteria; 4895 4896 return collQuerys; 4897 } 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4920 protected List getQuerysJoinScarabUserImpl(Criteria criteria) 4921 throws TorqueException 4922 { 4923 if (collQuerys == null) 4924 { 4925 if (isNew()) 4926 { 4927 collQuerys = new ArrayList (); 4928 } 4929 else 4930 { 4931 criteria.add(QueryPeer.USER_ID, getUserId() ); 4932 collQuerys = QueryPeer.doSelectJoinScarabUserImpl(criteria); 4933 } 4934 } 4935 else 4936 { 4937 4941 criteria.add(QueryPeer.USER_ID, getUserId() ); 4942 if (!lastQuerysCriteria.equals(criteria)) 4943 { 4944 collQuerys = QueryPeer.doSelectJoinScarabUserImpl(criteria); 4945 } 4946 } 4947 lastQuerysCriteria = criteria; 4948 4949 return collQuerys; 4950 } 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4971 protected List getQuerysJoinScope(Criteria criteria) 4972 throws TorqueException 4973 { 4974 if (collQuerys == null) 4975 { 4976 if (isNew()) 4977 { 4978 collQuerys = new ArrayList (); 4979 } 4980 else 4981 { 4982 criteria.add(QueryPeer.USER_ID, getUserId() ); 4983 collQuerys = QueryPeer.doSelectJoinScope(criteria); 4984 } 4985 } 4986 else 4987 { 4988 4992 criteria.add(QueryPeer.USER_ID, getUserId() ); 4993 if (!lastQuerysCriteria.equals(criteria)) 4994 { 4995 collQuerys = QueryPeer.doSelectJoinScope(criteria); 4996 } 4997 } 4998 lastQuerysCriteria = criteria; 4999 5000 return collQuerys; 5001 } 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5022 protected List getQuerysJoinScarabModule(Criteria criteria) 5023 throws TorqueException 5024 { 5025 if (collQuerys == null) 5026 { 5027 if (isNew()) 5028 { 5029 collQuerys = new ArrayList (); 5030 } 5031 else 5032 { 5033 criteria.add(QueryPeer.USER_ID, getUserId() ); 5034 collQuerys = QueryPeer.doSelectJoinScarabModule(criteria); 5035 } 5036 } 5037 else 5038 { 5039 5043 criteria.add(QueryPeer.USER_ID, getUserId() ); 5044 if (!lastQuerysCriteria.equals(criteria)) 5045 { 5046 collQuerys = QueryPeer.doSelectJoinScarabModule(criteria); 5047 } 5048 } 5049 lastQuerysCriteria = criteria; 5050 5051 return collQuerys; 5052 } 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5073 protected List getQuerysJoinIssueType(Criteria criteria) 5074 throws TorqueException 5075 { 5076 if (collQuerys == null) 5077 { 5078 if (isNew()) 5079 { 5080 collQuerys = new ArrayList (); 5081 } 5082 else 5083 { 5084 criteria.add(QueryPeer.USER_ID, getUserId() ); 5085 collQuerys = QueryPeer.doSelectJoinIssueType(criteria); 5086 } 5087 } 5088 else 5089 { 5090 5094 criteria.add(QueryPeer.USER_ID, getUserId() ); 5095 if (!lastQuerysCriteria.equals(criteria)) 5096 { 5097 collQuerys = QueryPeer.doSelectJoinIssueType(criteria); 5098 } 5099 } 5100 lastQuerysCriteria = criteria; 5101 5102 return collQuerys; 5103 } 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5124 protected List getQuerysJoinMITList(Criteria criteria) 5125 throws TorqueException 5126 { 5127 if (collQuerys == null) 5128 { 5129 if (isNew()) 5130 { 5131 collQuerys = new ArrayList (); 5132 } 5133 else 5134 { 5135 criteria.add(QueryPeer.USER_ID, getUserId() ); 5136 collQuerys = QueryPeer.doSelectJoinMITList(criteria); 5137 } 5138 } 5139 else 5140 { 5141 5145 criteria.add(QueryPeer.USER_ID, getUserId() ); 5146 if (!lastQuerysCriteria.equals(criteria)) 5147 { 5148 collQuerys = QueryPeer.doSelectJoinMITList(criteria); 5149 } 5150 } 5151 lastQuerysCriteria = criteria; 5152 5153 return collQuerys; 5154 } 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5175 protected List getQuerysJoinFrequency(Criteria criteria) 5176 throws TorqueException 5177 { 5178 if (collQuerys == null) 5179 { 5180 if (isNew()) 5181 { 5182 collQuerys = new ArrayList (); 5183 } 5184 else 5185 { 5186 criteria.add(QueryPeer.USER_ID, getUserId() ); 5187 collQuerys = QueryPeer.doSelectJoinFrequency(criteria); 5188 } 5189 } 5190 else 5191 { 5192 5196 criteria.add(QueryPeer.USER_ID, getUserId() ); 5197 if (!lastQuerysCriteria.equals(criteria)) 5198 { 5199 collQuerys = QueryPeer.doSelectJoinFrequency(criteria); 5200 } 5201 } 5202 lastQuerysCriteria = criteria; 5203 5204 return collQuerys; 5205 } 5206 5207 5208 5209 5210 5211 5214 protected List collRQueryUsers; 5215 5216 5221 protected void initRQueryUsers() 5222 { 5223 if (collRQueryUsers == null) 5224 { 5225 collRQueryUsers = new ArrayList (); 5226 } 5227 } 5228 5229 5230 5237 public void addRQueryUser(RQueryUser l) throws TorqueException 5238 { 5239 getRQueryUsers().add(l); 5240 l.setScarabUser((ScarabUserImpl)this); 5241 } 5242 5243 5246 private Criteria lastRQueryUsersCriteria = null; 5247 5248 5255 public List getRQueryUsers() throws TorqueException 5256 { 5257 if (collRQueryUsers == null) 5258 { 5259 collRQueryUsers = getRQueryUsers(new Criteria(10)); 5260 } 5261 return collRQueryUsers; 5262 } 5263 5264 5275 public List getRQueryUsers(Criteria criteria) throws TorqueException 5276 { 5277 if (collRQueryUsers == null) 5278 { 5279 if (isNew()) 5280 { 5281 collRQueryUsers = new ArrayList (); 5282 } 5283 else 5284 { 5285 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5286 collRQueryUsers = RQueryUserPeer.doSelect(criteria); 5287 } 5288 } 5289 else 5290 { 5291 if (!isNew()) 5293 { 5294 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5298 if (!lastRQueryUsersCriteria.equals(criteria)) 5299 { 5300 collRQueryUsers = RQueryUserPeer.doSelect(criteria); 5301 } 5302 } 5303 } 5304 lastRQueryUsersCriteria = criteria; 5305 5306 return collRQueryUsers; 5307 } 5308 5309 5317 public List getRQueryUsers(Connection con) throws TorqueException 5318 { 5319 if (collRQueryUsers == null) 5320 { 5321 collRQueryUsers = getRQueryUsers(new Criteria(10),con); 5322 } 5323 return collRQueryUsers; 5324 } 5325 5326 5338 public List getRQueryUsers(Criteria criteria,Connection con) throws TorqueException 5339 { 5340 if (collRQueryUsers == null) 5341 { 5342 if (isNew()) 5343 { 5344 collRQueryUsers = new ArrayList (); 5345 } 5346 else 5347 { 5348 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5349 collRQueryUsers = RQueryUserPeer.doSelect(criteria,con); 5350 } 5351 } 5352 else 5353 { 5354 if (!isNew()) 5356 { 5357 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5361 if (!lastRQueryUsersCriteria.equals(criteria)) 5362 { 5363 collRQueryUsers = RQueryUserPeer.doSelect(criteria,con); 5364 } 5365 } 5366 } 5367 lastRQueryUsersCriteria = criteria; 5368 5369 return collRQueryUsers; 5370 } 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5393 protected List getRQueryUsersJoinQuery(Criteria criteria) 5394 throws TorqueException 5395 { 5396 if (collRQueryUsers == null) 5397 { 5398 if (isNew()) 5399 { 5400 collRQueryUsers = new ArrayList (); 5401 } 5402 else 5403 { 5404 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5405 collRQueryUsers = RQueryUserPeer.doSelectJoinQuery(criteria); 5406 } 5407 } 5408 else 5409 { 5410 5414 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5415 if (!lastRQueryUsersCriteria.equals(criteria)) 5416 { 5417 collRQueryUsers = RQueryUserPeer.doSelectJoinQuery(criteria); 5418 } 5419 } 5420 lastRQueryUsersCriteria = criteria; 5421 5422 return collRQueryUsers; 5423 } 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5444 protected List getRQueryUsersJoinScarabUserImpl(Criteria criteria) 5445 throws TorqueException 5446 { 5447 if (collRQueryUsers == null) 5448 { 5449 if (isNew()) 5450 { 5451 collRQueryUsers = new ArrayList (); 5452 } 5453 else 5454 { 5455 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5456 collRQueryUsers = RQueryUserPeer.doSelectJoinScarabUserImpl(criteria); 5457 } 5458 } 5459 else 5460 { 5461 5465 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5466 if (!lastRQueryUsersCriteria.equals(criteria)) 5467 { 5468 collRQueryUsers = RQueryUserPeer.doSelectJoinScarabUserImpl(criteria); 5469 } 5470 } 5471 lastRQueryUsersCriteria = criteria; 5472 5473 return collRQueryUsers; 5474 } 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5495 protected List getRQueryUsersJoinFrequency(Criteria criteria) 5496 throws TorqueException 5497 { 5498 if (collRQueryUsers == null) 5499 { 5500 if (isNew()) 5501 { 5502 collRQueryUsers = new ArrayList (); 5503 } 5504 else 5505 { 5506 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5507 collRQueryUsers = RQueryUserPeer.doSelectJoinFrequency(criteria); 5508 } 5509 } 5510 else 5511 { 5512 5516 criteria.add(RQueryUserPeer.USER_ID, getUserId() ); 5517 if (!lastRQueryUsersCriteria.equals(criteria)) 5518 { 5519 collRQueryUsers = RQueryUserPeer.doSelectJoinFrequency(criteria); 5520 } 5521 } 5522 lastRQueryUsersCriteria = criteria; 5523 5524 return collRQueryUsers; 5525 } 5526 5527 5528 5529 5530 5531 5534 protected List collReports; 5535 5536 5541 protected void initReports() 5542 { 5543 if (collReports == null) 5544 { 5545 collReports = new ArrayList (); 5546 } 5547 } 5548 5549 5550 5557 public void addReport(Report l) throws TorqueException 5558 { 5559 getReports().add(l); 5560 l.setScarabUser((ScarabUserImpl)this); 5561 } 5562 5563 5566 private Criteria lastReportsCriteria = null; 5567 5568 5575 public List getReports() throws TorqueException 5576 { 5577 if (collReports == null) 5578 { 5579 collReports = getReports(new Criteria(10)); 5580 } 5581 return collReports; 5582 } 5583 5584 5595 public List getReports(Criteria criteria) throws TorqueException 5596 { 5597 if (collReports == null) 5598 { 5599 if (isNew()) 5600 { 5601 collReports = new ArrayList (); 5602 } 5603 else 5604 { 5605 criteria.add(ReportPeer.USER_ID, getUserId() ); 5606 collReports = ReportPeer.doSelect(criteria); 5607 } 5608 } 5609 else 5610 { 5611 if (!isNew()) 5613 { 5614 criteria.add(ReportPeer.USER_ID, getUserId() ); 5618 if (!lastReportsCriteria.equals(criteria)) 5619 { 5620 collReports = ReportPeer.doSelect(criteria); 5621 } 5622 } 5623 } 5624 lastReportsCriteria = criteria; 5625 5626 return collReports; 5627 } 5628 5629 5637 public List getReports(Connection con) throws TorqueException 5638 { 5639 if (collReports == null) 5640 { 5641 collReports = getReports(new Criteria(10),con); 5642 } 5643 return collReports; 5644 } 5645 5646 5658 public List getReports(Criteria criteria,Connection con) throws TorqueException 5659 { 5660 if (collReports == null) 5661 { 5662 if (isNew()) 5663 { 5664 collReports = new ArrayList (); 5665 } 5666 else 5667 { 5668 criteria.add(ReportPeer.USER_ID, getUserId() ); 5669 collReports = ReportPeer.doSelect(criteria,con); 5670 } 5671 } 5672 else 5673 { 5674 if (!isNew()) 5676 { 5677 criteria.add(ReportPeer.USER_ID, getUserId() ); 5681 if (!lastReportsCriteria.equals(criteria)) 5682 { 5683 collReports = ReportPeer.doSelect(criteria,con); 5684 } 5685 } 5686 } 5687 lastReportsCriteria = criteria; 5688 5689 return collReports; 5690 } 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5713 protected List getReportsJoinIssueType(Criteria criteria) 5714 throws TorqueException 5715 { 5716 if (collReports == null) 5717 { 5718 if (isNew()) 5719 { 5720 collReports = new ArrayList (); 5721 } 5722 else 5723 { 5724 criteria.add(ReportPeer.USER_ID, getUserId() ); 5725 collReports = ReportPeer.doSelectJoinIssueType(criteria); 5726 } 5727 } 5728 else 5729 { 5730 5734 criteria.add(ReportPeer.USER_ID, getUserId() ); 5735 if (!lastReportsCriteria.equals(criteria)) 5736 { 5737 collReports = ReportPeer.doSelectJoinIssueType(criteria); 5738 } 5739 } 5740 lastReportsCriteria = criteria; 5741 5742 return collReports; 5743 } 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5764 protected List getReportsJoinScarabUserImpl(Criteria criteria) 5765 throws TorqueException 5766 { 5767 if (collReports == null) 5768 { 5769 if (isNew()) 5770 { 5771 collReports = new ArrayList (); 5772 } 5773 else 5774 { 5775 criteria.add(ReportPeer.USER_ID, getUserId() ); 5776 collReports = ReportPeer.doSelectJoinScarabUserImpl(criteria); 5777 } 5778 } 5779 else 5780 { 5781 5785 criteria.add(ReportPeer.USER_ID, getUserId() ); 5786 if (!lastReportsCriteria.equals(criteria)) 5787 { 5788 collReports = ReportPeer.doSelectJoinScarabUserImpl(criteria); 5789 } 5790 } 5791 lastReportsCriteria = criteria; 5792 5793 return collReports; 5794 } 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5815 protected List getReportsJoinScarabModule(Criteria criteria) 5816 throws TorqueException 5817 { 5818 if (collReports == null) 5819 { 5820 if (isNew()) 5821 { 5822 collReports = new ArrayList (); 5823 } 5824 else 5825 { 5826 criteria.add(ReportPeer.USER_ID, getUserId() ); 5827 collReports = ReportPeer.doSelectJoinScarabModule(criteria); 5828 } 5829 } 5830 else 5831 { 5832 5836 criteria.add(ReportPeer.USER_ID, getUserId() ); 5837 if (!lastReportsCriteria.equals(criteria)) 5838 { 5839 collReports = ReportPeer.doSelectJoinScarabModule(criteria); 5840 } 5841 } 5842 lastReportsCriteria = criteria; 5843 5844 return collReports; 5845 } 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5866 protected List getReportsJoinScope(Criteria criteria) 5867 throws TorqueException 5868 { 5869 if (collReports == null) 5870 { 5871 if (isNew()) 5872 { 5873 collReports = new ArrayList (); 5874 } 5875 else 5876 { 5877 criteria.add(ReportPeer.USER_ID, getUserId() ); 5878 collReports = ReportPeer.doSelectJoinScope(criteria); 5879 } 5880 } 5881 else 5882 { 5883 5887 criteria.add(ReportPeer.USER_ID, getUserId() ); 5888 if (!lastReportsCriteria.equals(criteria)) 5889 { 5890 collReports = ReportPeer.doSelectJoinScope(criteria); 5891 } 5892 } 5893 lastReportsCriteria = criteria; 5894 5895 return collReports; 5896 } 5897 5898 5899 5900 5901 5902 5905 protected List collPendingGroupUserRoles; 5906 5907 5912 protected void initPendingGroupUserRoles() 5913 { 5914 if (collPendingGroupUserRoles == null) 5915 { 5916 collPendingGroupUserRoles = new ArrayList (); 5917 } 5918 } 5919 5920 5921 5928 public void addPendingGroupUserRole(PendingGroupUserRole l) throws TorqueException 5929 { 5930 getPendingGroupUserRoles().add(l); 5931 l.setScarabUser((ScarabUserImpl)this); 5932 } 5933 5934 5937 private Criteria lastPendingGroupUserRolesCriteria = null; 5938 5939 5946 public List getPendingGroupUserRoles() throws TorqueException 5947 { 5948 if (collPendingGroupUserRoles == null) 5949 { 5950 collPendingGroupUserRoles = getPendingGroupUserRoles(new Criteria(10)); 5951 } 5952 return collPendingGroupUserRoles; 5953 } 5954 5955 5966 public List getPendingGroupUserRoles(Criteria criteria) throws TorqueException 5967 { 5968 if (collPendingGroupUserRoles == null) 5969 { 5970 if (isNew()) 5971 { 5972 collPendingGroupUserRoles = new ArrayList (); 5973 } 5974 else 5975 { 5976 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 5977 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelect(criteria); 5978 } 5979 } 5980 else 5981 { 5982 if (!isNew()) 5984 { 5985 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 5989 if (!lastPendingGroupUserRolesCriteria.equals(criteria)) 5990 { 5991 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelect(criteria); 5992 } 5993 } 5994 } 5995 lastPendingGroupUserRolesCriteria = criteria; 5996 5997 return collPendingGroupUserRoles; 5998 } 5999 6000 6008 public List getPendingGroupUserRoles(Connection con) throws TorqueException 6009 { 6010 if (collPendingGroupUserRoles == null) 6011 { 6012 collPendingGroupUserRoles = getPendingGroupUserRoles(new Criteria(10),con); 6013 } 6014 return collPendingGroupUserRoles; 6015 } 6016 6017 6029 public List getPendingGroupUserRoles(Criteria criteria,Connection con) throws TorqueException 6030 { 6031 if (collPendingGroupUserRoles == null) 6032 { 6033 if (isNew()) 6034 { 6035 collPendingGroupUserRoles = new ArrayList (); 6036 } 6037 else 6038 { 6039 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 6040 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelect(criteria,con); 6041 } 6042 } 6043 else 6044 { 6045 if (!isNew()) 6047 { 6048 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 6052 if (!lastPendingGroupUserRolesCriteria.equals(criteria)) 6053 { 6054 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelect(criteria,con); 6055 } 6056 } 6057 } 6058 lastPendingGroupUserRolesCriteria = criteria; 6059 6060 return collPendingGroupUserRoles; 6061 } 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6084 protected List getPendingGroupUserRolesJoinScarabUserImpl(Criteria criteria) 6085 throws TorqueException 6086 { 6087 if (collPendingGroupUserRoles == null) 6088 { 6089 if (isNew()) 6090 { 6091 collPendingGroupUserRoles = new ArrayList (); 6092 } 6093 else 6094 { 6095 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 6096 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelectJoinScarabUserImpl(criteria); 6097 } 6098 } 6099 else 6100 { 6101 6105 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 6106 if (!lastPendingGroupUserRolesCriteria.equals(criteria)) 6107 { 6108 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelectJoinScarabUserImpl(criteria); 6109 } 6110 } 6111 lastPendingGroupUserRolesCriteria = criteria; 6112 6113 return collPendingGroupUserRoles; 6114 } 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6135 protected List getPendingGroupUserRolesJoinScarabModule(Criteria criteria) 6136 throws TorqueException 6137 { 6138 if (collPendingGroupUserRoles == null) 6139 { 6140 if (isNew()) 6141 { 6142 collPendingGroupUserRoles = new ArrayList (); 6143 } 6144 else 6145 { 6146 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 6147 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelectJoinScarabModule(criteria); 6148 } 6149 } 6150 else 6151 { 6152 6156 criteria.add(PendingGroupUserRolePeer.USER_ID, getUserId() ); 6157 if (!lastPendingGroupUserRolesCriteria.equals(criteria)) 6158 { 6159 collPendingGroupUserRoles = PendingGroupUserRolePeer.doSelectJoinScarabModule(criteria); 6160 } 6161 } 6162 lastPendingGroupUserRolesCriteria = criteria; 6163 6164 return collPendingGroupUserRoles; 6165 } 6166 6167 6168 6169 6170 6171 6172 6176 protected boolean isCacheOnSave() 6177 { 6178 return true; 6179 } 6180 6181 6182 6186 public String getQueryKey() 6187 { 6188 if (getPrimaryKey() == null) 6189 { 6190 return ""; 6191 } 6192 else 6193 { 6194 return getPrimaryKey().toString(); 6195 } 6196 } 6197 6198 6202 public void setQueryKey(String key) 6203 throws TorqueException 6204 { 6205 setPrimaryKey(key); 6206 } 6207 6208 6209 6210 public String toString() 6211 { 6212 StringBuffer str = new StringBuffer (); 6213 str.append("ScarabUserImpl:\n"); 6214 str.append("UserId = ") 6215 .append(getUserId()) 6216 .append("\n"); 6217 return(str.toString()); 6218 } 6219} 6220 | Popular Tags |