|
@@ -9,25 +9,21 @@ |
9 |
9 |
|
|
10 |
10 |
|
public abstract class ReportAllRestrictedResourceCommonGO |
11 |
11 |
|
extends Report<ReportAllRestrictedResourceCommon> |
12 |
|
- |
implements HasAttributes |
13 |
|
- |
{ |
|
12 |
+ |
implements HasAttributes { |
14 |
13 |
|
private static final ConstructionControl CONSTRUCTION_CONTROL = new ConstructionControl(); |
15 |
14 |
|
|
16 |
|
- |
public static SimpleFromIdentifier from() |
17 |
|
- |
{ |
|
15 |
+ |
public static SimpleFromIdentifier from() { |
18 |
16 |
|
return ReportAllRestrictedResourceCommonMetaData.INSTANCE; |
19 |
17 |
|
} |
20 |
18 |
|
|
21 |
|
- |
protected ReportAllRestrictedResourceCommonGO( Transaction pTransaction ) |
22 |
|
- |
{ |
|
19 |
+ |
protected ReportAllRestrictedResourceCommonGO( Transaction pTransaction ) { |
23 |
20 |
|
super( ReportAllRestrictedResourceCommonMetaData.INSTANCE, pTransaction ); |
24 |
21 |
|
mID = getNextSequenceNumber( getClass() ); |
25 |
22 |
|
registerWithTransaction(); |
26 |
23 |
|
setDefaults(); |
27 |
24 |
|
} |
28 |
25 |
|
|
29 |
|
- |
protected ReportAllRestrictedResourceCommonGO( ConstructionControl pConstructionControl ) |
30 |
|
- |
{ |
|
26 |
+ |
protected ReportAllRestrictedResourceCommonGO( ConstructionControl pConstructionControl ) { |
31 |
27 |
|
super( ReportAllRestrictedResourceCommonMetaData.INSTANCE, CONSTRUCTION_CONTROL, pConstructionControl ); |
32 |
28 |
|
} |
33 |
29 |
|
|
|
@@ -35,22 +31,18 @@ |
35 |
31 |
|
|
36 |
32 |
|
protected final RecordVersionHelper mRecordVersion = new RecordVersionHelper(); |
37 |
33 |
|
|
38 |
|
- |
public Long getRecordVersion() |
39 |
|
- |
{ |
|
34 |
+ |
public Long getRecordVersion() { |
40 |
35 |
|
return mRecordVersion.getRecordVersion(); |
41 |
36 |
|
} |
42 |
37 |
|
|
43 |
38 |
|
private static class AttributeAccessor_RecordVersion |
44 |
|
- |
extends AttributeAccessorSCD_RecordVersion<ReportAllRestrictedResourceCommon> |
45 |
|
- |
{ |
46 |
|
- |
public AttributeAccessor_RecordVersion() |
47 |
|
- |
{ |
|
39 |
+ |
extends AttributeAccessorSCD_RecordVersion<ReportAllRestrictedResourceCommon> { |
|
40 |
+ |
public AttributeAccessor_RecordVersion() { |
48 |
41 |
|
super( "RecordVersion", "RecordVersion" ); |
49 |
42 |
|
} |
50 |
43 |
|
|
51 |
44 |
|
@Override |
52 |
|
- |
protected RecordVersionHelper getRecordVersionHelper( ReportAllRestrictedResourceCommon pPO ) |
53 |
|
- |
{ |
|
45 |
+ |
protected RecordVersionHelper getRecordVersionHelper( ReportAllRestrictedResourceCommon pPO ) { |
54 |
46 |
|
return pPO.mRecordVersion; |
55 |
47 |
|
} |
56 |
48 |
|
} |
|
@@ -59,35 +51,29 @@ |
59 |
51 |
|
|
60 |
52 |
|
private Long mID; |
61 |
53 |
|
|
62 |
|
- |
public Long getID() |
63 |
|
- |
{ |
|
54 |
+ |
public Long getID() { |
64 |
55 |
|
return mID; |
65 |
56 |
|
} |
66 |
57 |
|
|
67 |
|
- |
protected void LLsetID( Long pID ) |
68 |
|
- |
{ |
|
58 |
+ |
protected void LLsetID( Long pID ) { |
69 |
59 |
|
verifyMutability( CD_ID, mID, pID ); |
70 |
60 |
|
mID = pID; |
71 |
61 |
|
} |
72 |
62 |
|
|
73 |
63 |
|
private static class AttributeAccessor_ID |
74 |
64 |
|
extends AttributeAccessorSCDsimplePersistedSysSetOnly<ReportAllRestrictedResourceCommon> |
75 |
|
- |
implements NonImportableFeature |
76 |
|
- |
{ |
77 |
|
- |
public AttributeAccessor_ID() |
78 |
|
- |
{ |
|
65 |
+ |
implements NonImportableFeature { |
|
66 |
+ |
public AttributeAccessor_ID() { |
79 |
67 |
|
super( "ID", "ID", false, _Long.AddOnly() ); |
80 |
68 |
|
} |
81 |
69 |
|
|
82 |
70 |
|
@Override |
83 |
|
- |
public Object getValueOnPO( ReportAllRestrictedResourceCommon pPO ) |
84 |
|
- |
{ |
|
71 |
+ |
public Object getValueOnPO( ReportAllRestrictedResourceCommon pPO ) { |
85 |
72 |
|
return pPO.getID(); |
86 |
73 |
|
} |
87 |
74 |
|
|
88 |
75 |
|
@Override |
89 |
|
- |
public void db_setValueOnPO( ReportAllRestrictedResourceCommon pPO, Object pValue ) |
90 |
|
- |
{ |
|
76 |
+ |
public void db_setValueOnPO( ReportAllRestrictedResourceCommon pPO, Object pValue ) { |
91 |
77 |
|
pPO.LLsetID( to_Long( pValue ) ); |
92 |
78 |
|
} |
93 |
79 |
|
} |
|
@@ -95,63 +81,55 @@ |
95 |
81 |
|
public static final AttributeAccessorSCDtoOneCommonPaired<ReportAllRestrictedResourceCommon> CD_SpecificReport = new AttributeAccessor_SpecificReport(); |
96 |
82 |
|
|
97 |
83 |
|
protected org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon> mSpecificReport = // |
98 |
|
- |
new org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon>( (ReportAllRestrictedResourceCommon) this, CD_SpecificReport ); |
|
84 |
+ |
new org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon>( (ReportAllRestrictedResourceCommon) this, |
|
85 |
+ |
CD_SpecificReport ); |
99 |
86 |
|
|
100 |
|
- |
public org.litesoft.orsup.nonpublic.PersistentObjectImpl getSpecificReport() |
101 |
|
- |
{ |
|
87 |
+ |
public org.litesoft.orsup.nonpublic.PersistentObjectImpl getSpecificReport() { |
102 |
88 |
|
return processLazyLoadAccess( mSpecificReport ); |
103 |
89 |
|
} |
104 |
90 |
|
|
105 |
|
- |
public void setSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pSpecificReport ) |
106 |
|
- |
{ |
|
91 |
+ |
public void setSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pSpecificReport ) { |
107 |
92 |
|
processLazyLoadMutation( mSpecificReport, pSpecificReport ); |
108 |
93 |
|
} |
109 |
94 |
|
|
110 |
|
- |
protected void replacingSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) |
111 |
|
- |
{ |
|
95 |
+ |
protected void replacingSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, |
|
96 |
+ |
org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) { |
112 |
97 |
|
} |
113 |
98 |
|
|
114 |
99 |
|
private static class AttributeAccessor_SpecificReport |
115 |
|
- |
extends AttributeAccessorSCDtoOneCommonPaired<ReportAllRestrictedResourceCommon> |
116 |
|
- |
{ |
117 |
|
- |
public AttributeAccessor_SpecificReport() |
118 |
|
- |
{ |
|
100 |
+ |
extends AttributeAccessorSCDtoOneCommonPaired<ReportAllRestrictedResourceCommon> { |
|
101 |
+ |
public AttributeAccessor_SpecificReport() { |
119 |
102 |
|
super( "SpecificReport", "SpecificReport" ); |
120 |
103 |
|
} |
121 |
104 |
|
|
122 |
105 |
|
@Override |
123 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon> getValueHolder( ReportAllRestrictedResourceCommon pPO ) |
124 |
|
- |
{ |
|
106 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportAllRestrictedResourceCommon> getValueHolder( ReportAllRestrictedResourceCommon pPO ) { |
125 |
107 |
|
return pPO.mSpecificReport; |
126 |
108 |
|
} |
127 |
109 |
|
|
128 |
110 |
|
@Override |
129 |
|
- |
public Object getValueOnPO( ReportAllRestrictedResourceCommon pPO ) |
130 |
|
- |
{ |
|
111 |
+ |
public Object getValueOnPO( ReportAllRestrictedResourceCommon pPO ) { |
131 |
112 |
|
return pPO.getSpecificReport(); |
132 |
113 |
|
} |
133 |
114 |
|
|
134 |
115 |
|
@Override |
135 |
|
- |
public void setValueOnPO( ReportAllRestrictedResourceCommon pPO, Object pValue ) |
136 |
|
- |
{ |
137 |
|
- |
pPO.setSpecificReport( (org.litesoft.orsup.nonpublic.PersistentObjectImpl)pValue ); |
|
116 |
+ |
public void setValueOnPO( ReportAllRestrictedResourceCommon pPO, Object pValue ) { |
|
117 |
+ |
pPO.setSpecificReport( (org.litesoft.orsup.nonpublic.PersistentObjectImpl) pValue ); |
138 |
118 |
|
} |
139 |
119 |
|
|
140 |
120 |
|
@Override |
141 |
|
- |
public void pairReplaced( ReportAllRestrictedResourceCommon pPO, org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) |
142 |
|
- |
{ |
|
121 |
+ |
public void pairReplaced( ReportAllRestrictedResourceCommon pPO, org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, |
|
122 |
+ |
org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) { |
143 |
123 |
|
pPO.replacingSpecificReport( pOldSpecificReport, pNewSpecificReport ); |
144 |
124 |
|
} |
145 |
125 |
|
} |
146 |
126 |
|
|
147 |
127 |
|
static class MyMetaData |
148 |
|
- |
extends ReportMetaData<ReportAllRestrictedResourceCommon> |
149 |
|
- |
{ |
|
128 |
+ |
extends ReportMetaData<ReportAllRestrictedResourceCommon> { |
150 |
129 |
|
public static final String OBJECT_NAME = "ReportAllRestrictedResourceCommon"; |
151 |
130 |
|
public static final String TABLE_NAME = "ReportAllRestrictedResourceCommon"; |
152 |
131 |
|
|
153 |
|
- |
MyMetaData() |
154 |
|
- |
{ |
|
132 |
+ |
MyMetaData() { |
155 |
133 |
|
super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), // |
156 |
134 |
|
|
157 |
135 |
|
CD_RecordVersion, /* ... */ |
|
@@ -164,32 +142,27 @@ |
164 |
142 |
|
} |
165 |
143 |
|
|
166 |
144 |
|
@Override |
167 |
|
- |
public Class getPOclass() |
168 |
|
- |
{ |
|
145 |
+ |
public Class getPOclass() { |
169 |
146 |
|
return ReportAllRestrictedResourceCommon.class; |
170 |
147 |
|
} |
171 |
148 |
|
|
172 |
149 |
|
@Override |
173 |
|
- |
public ReportAllRestrictedResourceCommon createNew( Transaction pTransaction ) |
174 |
|
- |
{ |
|
150 |
+ |
public ReportAllRestrictedResourceCommon createNew( Transaction pTransaction ) { |
175 |
151 |
|
return new ReportAllRestrictedResourceCommon( pTransaction ); |
176 |
152 |
|
} |
177 |
153 |
|
|
178 |
154 |
|
@Override |
179 |
|
- |
public ReportAllRestrictedResourceCommon createPOfromFinder() |
180 |
|
- |
{ |
|
155 |
+ |
public ReportAllRestrictedResourceCommon createPOfromFinder() { |
181 |
156 |
|
return new ReportAllRestrictedResourceCommon( CONSTRUCTION_CONTROL ); |
182 |
157 |
|
} |
183 |
158 |
|
|
184 |
159 |
|
@Override |
185 |
|
- |
public String getDisplayValueFormat() |
186 |
|
- |
{ |
|
160 |
+ |
public String getDisplayValueFormat() { |
187 |
161 |
|
return null; |
188 |
162 |
|
} |
189 |
163 |
|
|
190 |
164 |
|
@Override |
191 |
|
- |
public String getRecordVersionAttributeName() |
192 |
|
- |
{ |
|
165 |
+ |
public String getRecordVersionAttributeName() { |
193 |
166 |
|
return CD_RecordVersion.getName(); |
194 |
167 |
|
} |
195 |
168 |
|
} |