|
@@ -9,25 +9,21 @@ |
9 |
9 |
|
|
10 |
10 |
|
public abstract class ReportRestrictedResourceCommonGO |
11 |
11 |
|
extends Report<ReportRestrictedResourceCommon> |
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 ReportRestrictedResourceCommonMetaData.INSTANCE; |
19 |
17 |
|
} |
20 |
18 |
|
|
21 |
|
- |
protected ReportRestrictedResourceCommonGO( Transaction pTransaction ) |
22 |
|
- |
{ |
|
19 |
+ |
protected ReportRestrictedResourceCommonGO( Transaction pTransaction ) { |
23 |
20 |
|
super( ReportRestrictedResourceCommonMetaData.INSTANCE, pTransaction ); |
24 |
21 |
|
mID = getNextSequenceNumber( getClass() ); |
25 |
22 |
|
registerWithTransaction(); |
26 |
23 |
|
setDefaults(); |
27 |
24 |
|
} |
28 |
25 |
|
|
29 |
|
- |
protected ReportRestrictedResourceCommonGO( ConstructionControl pConstructionControl ) |
30 |
|
- |
{ |
|
26 |
+ |
protected ReportRestrictedResourceCommonGO( ConstructionControl pConstructionControl ) { |
31 |
27 |
|
super( ReportRestrictedResourceCommonMetaData.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<ReportRestrictedResourceCommon> |
45 |
|
- |
{ |
46 |
|
- |
public AttributeAccessor_RecordVersion() |
47 |
|
- |
{ |
|
39 |
+ |
extends AttributeAccessorSCD_RecordVersion<ReportRestrictedResourceCommon> { |
|
40 |
+ |
public AttributeAccessor_RecordVersion() { |
48 |
41 |
|
super( "RecordVersion", "RecordVersion" ); |
49 |
42 |
|
} |
50 |
43 |
|
|
51 |
44 |
|
@Override |
52 |
|
- |
protected RecordVersionHelper getRecordVersionHelper( ReportRestrictedResourceCommon pPO ) |
53 |
|
- |
{ |
|
45 |
+ |
protected RecordVersionHelper getRecordVersionHelper( ReportRestrictedResourceCommon 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<ReportRestrictedResourceCommon> |
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( ReportRestrictedResourceCommon pPO ) |
84 |
|
- |
{ |
|
71 |
+ |
public Object getValueOnPO( ReportRestrictedResourceCommon pPO ) { |
85 |
72 |
|
return pPO.getID(); |
86 |
73 |
|
} |
87 |
74 |
|
|
88 |
75 |
|
@Override |
89 |
|
- |
public void db_setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) |
90 |
|
- |
{ |
|
76 |
+ |
public void db_setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) { |
91 |
77 |
|
pPO.LLsetID( to_Long( pValue ) ); |
92 |
78 |
|
} |
93 |
79 |
|
} |
|
@@ -97,115 +83,100 @@ |
97 |
83 |
|
protected org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportRestrictedResourceCommon> mSpecificReport = // |
98 |
84 |
|
new org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportRestrictedResourceCommon>( (ReportRestrictedResourceCommon) this, CD_SpecificReport ); |
99 |
85 |
|
|
100 |
|
- |
public org.litesoft.orsup.nonpublic.PersistentObjectImpl getSpecificReport() |
101 |
|
- |
{ |
|
86 |
+ |
public org.litesoft.orsup.nonpublic.PersistentObjectImpl getSpecificReport() { |
102 |
87 |
|
return processLazyLoadAccess( mSpecificReport ); |
103 |
88 |
|
} |
104 |
89 |
|
|
105 |
|
- |
public void setSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pSpecificReport ) |
106 |
|
- |
{ |
|
90 |
+ |
public void setSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pSpecificReport ) { |
107 |
91 |
|
processLazyLoadMutation( mSpecificReport, pSpecificReport ); |
108 |
92 |
|
} |
109 |
93 |
|
|
110 |
|
- |
protected void replacingSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) |
111 |
|
- |
{ |
|
94 |
+ |
protected void replacingSpecificReport( org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, |
|
95 |
+ |
org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) { |
112 |
96 |
|
} |
113 |
97 |
|
|
114 |
98 |
|
private static class AttributeAccessor_SpecificReport |
115 |
|
- |
extends AttributeAccessorSCDtoOneCommonPaired<ReportRestrictedResourceCommon> |
116 |
|
- |
{ |
117 |
|
- |
public AttributeAccessor_SpecificReport() |
118 |
|
- |
{ |
|
99 |
+ |
extends AttributeAccessorSCDtoOneCommonPaired<ReportRestrictedResourceCommon> { |
|
100 |
+ |
public AttributeAccessor_SpecificReport() { |
119 |
101 |
|
super( "SpecificReport", "SpecificReport" ); |
120 |
102 |
|
} |
121 |
103 |
|
|
122 |
104 |
|
@Override |
123 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportRestrictedResourceCommon> getValueHolder( ReportRestrictedResourceCommon pPO ) |
124 |
|
- |
{ |
|
105 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToOneCommonPaired<ReportRestrictedResourceCommon> getValueHolder( ReportRestrictedResourceCommon pPO ) { |
125 |
106 |
|
return pPO.mSpecificReport; |
126 |
107 |
|
} |
127 |
108 |
|
|
128 |
109 |
|
@Override |
129 |
|
- |
public Object getValueOnPO( ReportRestrictedResourceCommon pPO ) |
130 |
|
- |
{ |
|
110 |
+ |
public Object getValueOnPO( ReportRestrictedResourceCommon pPO ) { |
131 |
111 |
|
return pPO.getSpecificReport(); |
132 |
112 |
|
} |
133 |
113 |
|
|
134 |
114 |
|
@Override |
135 |
|
- |
public void setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) |
136 |
|
- |
{ |
137 |
|
- |
pPO.setSpecificReport( (org.litesoft.orsup.nonpublic.PersistentObjectImpl)pValue ); |
|
115 |
+ |
public void setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) { |
|
116 |
+ |
pPO.setSpecificReport( (org.litesoft.orsup.nonpublic.PersistentObjectImpl) pValue ); |
138 |
117 |
|
} |
139 |
118 |
|
|
140 |
119 |
|
@Override |
141 |
|
- |
public void pairReplaced( ReportRestrictedResourceCommon pPO, org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) |
142 |
|
- |
{ |
|
120 |
+ |
public void pairReplaced( ReportRestrictedResourceCommon pPO, org.litesoft.orsup.nonpublic.PersistentObjectImpl pOldSpecificReport, |
|
121 |
+ |
org.litesoft.orsup.nonpublic.PersistentObjectImpl pNewSpecificReport ) { |
143 |
122 |
|
pPO.replacingSpecificReport( pOldSpecificReport, pNewSpecificReport ); |
144 |
123 |
|
} |
145 |
124 |
|
} |
146 |
125 |
|
|
147 |
|
- |
public static final AttributeAccessorSCDtoOneRegular<ReportRestrictedResourceCommon,RestrictedResource> CD_RestrictedResource = new AttributeAccessor_RestrictedResource(); |
|
126 |
+ |
public static final AttributeAccessorSCDtoOneRegular<ReportRestrictedResourceCommon, RestrictedResource> CD_RestrictedResource = |
|
127 |
+ |
new AttributeAccessor_RestrictedResource(); |
148 |
128 |
|
|
149 |
|
- |
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<ReportRestrictedResourceCommon,RestrictedResource> mRestrictedResource = // |
150 |
|
- |
new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<ReportRestrictedResourceCommon,RestrictedResource>( (ReportRestrictedResourceCommon) this, CD_RestrictedResource ); |
|
129 |
+ |
protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<ReportRestrictedResourceCommon, RestrictedResource> mRestrictedResource = // |
|
130 |
+ |
new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<ReportRestrictedResourceCommon, RestrictedResource>( (ReportRestrictedResourceCommon) this, |
|
131 |
+ |
CD_RestrictedResource ); |
151 |
132 |
|
|
152 |
|
- |
public RestrictedResource getRestrictedResource() |
153 |
|
- |
{ |
|
133 |
+ |
public RestrictedResource getRestrictedResource() { |
154 |
134 |
|
return processLazyLoadAccess( mRestrictedResource ); |
155 |
135 |
|
} |
156 |
136 |
|
|
157 |
|
- |
public void setRestrictedResource( RestrictedResource pRestrictedResource ) |
158 |
|
- |
{ |
|
137 |
+ |
public void setRestrictedResource( RestrictedResource pRestrictedResource ) { |
159 |
138 |
|
processLazyLoadMutation( mRestrictedResource, pRestrictedResource ); |
160 |
139 |
|
} |
161 |
140 |
|
|
162 |
141 |
|
private static class AttributeAccessor_RestrictedResource |
163 |
|
- |
extends AttributeAccessorSCDtoOneRegular<ReportRestrictedResourceCommon,RestrictedResource> |
164 |
|
- |
{ |
165 |
|
- |
public AttributeAccessor_RestrictedResource() |
166 |
|
- |
{ |
|
142 |
+ |
extends AttributeAccessorSCDtoOneRegular<ReportRestrictedResourceCommon, RestrictedResource> { |
|
143 |
+ |
public AttributeAccessor_RestrictedResource() { |
167 |
144 |
|
super( "RestrictedResource", "RestrictedResource_id", RestrictedResource.class, "ID", "Reports", false, true, Mutability.RW ); |
168 |
145 |
|
} |
169 |
146 |
|
|
170 |
147 |
|
@Override |
171 |
|
- |
public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<ReportRestrictedResourceCommon,RestrictedResource> getValueHolder( ReportRestrictedResourceCommon pPO ) |
172 |
|
- |
{ |
|
148 |
+ |
public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<ReportRestrictedResourceCommon, RestrictedResource> getValueHolder( |
|
149 |
+ |
ReportRestrictedResourceCommon pPO ) { |
173 |
150 |
|
return pPO.mRestrictedResource; |
174 |
151 |
|
} |
175 |
152 |
|
|
176 |
153 |
|
@Override |
177 |
|
- |
public Object getValueOnPO( ReportRestrictedResourceCommon pPO ) |
178 |
|
- |
{ |
|
154 |
+ |
public Object getValueOnPO( ReportRestrictedResourceCommon pPO ) { |
179 |
155 |
|
return pPO.getRestrictedResource(); |
180 |
156 |
|
} |
181 |
157 |
|
|
182 |
158 |
|
@Override |
183 |
|
- |
public void setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) |
184 |
|
- |
{ |
|
159 |
+ |
public void setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) { |
185 |
160 |
|
pPO.setRestrictedResource( to_PO( pPO, RestrictedResource.class, pValue ) ); |
186 |
161 |
|
} |
187 |
162 |
|
|
188 |
163 |
|
@Override |
189 |
|
- |
public Object db_getValueOnPO( ReportRestrictedResourceCommon pPO ) |
190 |
|
- |
{ |
|
164 |
+ |
public Object db_getValueOnPO( ReportRestrictedResourceCommon pPO ) { |
191 |
165 |
|
return pPO.mRestrictedResource.db_getValue(); |
192 |
166 |
|
} |
193 |
167 |
|
|
194 |
168 |
|
@Override |
195 |
|
- |
public void db_setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) |
196 |
|
- |
{ |
|
169 |
+ |
public void db_setValueOnPO( ReportRestrictedResourceCommon pPO, Object pValue ) { |
197 |
170 |
|
pPO.mRestrictedResource.db_setValue( to_Long( pValue ) ); |
198 |
171 |
|
} |
199 |
172 |
|
} |
200 |
173 |
|
|
201 |
174 |
|
static class MyMetaData |
202 |
|
- |
extends ReportMetaData<ReportRestrictedResourceCommon> |
203 |
|
- |
{ |
|
175 |
+ |
extends ReportMetaData<ReportRestrictedResourceCommon> { |
204 |
176 |
|
public static final String OBJECT_NAME = "ReportRestrictedResourceCommon"; |
205 |
177 |
|
public static final String TABLE_NAME = "ReportRestrictedResourceCommon"; |
206 |
178 |
|
|
207 |
|
- |
MyMetaData() |
208 |
|
- |
{ |
|
179 |
+ |
MyMetaData() { |
209 |
180 |
|
super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), // |
210 |
181 |
|
|
211 |
182 |
|
CD_RecordVersion, /* ....... */ |
|
@@ -222,32 +193,27 @@ |
222 |
193 |
|
} |
223 |
194 |
|
|
224 |
195 |
|
@Override |
225 |
|
- |
public Class getPOclass() |
226 |
|
- |
{ |
|
196 |
+ |
public Class getPOclass() { |
227 |
197 |
|
return ReportRestrictedResourceCommon.class; |
228 |
198 |
|
} |
229 |
199 |
|
|
230 |
200 |
|
@Override |
231 |
|
- |
public ReportRestrictedResourceCommon createNew( Transaction pTransaction ) |
232 |
|
- |
{ |
|
201 |
+ |
public ReportRestrictedResourceCommon createNew( Transaction pTransaction ) { |
233 |
202 |
|
return new ReportRestrictedResourceCommon( pTransaction ); |
234 |
203 |
|
} |
235 |
204 |
|
|
236 |
205 |
|
@Override |
237 |
|
- |
public ReportRestrictedResourceCommon createPOfromFinder() |
238 |
|
- |
{ |
|
206 |
+ |
public ReportRestrictedResourceCommon createPOfromFinder() { |
239 |
207 |
|
return new ReportRestrictedResourceCommon( CONSTRUCTION_CONTROL ); |
240 |
208 |
|
} |
241 |
209 |
|
|
242 |
210 |
|
@Override |
243 |
|
- |
public String getDisplayValueFormat() |
244 |
|
- |
{ |
|
211 |
+ |
public String getDisplayValueFormat() { |
245 |
212 |
|
return null; |
246 |
213 |
|
} |
247 |
214 |
|
|
248 |
215 |
|
@Override |
249 |
|
- |
public String getRecordVersionAttributeName() |
250 |
|
- |
{ |
|
216 |
+ |
public String getRecordVersionAttributeName() { |
251 |
217 |
|
return CD_RecordVersion.getName(); |
252 |
218 |
|
} |
253 |
219 |
|
} |