Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt
package org.litesoft.or;

import java.util.*;

import org.litesoft.bo.attributes.*;
import org.litesoft.core.simpletypes.temporal.*;
import org.litesoft.core.util.*;
import org.litesoft.orsup.base.*;
import org.litesoft.orsup.lazyeval.*;
import org.litesoft.orsup.lazyload.*;
import org.litesoft.orsup.nonpublic.*;
import org.litesoft.orsup.otherattributeaccessors.*;
import org.litesoft.orsup.selection.*;
import org.litesoft.orsup.transact.*;
import org.litesoft.util.*;

public abstract class DBEncryptedAttributeSamplesPO extends PersistentObjectImpl<DBEncryptedAttributeSamples>
{
    private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl();

    public static SimpleFromIdentifier from()
    {
        return DBEncryptedAttributeSamplesMetaData.INSTANCE;
    }

    protected DBEncryptedAttributeSamplesPO( Transaction pTransaction ) // Only used for New
    {
        super( DBEncryptedAttributeSamplesMetaData.INSTANCE, pTransaction );
        mID = getNextSequenceNumber( getClass() );
        registerWithTransaction();
    }

    protected DBEncryptedAttributeSamplesPO( ConstructionControl pConstructionControl )
    {
        super( DBEncryptedAttributeSamplesMetaData.INSTANCE, CONSTRUCTION_CONTROL, pConstructionControl );
    }

    public static final AttributeAccessorSCD CD_RecordVersion = new AttributeAccessor_RecordVersion();

    protected final RecordVersionHelper mRecordVersion = new RecordVersionHelper();

    public Long getRecordVersion()
    {
        return mRecordVersion.getRecordVersion();
    }

    private static class AttributeAccessor_RecordVersion extends AttributeAccessorSCD_RecordVersion<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_RecordVersion()
        {
            super( "RecordVersion", "RecordVersion" );
        }

        protected RecordVersionHelper getRecordVersionHelper( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mRecordVersion;
        }
    }

    public static final AttributeAccessorSCD CD_ID = new AttributeAccessor_ID();

    private Long mID = null;

    public Long getID()
    {
        return mID;
    }

    protected void LLsetID( Long pID )
    {
        verifyMutability( CD_ID, mID, pID );
        mID = pID;
    }

    private static class AttributeAccessor_ID extends AttributeAccessorSCDsimplePersistedReadOnly<DBEncryptedAttributeSamples> implements NonImportableFeature
    {
        public AttributeAccessor_ID()
        {
            super( "ID", "id", true, _Long );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getID();
        }

        public void db_setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.LLsetID( to_Long( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Name = new AttributeAccessor_Name();

    private String mName;

    public String getName()
    {
        return fromEncrypted( LLgetName() );
    }

    public String LLgetName()
    {
        return mName;
    }

    public void setName( String pName )
    {
        LLsetName( toEncrypted( pName ) );
    }

    protected void LLsetName( String pName )
    {
        verifyMutability( CD_Name, mName, pName );
        mName = pName;
    }

    private static class AttributeAccessor_Name extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Name()
        {
            super( "Name", "Name", true, _String.with( MaxLength.of( 45 ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getName();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setName( to_String( pValue ) );
        }

        public Object db_getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.LLgetName();
        }

        public void db_setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.LLsetName( (pValue != null) ? pValue.toString() : null );
        }

        public boolean isEncrypted()
        {
            return true;
        }
    }

    public static final AttributeAccessorSCD CD_Password = new AttributeAccessor_Password();

    private String mPassword;

    public String getPassword()
    {
        return mPassword;
    }

    public void setPassword( String pPassword )
    {
        verifyMutability( CD_Password, mPassword, pPassword );
        mPassword = pPassword;
    }

    private static class AttributeAccessor_Password extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Password()
        {
            super( "Password", "Password", true, _Password.with( MaxLength.of( 20 ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getPassword();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setPassword( to_String( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Status = new AttributeAccessor_Status();

    public static final AttributeSampleStatus DEFAULT_Status = AttributeSampleStatus.values()[0];

    private String mStatus = DEFAULT_Status.toString();

    public AttributeSampleStatus getStatus()
    {
        return AttributeSampleStatus.valueOf( mStatus );
    }

    public void setStatus( AttributeSampleStatus pStatus )
    {
        verifyMutability( CD_Status, mStatus, pStatus );
        mStatus = (pStatus != null) ? pStatus.toString() : DEFAULT_Status.toString();
    }

    public void setStatus( String pStatus )
    {
        setStatus( (pStatus != null) ? AttributeSampleStatus.valueOf( pStatus ) : DEFAULT_Status );
    }

    private static class AttributeAccessor_Status extends AttributeAccessorSCDenumPersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Status()
        {
            super( "Status", "Status", true, _String.with( UiHint.RadioGroup ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getStatus();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setStatus( to_String( pValue ) );
        }

        public Object[] getValidOptions()
        {
            return AttributeSampleStatus.values();
        }
    }

    public static final AttributeAccessorSCD CD_Constrained = new AttributeAccessor_Constrained();

    public static final AttributeSampleStatus DEFAULT_Constrained = AttributeSampleStatus.values()[0];

    private String mConstrained = DEFAULT_Constrained.toString();

    public String getConstrained()
    {
        return mConstrained;
    }

    public void setConstrained( AttributeSampleStatus pConstrained )
    {
        verifyMutability( CD_Constrained, mConstrained, pConstrained );
        mConstrained = (pConstrained != null) ? pConstrained.toString() : DEFAULT_Constrained.toString();
    }

    public void setConstrained( String pConstrained )
    {
        setConstrained( (pConstrained != null) ? AttributeSampleStatus.valueOf( pConstrained ) : DEFAULT_Constrained );
    }

    private static class AttributeAccessor_Constrained extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Constrained()
        {
            super( "Constrained", "Constrained", true, _String.with( MaxLength.of( 20 ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getConstrained();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setConstrained( to_String( pValue ) );
        }

        public Object[] getValidOptions()
        {
            return AttributeSampleStatus.values();
        }
    }

    public static final AttributeAccessorSCD CD_Alias = new AttributeAccessor_Alias();

    private String mAlias;

    public String getAlias()
    {
        return mAlias;
    }

    public void setAlias( String pAlias )
    {
        verifyMutability( CD_Alias, mAlias, pAlias );
        mAlias = pAlias;
    }

    private static class AttributeAccessor_Alias extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Alias()
        {
            super( "Alias", "Alias", false, _String.with( MaxLength.of( 45 ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getAlias();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setAlias( to_String( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_URL = new AttributeAccessor_URL();

    private String mURL;

    public String getURL()
    {
        return mURL;
    }

    public void setURL( String pURL )
    {
        verifyMutability( CD_URL, mURL, pURL );
        mURL = pURL;
    }

    private static class AttributeAccessor_URL extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_URL()
        {
            super( "URL", "URL", false, _String.with( MaxLength.of( 255 ) )   //
            );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getURL();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setURL( to_String( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Description = new AttributeAccessor_Description();

    private String mDescription;

    public String getDescription()
    {
        return mDescription;
    }

    public void setDescription( String pDescription )
    {
        verifyMutability( CD_Description, mDescription, pDescription );
        mDescription = pDescription;
    }

    private static class AttributeAccessor_Description extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Description()
        {
            super( "Description", "Description", false, _Text );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getDescription();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setDescription( to_String( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Number = new AttributeAccessor_Number();

    private String mNumber;

    public String getNumber()
    {
        return mNumber;
    }

    public void setNumber( String pNumber )
    {
        verifyMutability( CD_Number, mNumber, pNumber );
        mNumber = pNumber;
    }

    private static class AttributeAccessor_Number extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Number()
        {
            super( "Number", "Number", true, _String.with( MaxLength.of( 25 ), //
                                                           UiHint.RightAligned ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getNumber();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setNumber( to_String( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Shipped = new AttributeAccessor_Shipped();

    private Boolean mShipped;

    public Boolean getShipped()
    {
        return mShipped;
    }

    public void setShipped( Boolean pShipped )
    {
        verifyMutability( CD_Shipped, mShipped, pShipped );
        mShipped = pShipped;
    }

    private static class AttributeAccessor_Shipped extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Shipped()
        {
            super( "Shipped", "Shipped", false, _Boolean.with( BooleanDisplayOptions.of( "Shipped/Processing" ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getShipped();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setShipped( to_boolean( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Paid = new AttributeAccessor_Paid();

    private boolean mPaid;

    public boolean getPaid()
    {
        return mPaid;
    }

    public void setPaid( boolean pPaid )
    {
        verifyMutability( CD_Paid, mPaid, pPaid );
        mPaid = pPaid;
    }

    private static class AttributeAccessor_Paid extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Paid()
        {
            super( "Paid", "Paid", false, _SimpleTimestamp );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getPaid();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setPaid( to_boolean( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Member = new AttributeAccessor_Member();

    private Boolean mMember = false;

    public Boolean getMember()
    {
        return mMember;
    }

    public void setMember( Boolean pMember )
    {
        verifyMutability( CD_Member, mMember, pMember );
        mMember = (pMember != null) && pMember;
    }

    private static class AttributeAccessor_Member extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Member()
        {
            super( "Member", "Member", true, _Boolean );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getMember();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setMember( to_Boolean( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_TimeScheduled = new AttributeAccessor_TimeScheduled();

    final LazyEvalSimpleTime mTimeScheduled = new LazyEvalSimpleTime();

    public SimpleTime getTimeScheduled()
    {
        return mTimeScheduled.getSimpleTime();
    }

    public void setTimeScheduled( SimpleTime pTimeScheduled )
    {
        verifyMutability( CD_TimeScheduled, mTimeScheduled.getSimpleTime(), pTimeScheduled );
        mTimeScheduled.setSimpleTime( pTimeScheduled );
    }

    private static class AttributeAccessor_TimeScheduled extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_TimeScheduled()
        {
            super( "TimeScheduled", "TimeScheduled", false, _SimpleTime );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getTimeScheduled();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setTimeScheduled( to_SimpleTime( TimeRes.ToMIN, pValue ) );
        }

        @Override
        public Object db_getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mTimeScheduled.get_java_sql_Time();
        }

        @Override
        public void db_setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.mTimeScheduled.set_java_sql_Time( to_SqlTime( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_DateOrdered = new AttributeAccessor_DateOrdered();

    final LazyEvalCalendarYMD mDateOrdered = new LazyEvalCalendarYMD();

    public CalendarYMD getDateOrdered()
    {
        return mDateOrdered.getCalendarYMD();
    }

    public void setDateOrdered( CalendarYMD pDateOrdered )
    {
        verifyMutability( CD_DateOrdered, mDateOrdered.getCalendarYMD(), pDateOrdered );
        mDateOrdered.setCalendarYMD( pDateOrdered );
    }

    private static class AttributeAccessor_DateOrdered extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_DateOrdered()
        {
            super( "DateOrdered", "DateOrdered", false, _CalendarYMD );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getDateOrdered();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setDateOrdered( to_CalendarYMD( pValue ) );
        }

        @Override
        public Object db_getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mDateOrdered.getPersistForm();
        }

        @Override
        public void db_setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.mDateOrdered.setPersistForm( to_String( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_OrderProcessed = new AttributeAccessor_OrderProcessed();

    final LazyEvalSimpleTimestamp mOrderProcessed = new LazyEvalSimpleTimestamp();

    public SimpleTimestamp getOrderProcessed()
    {
        return mOrderProcessed.getSimpleTimestamp();
    }

    public void setOrderProcessed( SimpleTimestamp pOrderProcessed )
    {
        verifyMutability( CD_OrderProcessed, mOrderProcessed.getSimpleTimestamp(), pOrderProcessed );
        mOrderProcessed.setSimpleTimestamp( pOrderProcessed );
    }

    private static class AttributeAccessor_OrderProcessed extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_OrderProcessed()
        {
            super( "OrderProcessed", "OrderProcessed", false, _SimpleTimestamp );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getOrderProcessed();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setOrderProcessed( to_SimpleTimestamp( TimeRes.ToMSEC, pValue ) );
        }

        @Override
        public Object db_getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mOrderProcessed.get_java_sql_Timestamp();
        }

        @Override
        public void db_setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.mOrderProcessed.set_java_sql_Timestamp( to_Timestamp( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_Friends = new AttributeAccessor_Friends();

    private Long mFriends = null;

    public Long getFriends()
    {
        return mFriends;
    }

    public void setFriends( Long pFriends )
    {
        verifyMutability( CD_Friends, mFriends, pFriends );
        mFriends = pFriends;
    }

    private static class AttributeAccessor_Friends extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Friends()
        {
            super( "Friends", "Friends", false, _Long.with( MaxLength.of( 8 ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getFriends();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setFriends( to_Long( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_AcreageFloat = new AttributeAccessor_AcreageFloat();

    private Float mAcreageFloat = null;

    public Float getAcreageFloat()
    {
        return mAcreageFloat;
    }

    public void setAcreageFloat( Float pAcreageFloat )
    {
        verifyMutability( CD_AcreageFloat, mAcreageFloat, pAcreageFloat );
        mAcreageFloat = pAcreageFloat;
    }

    private static class AttributeAccessor_AcreageFloat extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_AcreageFloat()
        {
            super( "AcreageFloat", "AcreageFloat", true, _Float.with( MaxLength.of( 16 ), //
                                                                      FormatControl.of( "#.#" ), //
                                                                      MinDisplayDecimalPlaces.of( 2 ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getAcreageFloat();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setAcreageFloat( to_Float( pValue ) );
        }
    }

    public static final AttributeAccessorSCD CD_AcreageDouble = new AttributeAccessor_AcreageDouble();

    private Double mAcreageDouble = null;

    public Double getAcreageDouble()
    {
        return mAcreageDouble;
    }

    public void setAcreageDouble( Double pAcreageDouble )
    {
        verifyMutability( CD_AcreageDouble, mAcreageDouble, pAcreageDouble );
        mAcreageDouble = pAcreageDouble;
    }

    private static class AttributeAccessor_AcreageDouble extends AttributeAccessorSCDsimplePersistedRegular<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_AcreageDouble()
        {
            super( "AcreageDouble", "AcreageDouble", false, _Double.with( MaxLength.of( 16 ), //
                                                                          FormatControl.of( "#.#" ), //
                                                                          MinDisplayDecimalPlaces.of( 2 ) ) );
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getAcreageDouble();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setAcreageDouble( to_Double( pValue ) );
        }
    }

    public static final AttributeAccessorSCDtoOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> CD_Parent = new AttributeAccessor_Parent();

    protected LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> mParent = new LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>( (DBEncryptedAttributeSamples) this, CD_Parent ); // Note: DBEncryptedAttributeSamples is the related TO object

    public DBEncryptedAttributeSamples getParent()
    {
        return processLazyLoadAccess( mParent );
    }

    public void setParent( DBEncryptedAttributeSamples pParent )
    {
        processLazyLoadMutation( mParent, pParent );
    }

    private static class AttributeAccessor_Parent extends AttributeAccessorSCDtoOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Parent()
        {
            super( "Parent", "parent_id", DBEncryptedAttributeSamples.class, "ID", "DBEncryptedAttributeSamplesSetForParent", false, false, Mutability.RW );
        }

        public LazyLoadToOneRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> getValueHolder( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mParent;
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getParent();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setParent( to_PO( pPO, DBEncryptedAttributeSamples.class, pValue ) );
        }

        public Object db_getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mParent.db_getValue();
        }

        public void db_setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.mParent.db_setValue( to_Long( pValue ) );
        }
    }

    public static final AttributeAccessorSCDtoManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> CD_DBEncryptedAttributeSamplesSetForParent = new AttributeAccessor_DBEncryptedAttributeSamplesSetForParent();

    protected LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> mDBEncryptedAttributeSamplesSetForParent = new LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>( (DBEncryptedAttributeSamples) this, CD_DBEncryptedAttributeSamplesSetForParent ); // Note: DBEncryptedAttributeSamples is the related TO object

    public List<DBEncryptedAttributeSamples> getDBEncryptedAttributeSamplesSetForParent()
    {
        return processLazyLoadAccess( mDBEncryptedAttributeSamplesSetForParent );
    }

    public void setDBEncryptedAttributeSamplesSetForParent( List<DBEncryptedAttributeSamples> pDBEncryptedAttributeSamplesSetForParent )
    {
        processLazyLoadMutation( mDBEncryptedAttributeSamplesSetForParent, pDBEncryptedAttributeSamplesSetForParent );
    }

    public void addDBEncryptedAttributeSamplesSetForParent( DBEncryptedAttributeSamples pDBEncryptedAttributeSamplesSetForParent )
    {
        processLazyLoadMutationAdd( mDBEncryptedAttributeSamplesSetForParent, pDBEncryptedAttributeSamplesSetForParent );
    }

    public void removeDBEncryptedAttributeSamplesSetForParent( DBEncryptedAttributeSamples pDBEncryptedAttributeSamplesSetForParent )
    {
        processLazyLoadMutationRemove( mDBEncryptedAttributeSamplesSetForParent, pDBEncryptedAttributeSamplesSetForParent );
    }

    private static class AttributeAccessor_DBEncryptedAttributeSamplesSetForParent extends AttributeAccessorSCDtoManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_DBEncryptedAttributeSamplesSetForParent()
        {
            super( "DBEncryptedAttributeSamplesSetForParent", "ID", DBEncryptedAttributeSamples.class, "Parent", "Name", Mutability.RW, false, true );
        }

        public LazyLoadToManyRegular<DBEncryptedAttributeSamples, DBEncryptedAttributeSamples> getValueHolder( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mDBEncryptedAttributeSamplesSetForParent;
        }

        public Object getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.getDBEncryptedAttributeSamplesSetForParent();
        }

        public void setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.setDBEncryptedAttributeSamplesSetForParent( to_POs( pPO, DBEncryptedAttributeSamples.class, pValue ) );
        }

        public void addValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.addDBEncryptedAttributeSamplesSetForParent( to_PO( pPO, DBEncryptedAttributeSamples.class, pValue ) );
        }

        public void removeValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.removeDBEncryptedAttributeSamplesSetForParent( to_PO( pPO, DBEncryptedAttributeSamples.class, pValue ) );
        }
    }

    public static final AttributeAccessorSCDtoBlob<DBEncryptedAttributeSamples> CD_Attachment = new AttributeAccessor_Attachment();

    protected BlobHandler<DBEncryptedAttributeSamples> mAttachment = new BlobHandler<DBEncryptedAttributeSamples>( (DBEncryptedAttributeSamples) this, CD_Attachment );

    public SizeableStreamAccessor getAttachmentAccessor()
    {
        return mAttachment;
    }

    private static class AttributeAccessor_Attachment extends AttributeAccessorSCDtoBlob<DBEncryptedAttributeSamples>
    {
        public AttributeAccessor_Attachment()
        {
            super( "Attachment", "attachment_id", false, Mutability.RW );
        }

        public BlobHandler<DBEncryptedAttributeSamples> getValueHolder( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mAttachment;
        }

        public Object db_getValueOnPO( DBEncryptedAttributeSamples pPO )
        {
            return pPO.mAttachment.db_getValue();
        }

        public void db_setValueOnPO( DBEncryptedAttributeSamples pPO, Object pValue )
        {
            pPO.mAttachment.db_setValue( to_Long( pValue ) );
        }
    }

    static class MyMetaData extends PersistentObjectImplMetaData<DBEncryptedAttributeSamples>
    {
        public static final String OBJECT_NAME = "DBEncryptedAttributeSamples";
        public static final String TABLE_NAME = "DBEncryptedAttributeSamples";

        MyMetaData()
        {
            super( MyMetaData.OBJECT_NAME, MyMetaData.TABLE_NAME, //
                   new AttributeAccessorKeySet( CD_ID ), //
                   CD_ID, //

                   CD_AcreageDouble, //
                   CD_AcreageFloat, //
                   CD_Alias, //
                   CD_Attachment, //
                   CD_Constrained, //
                   CD_DateOrdered, //
                   CD_Description, //
                   CD_Friends, //
                   CD_Member, //
                   CD_Name, //
                   CD_Number, //
                   CD_OrderProcessed, //
                   CD_Paid, //
                   CD_Password, //
                   CD_RecordVersion, //
                   CD_Shipped, //
                   CD_Status, //
                   CD_TimeScheduled, //
                   CD_URL, //

                   CD_Parent, //

                   CD_DBEncryptedAttributeSamplesSetForParent );
            setIndexes( new Index( "DBEncryptedAttributeSamplesIDX1", null, true, CD_Name ) );
        }

        public Class getPOclass()
        {
            return DBEncryptedAttributeSamples.class;
        }

        public DBEncryptedAttributeSamples createNew( Transaction pTransaction )
        {
            return new DBEncryptedAttributeSamples( pTransaction );
        }

        public DBEncryptedAttributeSamples createPOfromFinder()
        {
            return new DBEncryptedAttributeSamples( CONSTRUCTION_CONTROL );
        }

        public String getRecordVersionAttributeName()
        {
            return CD_RecordVersion.getName();
        }

        public String getDisplayValueFormat()
        {
            return "${Name}";
        }
    }
}

Commits for litesoft/trunk/Java/core/Server/tests/org/litesoft/or/DBEncryptedAttributeSamplesPO.java

Diff revisions: vs.
Revision Author Commited Message
863 Diff Diff GeorgeS picture GeorgeS Fri 16 Nov, 2012 22:14:29 +0000
860 Diff Diff GeorgeS picture GeorgeS Mon 05 Nov, 2012 01:39:02 +0000
853 Diff Diff GeorgeS picture GeorgeS Sun 04 Nov, 2012 15:18:21 +0000
151 Diff Diff GeorgeS picture GeorgeS Thu 17 Mar, 2011 04:16:22 +0000
49 Diff Diff GeorgeS picture GeorgeS Mon 12 Apr, 2010 02:59:10 +0000

License Text

21 Diff Diff GeorgeS picture GeorgeS Tue 23 Feb, 2010 21:11:25 +0000
2 GeorgeS picture GeorgeS Sun 07 Feb, 2010 12:50:58 +0000