Subversion Repository Public Repository

litesoft

Diff Revisions 49 vs 151 for /trunk/Java/core/Server/tests/org/litesoft/or/DBEncryptedAttributeSamplesPO.java

Diff revisions: vs.
  @@ -1,6 +1,8 @@
1 1 // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
2 2 package org.litesoft.or;
3 3
4 + import java.util.*;
5 +
4 6 import org.litesoft.bo.attributes.*;
5 7 import org.litesoft.core.simpletypes.temporal.*;
6 8 import org.litesoft.core.util.*;
  @@ -13,8 +15,6 @@
13 15 import org.litesoft.orsup.transact.*;
14 16 import org.litesoft.util.*;
15 17
16 - import java.util.*;
17 -
18 18 public abstract class DBEncryptedAttributeSamplesPO extends PersistentObjectImpl<DBEncryptedAttributeSamples>
19 19 {
20 20 private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl();
  @@ -45,8 +45,7 @@
45 45 return mRecordVersion.getRecordVersion();
46 46 }
47 47
48 - private static class AttributeAccessor_RecordVersion
49 - extends AttributeAccessorSCD_RecordVersion<DBEncryptedAttributeSamples>
48 + private static class AttributeAccessor_RecordVersion extends AttributeAccessorSCD_RecordVersion<DBEncryptedAttributeSamples>
50 49 {
51 50 public AttributeAccessor_RecordVersion()
52 51 {
  @@ -74,9 +73,7 @@
74 73 mID = pID;
75 74 }
76 75
77 - private static class AttributeAccessor_ID
78 - extends AttributeAccessorSCDsimplePersistedReadOnly<DBEncryptedAttributeSamples>
79 - implements NonImportableFeature
76 + private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBEncryptedAttributeSamples> implements NonImportableFeature
80 77 {
81 78 public AttributeAccessor_ID()
82 79 {
  @@ -119,8 +116,7 @@
119 116 mName = pName;
120 117 }
121 118
122 - private static class AttributeAccessor_Name
123 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
119 + private static class AttributeAccessor_Name extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
124 120 {
125 121 public AttributeAccessor_Name()
126 122 {
  @@ -168,8 +164,7 @@
168 164 mPassword = pPassword;
169 165 }
170 166
171 - private static class AttributeAccessor_Password
172 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
167 + private static class AttributeAccessor_Password extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
173 168 {
174 169 public AttributeAccessor_Password()
175 170 {
  @@ -209,8 +204,7 @@
209 204 setStatus( (pStatus != null) ? AttributeSampleStatus.valueOf( pStatus ) : DEFAULT_Status );
210 205 }
211 206
212 - private static class AttributeAccessor_Status
213 - extends AttributeAccessorSCDenumPersistedRegular<DBEncryptedAttributeSamples>
207 + private static class AttributeAccessor_Status extends AttributeAccessorSCDenumPersistedRegular<DBEncryptedAttributeSamples>
214 208 {
215 209 public AttributeAccessor_Status()
216 210 {
  @@ -252,12 +246,10 @@
252 246
253 247 public void setConstrained( String pConstrained )
254 248 {
255 - setConstrained( (pConstrained != null) ? AttributeSampleStatus.valueOf( pConstrained ) :
256 - DEFAULT_Constrained );
249 + setConstrained( (pConstrained != null) ? AttributeSampleStatus.valueOf( pConstrained ) : DEFAULT_Constrained );
257 250 }
258 251
259 - private static class AttributeAccessor_Constrained
260 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
252 + private static class AttributeAccessor_Constrained extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
261 253 {
262 254 public AttributeAccessor_Constrained()
263 255 {
  @@ -295,8 +287,7 @@
295 287 mAlias = pAlias;
296 288 }
297 289
298 - private static class AttributeAccessor_Alias
299 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
290 + private static class AttributeAccessor_Alias extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
300 291 {
301 292 public AttributeAccessor_Alias()
302 293 {
  @@ -363,8 +354,7 @@
363 354 mDescription = pDescription;
364 355 }
365 356
366 - private static class AttributeAccessor_Description
367 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
357 + private static class AttributeAccessor_Description extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
368 358 {
369 359 public AttributeAccessor_Description()
370 360 {
  @@ -397,8 +387,7 @@
397 387 mNumber = pNumber;
398 388 }
399 389
400 - private static class AttributeAccessor_Number
401 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
390 + private static class AttributeAccessor_Number extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
402 391 {
403 392 public AttributeAccessor_Number()
404 393 {
  @@ -432,8 +421,7 @@
432 421 mShipped = pShipped;
433 422 }
434 423
435 - private static class AttributeAccessor_Shipped
436 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
424 + private static class AttributeAccessor_Shipped extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
437 425 {
438 426 public AttributeAccessor_Shipped()
439 427 {
  @@ -466,8 +454,7 @@
466 454 mPaid = pPaid;
467 455 }
468 456
469 - private static class AttributeAccessor_Paid
470 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
457 + private static class AttributeAccessor_Paid extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
471 458 {
472 459 public AttributeAccessor_Paid()
473 460 {
  @@ -500,8 +487,7 @@
500 487 mMember = (pMember != null) && pMember;
501 488 }
502 489
503 - private static class AttributeAccessor_Member
504 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
490 + private static class AttributeAccessor_Member extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
505 491 {
506 492 public AttributeAccessor_Member()
507 493 {
  @@ -534,8 +520,7 @@
534 520 mTimeScheduled.setSimpleTime( pTimeScheduled );
535 521 }
536 522
537 - private static class AttributeAccessor_TimeScheduled
538 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
523 + private static class AttributeAccessor_TimeScheduled extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
539 524 {
540 525 public AttributeAccessor_TimeScheduled()
541 526 {
  @@ -580,8 +565,7 @@
580 565 mDateOrdered.setSimpleDate( pDateOrdered );
581 566 }
582 567
583 - private static class AttributeAccessor_DateOrdered
584 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
568 + private static class AttributeAccessor_DateOrdered extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
585 569 {
586 570 public AttributeAccessor_DateOrdered()
587 571 {
  @@ -626,8 +610,7 @@
626 610 mOrderProcessed.setSimpleTimestamp( pOrderProcessed );
627 611 }
628 612
629 - private static class AttributeAccessor_OrderProcessed
630 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
613 + private static class AttributeAccessor_OrderProcessed extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
631 614 {
632 615 public AttributeAccessor_OrderProcessed()
633 616 {
  @@ -672,8 +655,7 @@
672 655 mFriends = pFriends;
673 656 }
674 657
675 - private static class AttributeAccessor_Friends
676 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
658 + private static class AttributeAccessor_Friends extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
677 659 {
678 660 public AttributeAccessor_Friends()
679 661 {
  @@ -706,8 +688,7 @@
706 688 mAcreageFloat = pAcreageFloat;
707 689 }
708 690
709 - private static class AttributeAccessor_AcreageFloat
710 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
691 + private static class AttributeAccessor_AcreageFloat extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
711 692 {
712 693 public AttributeAccessor_AcreageFloat()
713 694 {
  @@ -742,8 +723,7 @@
742 723 mAcreageDouble = pAcreageDouble;
743 724 }
744 725
745 - private static class AttributeAccessor_AcreageDouble
746 - extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
726 + private static class AttributeAccessor_AcreageDouble extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
747 727 {
748 728 public AttributeAccessor_AcreageDouble()
749 729 {
  @@ -763,13 +743,9 @@
763 743 }
764 744 }
765 745
766 - public static final AttributeAccessorSCDtoOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> CD_Parent =
767 - new AttributeAccessor_Parent();
746 + public static final AttributeAccessorSCDtoOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> CD_Parent = new AttributeAccessor_Parent();
768 747
769 - protected LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> mParent =
770 - new LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>(
771 - (DBEncryptedAttributeSamples) this,
772 - CD_Parent ); // Note: DBEncryptedAttributeSamples is the related TO object
748 + protected LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> mParent = new LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>( (DBEncryptedAttributeSamples) this, CD_Parent ); // Note: DBEncryptedAttributeSamples is the related TO object
773 749
774 750 public DBEncryptedAttributeSamples getParent()
775 751 {
  @@ -781,17 +757,14 @@
781 757 processLazyLoadMutation( mParent, pParent );
782 758 }
783 759
784 - private static class AttributeAccessor_Parent
785 - extends AttributeAccessorSCDtoOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>
760 + private static class AttributeAccessor_Parent extends AttributeAccessorSCDtoOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>
786 761 {
787 762 public AttributeAccessor_Parent()
788 763 {
789 - super( "Parent", "parent_id", DBEncryptedAttributeSamples.class, "ID", "DBEncryptedAttributeSamplesSetForParent", false, false, Mutability.RW
790 - );
764 + super( "Parent", "parent_id", DBEncryptedAttributeSamples.class, "ID", "DBEncryptedAttributeSamplesSetForParent", false, false, Mutability.RW );
791 765 }
792 766
793 - public LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> getValueHolder(
794 - DBEncryptedAttributeSamples pPO )
767 + public LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> getValueHolder( DBEncryptedAttributeSamples pPO )
795 768 {
796 769 return pPO.mParent;
797 770 }
  @@ -817,51 +790,38 @@
817 790 }
818 791 }
819 792
820 - public static final AttributeAccessorSCDtoManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> CD_DBEncryptedAttributeSamplesSetForParent =
821 - new AttributeAccessor_DBEncryptedAttributeSamplesSetForParent();
793 + public static final AttributeAccessorSCDtoManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> CD_DBEncryptedAttributeSamplesSetForParent = new AttributeAccessor_DBEncryptedAttributeSamplesSetForParent();
822 794
823 - protected LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> mDBEncryptedAttributeSamplesSetForParent =
824 - new LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>(
825 - (DBEncryptedAttributeSamples) this,
826 - CD_DBEncryptedAttributeSamplesSetForParent ); // Note: DBEncryptedAttributeSamples is the related TO object
795 + protected LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> mDBEncryptedAttributeSamplesSetForParent = new LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>( (DBEncryptedAttributeSamples) this, CD_DBEncryptedAttributeSamplesSetForParent ); // Note: DBEncryptedAttributeSamples is the related TO object
827 796
828 797 public List<DBEncryptedAttributeSamples> getDBEncryptedAttributeSamplesSetForParent()
829 798 {
830 799 return processLazyLoadAccess( mDBEncryptedAttributeSamplesSetForParent );
831 800 }
832 801
833 - public void setDBEncryptedAttributeSamplesSetForParent(
834 - List<DBEncryptedAttributeSamples> pDBEncryptedAttributeSamplesSetForParent )
802 + public void setDBEncryptedAttributeSamplesSetForParent( List<DBEncryptedAttributeSamples> pDBEncryptedAttributeSamplesSetForParent )
835 803 {
836 - processLazyLoadMutation( mDBEncryptedAttributeSamplesSetForParent,
837 - pDBEncryptedAttributeSamplesSetForParent );
804 + processLazyLoadMutation( mDBEncryptedAttributeSamplesSetForParent, pDBEncryptedAttributeSamplesSetForParent );
838 805 }
839 806
840 - public void addDBEncryptedAttributeSamplesSetForParent(
841 - DBEncryptedAttributeSamples pDBEncryptedAttributeSamplesSetForParent )
807 + public void addDBEncryptedAttributeSamplesSetForParent( DBEncryptedAttributeSamples pDBEncryptedAttributeSamplesSetForParent )
842 808 {
843 - processLazyLoadMutationAdd( mDBEncryptedAttributeSamplesSetForParent,
844 - pDBEncryptedAttributeSamplesSetForParent );
809 + processLazyLoadMutationAdd( mDBEncryptedAttributeSamplesSetForParent, pDBEncryptedAttributeSamplesSetForParent );
845 810 }
846 811
847 - public void removeDBEncryptedAttributeSamplesSetForParent(
848 - DBEncryptedAttributeSamples pDBEncryptedAttributeSamplesSetForParent )
812 + public void removeDBEncryptedAttributeSamplesSetForParent( DBEncryptedAttributeSamples pDBEncryptedAttributeSamplesSetForParent )
849 813 {
850 - processLazyLoadMutationRemove( mDBEncryptedAttributeSamplesSetForParent,
851 - pDBEncryptedAttributeSamplesSetForParent );
814 + processLazyLoadMutationRemove( mDBEncryptedAttributeSamplesSetForParent, pDBEncryptedAttributeSamplesSetForParent );
852 815 }
853 816
854 - private static class AttributeAccessor_DBEncryptedAttributeSamplesSetForParent
855 - extends AttributeAccessorSCDtoManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>
817 + private static class AttributeAccessor_DBEncryptedAttributeSamplesSetForParent extends AttributeAccessorSCDtoManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>
856 818 {
857 819 public AttributeAccessor_DBEncryptedAttributeSamplesSetForParent()
858 820 {
859 - super( "DBEncryptedAttributeSamplesSetForParent", "ID", DBEncryptedAttributeSamples.class,
860 - "Parent", "Name", Mutability.RW, false, true );
821 + super( "DBEncryptedAttributeSamplesSetForParent", "ID", DBEncryptedAttributeSamples.class, "Parent", "Name", Mutability.RW, false, true );
861 822 }
862 823
863 - public LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> getValueHolder(
864 - DBEncryptedAttributeSamples pPO )
824 + public LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> getValueHolder( DBEncryptedAttributeSamples pPO )
865 825 {
866 826 return pPO.mDBEncryptedAttributeSamplesSetForParent;
867 827 }
  @@ -873,41 +833,34 @@
873 833
874 834 public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
875 835 {
876 - pPO.setDBEncryptedAttributeSamplesSetForParent(
877 - to_POs( pPO, DBEncryptedAttributeSamples.class, pValue ) );
836 + pPO.setDBEncryptedAttributeSamplesSetForParent( to_POs( pPO, DBEncryptedAttributeSamples.class, pValue ) );
878 837 }
879 838
880 839 public void addValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
881 840 {
882 - pPO.addDBEncryptedAttributeSamplesSetForParent(
883 - to_PO( pPO, DBEncryptedAttributeSamples.class, pValue ) );
841 + pPO.addDBEncryptedAttributeSamplesSetForParent( to_PO( pPO, DBEncryptedAttributeSamples.class, pValue ) );
884 842 }
885 843
886 844 public void removeValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
887 845 {
888 - pPO.removeDBEncryptedAttributeSamplesSetForParent(
889 - to_PO( pPO, DBEncryptedAttributeSamples.class, pValue ) );
846 + pPO.removeDBEncryptedAttributeSamplesSetForParent( to_PO( pPO, DBEncryptedAttributeSamples.class, pValue ) );
890 847 }
891 848 }
892 849
893 - public static final AttributeAccessorSCDtoBlob<DBEncryptedAttributeSamples> CD_Attachment =
894 - new AttributeAccessor_Attachment();
850 + public static final AttributeAccessorSCDtoBlob<DBEncryptedAttributeSamples> CD_Attachment = new AttributeAccessor_Attachment();
895 851
896 - protected BlobHandler<DBEncryptedAttributeSamples> mAttachment =
897 - new BlobHandler<DBEncryptedAttributeSamples>( (DBEncryptedAttributeSamples) this, CD_Attachment );
852 + protected BlobHandler<DBEncryptedAttributeSamples> mAttachment = new BlobHandler<DBEncryptedAttributeSamples>( (DBEncryptedAttributeSamples) this, CD_Attachment );
898 853
899 854 public SizeableStreamAccessor getAttachmentAccessor()
900 855 {
901 856 return mAttachment;
902 857 }
903 858
904 - private static class AttributeAccessor_Attachment
905 - extends AttributeAccessorSCDtoBlob<DBEncryptedAttributeSamples>
859 + private static class AttributeAccessor_Attachment extends AttributeAccessorSCDtoBlob<DBEncryptedAttributeSamples>
906 860 {
907 861 public AttributeAccessor_Attachment()
908 862 {
909 - super( "Attachment", "attachment_id", false, Mutability.RW
910 - );
863 + super( "Attachment", "attachment_id", false, Mutability.RW );
911 864 }
912 865
913 866 public BlobHandler<DBEncryptedAttributeSamples> getValueHolder( DBEncryptedAttributeSamples pPO )