Subversion Repository Public Repository

litesoft

Diff Revisions 2 vs 17 for /trunk/Java/core/Server/tests/org/litesoft/or/DBAttributeSamplesPO.java

Diff revisions: vs.
  @@ -53,6 +53,7 @@
53 53 super( "RecordVersion", "RecordVersion" );
54 54 }
55 55
56 + @Override
56 57 protected RecordVersionHelper getRecordVersionHelper( DBAttributeSamples pPO )
57 58 {
58 59 return pPO.mRecordVersion;
  @@ -81,11 +82,13 @@
81 82 super( "ID", "id", true, _Long );
82 83 }
83 84
85 + @Override
84 86 public Object getValueOnPO( DBAttributeSamples pPO )
85 87 {
86 88 return pPO.getID();
87 89 }
88 90
91 + @Override
89 92 public void db_setValueOnPO( DBAttributeSamples pPO, Object pValue )
90 93 {
91 94 pPO.LLsetID( to_Long( pValue ) );
  @@ -114,11 +117,13 @@
114 117 super( "Name", "Name", true, _String.with( MaxLength.of( 45 ) ) );
115 118 }
116 119
120 + @Override
117 121 public Object getValueOnPO( DBAttributeSamples pPO )
118 122 {
119 123 return pPO.getName();
120 124 }
121 125
126 + @Override
122 127 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
123 128 {
124 129 pPO.setName( to_String( pValue ) );
  @@ -147,11 +152,13 @@
147 152 super( "Password", "Password", true, _Password.with( MaxLength.of( 20 ) ) );
148 153 }
149 154
155 + @Override
150 156 public Object getValueOnPO( DBAttributeSamples pPO )
151 157 {
152 158 return pPO.getPassword();
153 159 }
154 160
161 + @Override
155 162 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
156 163 {
157 164 pPO.setPassword( to_String( pValue ) );
  @@ -187,16 +194,19 @@
187 194 super( "Status", "Status", true, _String.with( UiHint.RadioGroup ) );
188 195 }
189 196
197 + @Override
190 198 public Object getValueOnPO( DBAttributeSamples pPO )
191 199 {
192 200 return pPO.getStatus();
193 201 }
194 202
203 + @Override
195 204 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
196 205 {
197 206 pPO.setStatus( to_String( pValue ) );
198 207 }
199 208
209 + @Override
200 210 public Object[] getValidOptions()
201 211 {
202 212 return AttributeSampleStatus.values();
  @@ -232,16 +242,19 @@
232 242 super( "Constrained", "Constrained", true, _String.with( MaxLength.of( 20 ) ) );
233 243 }
234 244
245 + @Override
235 246 public Object getValueOnPO( DBAttributeSamples pPO )
236 247 {
237 248 return pPO.getConstrained();
238 249 }
239 250
251 + @Override
240 252 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
241 253 {
242 254 pPO.setConstrained( to_String( pValue ) );
243 255 }
244 256
257 + @Override
245 258 public Object[] getValidOptions()
246 259 {
247 260 return AttributeSampleStatus.values();
  @@ -271,11 +284,13 @@
271 284 Case.Ignored ) );
272 285 }
273 286
287 + @Override
274 288 public Object getValueOnPO( DBAttributeSamples pPO )
275 289 {
276 290 return pPO.getAlias();
277 291 }
278 292
293 + @Override
279 294 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
280 295 {
281 296 pPO.setAlias( to_String( pValue ) );
  @@ -304,11 +319,13 @@
304 319 super( "URL", "URL", false, _String.with( MaxLength.of( 255 ) ) );
305 320 }
306 321
322 + @Override
307 323 public Object getValueOnPO( DBAttributeSamples pPO )
308 324 {
309 325 return pPO.getURL();
310 326 }
311 327
328 + @Override
312 329 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
313 330 {
314 331 pPO.setURL( to_String( pValue ) );
  @@ -337,11 +354,13 @@
337 354 super( "Description", "Description", false, _Text );
338 355 }
339 356
357 + @Override
340 358 public Object getValueOnPO( DBAttributeSamples pPO )
341 359 {
342 360 return pPO.getDescription();
343 361 }
344 362
363 + @Override
345 364 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
346 365 {
347 366 pPO.setDescription( to_String( pValue ) );
  @@ -371,11 +390,13 @@
371 390 UiHint.RightAligned ) );
372 391 }
373 392
393 + @Override
374 394 public Object getValueOnPO( DBAttributeSamples pPO )
375 395 {
376 396 return pPO.getNumber();
377 397 }
378 398
399 + @Override
379 400 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
380 401 {
381 402 pPO.setNumber( to_String( pValue ) );
  @@ -404,11 +425,13 @@
404 425 super( "Shipped", "Shipped", false, _Boolean.with( BooleanDisplayOptions.of( "Shipped/Processing" ) ) );
405 426 }
406 427
428 + @Override
407 429 public Object getValueOnPO( DBAttributeSamples pPO )
408 430 {
409 431 return pPO.getShipped();
410 432 }
411 433
434 + @Override
412 435 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
413 436 {
414 437 pPO.setShipped( to_boolean( pValue ) );
  @@ -437,11 +460,13 @@
437 460 super( "Paid", "Paid", false, _Primitive_boolean );
438 461 }
439 462
463 + @Override
440 464 public Object getValueOnPO( DBAttributeSamples pPO )
441 465 {
442 466 return pPO.getPaid();
443 467 }
444 468
469 + @Override
445 470 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
446 471 {
447 472 pPO.setPaid( to_boolean( pValue ) );
  @@ -470,11 +495,13 @@
470 495 super( "Member", "Member", true, _Boolean );
471 496 }
472 497
498 + @Override
473 499 public Object getValueOnPO( DBAttributeSamples pPO )
474 500 {
475 501 return pPO.getMember();
476 502 }
477 503
504 + @Override
478 505 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
479 506 {
480 507 pPO.setMember( to_Boolean( pValue ) );
  @@ -503,11 +530,13 @@
503 530 super( "TimeScheduled", "TimeScheduled", false, _SimpleTime );
504 531 }
505 532
533 + @Override
506 534 public Object getValueOnPO( DBAttributeSamples pPO )
507 535 {
508 536 return pPO.getTimeScheduled();
509 537 }
510 538
539 + @Override
511 540 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
512 541 {
513 542 pPO.setTimeScheduled( to_SimpleTime( TimeRes.ToMIN, pValue ) );
  @@ -548,11 +577,13 @@
548 577 super( "DateOrdered", "DateOrdered", false, _SimpleDate );
549 578 }
550 579
580 + @Override
551 581 public Object getValueOnPO( DBAttributeSamples pPO )
552 582 {
553 583 return pPO.getDateOrdered();
554 584 }
555 585
586 + @Override
556 587 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
557 588 {
558 589 pPO.setDateOrdered( to_SimpleDate( null, pValue ) );
  @@ -593,11 +624,13 @@
593 624 super( "OrderProcessed", "OrderProcessed", false, _SimpleTimestamp );
594 625 }
595 626
627 + @Override
596 628 public Object getValueOnPO( DBAttributeSamples pPO )
597 629 {
598 630 return pPO.getOrderProcessed();
599 631 }
600 632
633 + @Override
601 634 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
602 635 {
603 636 pPO.setOrderProcessed( to_SimpleTimestamp( TimeRes.ToMSEC, pValue ) );
  @@ -638,11 +671,13 @@
638 671 super( "Friends", "Friends", false, _Long.with( MaxLength.of( 8 ) ) );
639 672 }
640 673
674 + @Override
641 675 public Object getValueOnPO( DBAttributeSamples pPO )
642 676 {
643 677 return pPO.getFriends();
644 678 }
645 679
680 + @Override
646 681 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
647 682 {
648 683 pPO.setFriends( to_Long( pValue ) );
  @@ -673,11 +708,13 @@
673 708 MinDisplayDecimalPlaces.of( 2 ) ) );
674 709 }
675 710
711 + @Override
676 712 public Object getValueOnPO( DBAttributeSamples pPO )
677 713 {
678 714 return pPO.getAcreageFloat();
679 715 }
680 716
717 + @Override
681 718 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
682 719 {
683 720 pPO.setAcreageFloat( to_Float( pValue ) );
  @@ -708,11 +745,13 @@
708 745 MinDisplayDecimalPlaces.of( 2 ) ) );
709 746 }
710 747
748 + @Override
711 749 public Object getValueOnPO( DBAttributeSamples pPO )
712 750 {
713 751 return pPO.getAcreageDouble();
714 752 }
715 753
754 + @Override
716 755 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
717 756 {
718 757 pPO.setAcreageDouble( to_Double( pValue ) );
  @@ -741,26 +780,31 @@
741 780 super( "Parent", "parent_id", DBAttributeSamples.class, "ID", "DBAttributeSamplesSetForParent", false, false, Mutability.RW );
742 781 }
743 782
783 + @Override
744 784 public LazyLoadToOneRegular<DBAttributeSamples, DBAttributeSamples> getValueHolder( DBAttributeSamples pPO )
745 785 {
746 786 return pPO.mParent;
747 787 }
748 788
789 + @Override
749 790 public Object getValueOnPO( DBAttributeSamples pPO )
750 791 {
751 792 return pPO.getParent();
752 793 }
753 794
795 + @Override
754 796 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
755 797 {
756 798 pPO.setParent( to_PO( pPO, DBAttributeSamples.class, pValue ) );
757 799 }
758 800
801 + @Override
759 802 public Object db_getValueOnPO( DBAttributeSamples pPO )
760 803 {
761 804 return pPO.mParent.db_getValue();
762 805 }
763 806
807 + @Override
764 808 public void db_setValueOnPO( DBAttributeSamples pPO, Object pValue )
765 809 {
766 810 pPO.mParent.db_setValue( to_Long( pValue ) );
  @@ -799,26 +843,31 @@
799 843 super( "DBAttributeSamplesSetForParent", "ID", DBAttributeSamples.class, "Parent", "Name", Mutability.RW, false, true );
800 844 }
801 845
846 + @Override
802 847 public LazyLoadToManyRegular<DBAttributeSamples, DBAttributeSamples> getValueHolder( DBAttributeSamples pPO )
803 848 {
804 849 return pPO.mDBAttributeSamplesSetForParent;
805 850 }
806 851
852 + @Override
807 853 public Object getValueOnPO( DBAttributeSamples pPO )
808 854 {
809 855 return pPO.getDBAttributeSamplesSetForParent();
810 856 }
811 857
858 + @Override
812 859 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
813 860 {
814 861 pPO.setDBAttributeSamplesSetForParent( to_POs( pPO, DBAttributeSamples.class, pValue ) );
815 862 }
816 863
864 + @Override
817 865 public void addValueOnPO( DBAttributeSamples pPO, Object pValue )
818 866 {
819 867 pPO.addDBAttributeSamplesSetForParent( to_PO( pPO, DBAttributeSamples.class, pValue ) );
820 868 }
821 869
870 + @Override
822 871 public void removeValueOnPO( DBAttributeSamples pPO, Object pValue )
823 872 {
824 873 pPO.removeDBAttributeSamplesSetForParent( to_PO( pPO, DBAttributeSamples.class, pValue ) );
  @@ -846,16 +895,19 @@
846 895 super( "VirtualSample", DBAttributeSamples.class, false, Mutability.RW );
847 896 }
848 897
898 + @Override
849 899 public Object getValueOnPO( DBAttributeSamples pPO )
850 900 {
851 901 return pPO.getVirtualSample();
852 902 }
853 903
904 + @Override
854 905 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
855 906 {
856 907 pPO.setVirtualSample( to_PO( pPO, DBAttributeSamples.class, pValue ) );
857 908 }
858 909
910 + @Override
859 911 protected void LL_clearVirtualValueOnPO( DBAttributeSamples pPO )
860 912 {
861 913 pPO.LLclearVirtualSample();
  @@ -883,16 +935,19 @@
883 935 super( "VirtualFriends", false, _Long.with( MaxLength.of( 8 ) ) );
884 936 }
885 937
938 + @Override
886 939 public Object getValueOnPO( DBAttributeSamples pPO )
887 940 {
888 941 return pPO.getVirtualFriends();
889 942 }
890 943
944 + @Override
891 945 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
892 946 {
893 947 pPO.setVirtualFriends( to_Long( pValue ) );
894 948 }
895 949
950 + @Override
896 951 protected void LL_clearVirtualValueOnPO( DBAttributeSamples pPO )
897 952 {
898 953 pPO.LLclearVirtualFriends();
  @@ -915,16 +970,19 @@
915 970 super( "Attachment", "attachment_id", false, Mutability.RW );
916 971 }
917 972
973 + @Override
918 974 public BlobHandler<DBAttributeSamples> getValueHolder( DBAttributeSamples pPO )
919 975 {
920 976 return pPO.mAttachment;
921 977 }
922 978
979 + @Override
923 980 public Object db_getValueOnPO( DBAttributeSamples pPO )
924 981 {
925 982 return pPO.mAttachment.db_getValue();
926 983 }
927 984
985 + @Override
928 986 public void db_setValueOnPO( DBAttributeSamples pPO, Object pValue )
929 987 {
930 988 pPO.mAttachment.db_setValue( to_Long( pValue ) );
  @@ -952,31 +1010,37 @@
952 1010 super( "ImageOne", "ImageOne_id", DBSampleImage.class, "ID", "DBAttributeSamplesSetForImageOne", false, false, Mutability.RW );
953 1011 }
954 1012
1013 + @Override
955 1014 public LazyLoadToOneRegular<DBAttributeSamples, DBSampleImage> getValueHolder( DBAttributeSamples pPO )
956 1015 {
957 1016 return pPO.mImageOne;
958 1017 }
959 1018
1019 + @Override
960 1020 public Object getValueOnPO( DBAttributeSamples pPO )
961 1021 {
962 1022 return pPO.getImageOne();
963 1023 }
964 1024
1025 + @Override
965 1026 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
966 1027 {
967 1028 pPO.setImageOne( to_PO( pPO, DBSampleImage.class, pValue ) );
968 1029 }
969 1030
1031 + @Override
970 1032 public Object db_getValueOnPO( DBAttributeSamples pPO )
971 1033 {
972 1034 return pPO.mImageOne.db_getValue();
973 1035 }
974 1036
1037 + @Override
975 1038 public void db_setValueOnPO( DBAttributeSamples pPO, Object pValue )
976 1039 {
977 1040 pPO.mImageOne.db_setValue( to_Long( pValue ) );
978 1041 }
979 1042
1043 + @Override
980 1044 public boolean changedPOflagsPeerChanged()
981 1045 {
982 1046 return true;
  @@ -1004,31 +1068,37 @@
1004 1068 super( "ImageTwo", "ImageTwo_id", DBSampleImage.class, "ID", "DBAttributeSamplesSetForImageTwo", false, false, Mutability.RW );
1005 1069 }
1006 1070
1071 + @Override
1007 1072 public LazyLoadToOneRegular<DBAttributeSamples, DBSampleImage> getValueHolder( DBAttributeSamples pPO )
1008 1073 {
1009 1074 return pPO.mImageTwo;
1010 1075 }
1011 1076
1077 + @Override
1012 1078 public Object getValueOnPO( DBAttributeSamples pPO )
1013 1079 {
1014 1080 return pPO.getImageTwo();
1015 1081 }
1016 1082
1083 + @Override
1017 1084 public void setValueOnPO( DBAttributeSamples pPO, Object pValue )
1018 1085 {
1019 1086 pPO.setImageTwo( to_PO( pPO, DBSampleImage.class, pValue ) );
1020 1087 }
1021 1088
1089 + @Override
1022 1090 public Object db_getValueOnPO( DBAttributeSamples pPO )
1023 1091 {
1024 1092 return pPO.mImageTwo.db_getValue();
1025 1093 }
1026 1094
1095 + @Override
1027 1096 public void db_setValueOnPO( DBAttributeSamples pPO, Object pValue )
1028 1097 {
1029 1098 pPO.mImageTwo.db_setValue( to_Long( pValue ) );
1030 1099 }
1031 1100
1101 + @Override
1032 1102 public boolean changedPOflagsPeerChanged()
1033 1103 {
1034 1104 return true;
  @@ -1076,26 +1146,31 @@
1076 1146 setIndexes( new Index( "DBAttributeSamplesIDX1", null, true, CD_Name ) );
1077 1147 }
1078 1148
1149 + @Override
1079 1150 public Class getPOclass()
1080 1151 {
1081 1152 return DBAttributeSamples.class;
1082 1153 }
1083 1154
1155 + @Override
1084 1156 public DBAttributeSamples createNew( Transaction pTransaction )
1085 1157 {
1086 1158 return new DBAttributeSamples( pTransaction );
1087 1159 }
1088 1160
1161 + @Override
1089 1162 public DBAttributeSamples createPOfromFinder()
1090 1163 {
1091 1164 return new DBAttributeSamples( CONSTRUCTION_CONTROL );
1092 1165 }
1093 1166
1167 + @Override
1094 1168 public String getRecordVersionAttributeName()
1095 1169 {
1096 1170 return CD_RecordVersion.getName();
1097 1171 }
1098 1172
1173 + @Override
1099 1174 public String getDisplayValueFormat()
1100 1175 {
1101 1176 return "${Name}";