Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/DATT/src/org/litesoft/datt/server/pos/TaskTemplateGO.java

Diff revisions: vs.
  @@ -9,25 +9,21 @@
9 9
10 10 public abstract class TaskTemplateGO
11 11 extends org.litesoft.orsup.nonpublic.PersistentObjectImpl<TaskTemplate>
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 TaskTemplateMetaData.INSTANCE;
19 17 }
20 18
21 - protected TaskTemplateGO( Transaction pTransaction )
22 - {
19 + protected TaskTemplateGO( Transaction pTransaction ) {
23 20 super( TaskTemplateMetaData.INSTANCE, pTransaction );
24 21 mID = getNextSequenceNumber( getClass() );
25 22 registerWithTransaction();
26 23 setDefaults();
27 24 }
28 25
29 - protected TaskTemplateGO( ConstructionControl pConstructionControl )
30 - {
26 + protected TaskTemplateGO( ConstructionControl pConstructionControl ) {
31 27 super( TaskTemplateMetaData.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<TaskTemplate>
45 - {
46 - public AttributeAccessor_RecordVersion()
47 - {
39 + extends AttributeAccessorSCD_RecordVersion<TaskTemplate> {
40 + public AttributeAccessor_RecordVersion() {
48 41 super( "RecordVersion", "RecordVersion" );
49 42 }
50 43
51 44 @Override
52 - protected RecordVersionHelper getRecordVersionHelper( TaskTemplate pPO )
53 - {
45 + protected RecordVersionHelper getRecordVersionHelper( TaskTemplate 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<TaskTemplate>
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( TaskTemplate pPO )
84 - {
71 + public Object getValueOnPO( TaskTemplate pPO ) {
85 72 return pPO.getID();
86 73 }
87 74
88 75 @Override
89 - public void db_setValueOnPO( TaskTemplate pPO, Object pValue )
90 - {
76 + public void db_setValueOnPO( TaskTemplate pPO, Object pValue ) {
91 77 pPO.LLsetID( to_Long( pValue ) );
92 78 }
93 79 }
  @@ -96,35 +82,29 @@
96 82
97 83 private String mDescripiton;
98 84
99 - public String getDescripiton()
100 - {
85 + public String getDescripiton() {
101 86 return mDescripiton;
102 87 }
103 88
104 - public void setDescripiton( String pDescripiton )
105 - {
89 + public void setDescripiton( String pDescripiton ) {
106 90 verifyMutability( CD_Descripiton, mDescripiton, pDescripiton );
107 91 mDescripiton = pDescripiton;
108 92 }
109 93
110 94 private static class AttributeAccessor_Descripiton
111 - extends AttributeAccessorSCDsimplePersistedRegular<TaskTemplate>
112 - {
113 - public AttributeAccessor_Descripiton()
114 - {
95 + extends AttributeAccessorSCDsimplePersistedRegular<TaskTemplate> {
96 + public AttributeAccessor_Descripiton() {
115 97 super( "Descripiton", "Descripiton", false, _Text.with( DisplayWidthInitial.of( 40 ), //
116 98 DisplayHeightInitial.of( 4 ) ) );
117 99 }
118 100
119 101 @Override
120 - public Object getValueOnPO( TaskTemplate pPO )
121 - {
102 + public Object getValueOnPO( TaskTemplate pPO ) {
122 103 return pPO.getDescripiton();
123 104 }
124 105
125 106 @Override
126 - public void setValueOnPO( TaskTemplate pPO, Object pValue )
127 - {
107 + public void setValueOnPO( TaskTemplate pPO, Object pValue ) {
128 108 pPO.setDescripiton( to_String( pValue ) );
129 109 }
130 110 }
  @@ -133,34 +113,28 @@
133 113
134 114 private Float mDisplayOrder;
135 115
136 - public Float getDisplayOrder()
137 - {
116 + public Float getDisplayOrder() {
138 117 return mDisplayOrder;
139 118 }
140 119
141 - public void setDisplayOrder( Float pDisplayOrder )
142 - {
120 + public void setDisplayOrder( Float pDisplayOrder ) {
143 121 verifyMutability( CD_DisplayOrder, mDisplayOrder, pDisplayOrder );
144 122 mDisplayOrder = pDisplayOrder;
145 123 }
146 124
147 125 private static class AttributeAccessor_DisplayOrder
148 - extends AttributeAccessorSCDsimplePersistedRegular<TaskTemplate>
149 - {
150 - public AttributeAccessor_DisplayOrder()
151 - {
126 + extends AttributeAccessorSCDsimplePersistedRegular<TaskTemplate> {
127 + public AttributeAccessor_DisplayOrder() {
152 128 super( "DisplayOrder", "DisplayOrder", false, _Float.with( DisplayLength.of( 9 ) ) );
153 129 }
154 130
155 131 @Override
156 - public Object getValueOnPO( TaskTemplate pPO )
157 - {
132 + public Object getValueOnPO( TaskTemplate pPO ) {
158 133 return pPO.getDisplayOrder();
159 134 }
160 135
161 136 @Override
162 - public void setValueOnPO( TaskTemplate pPO, Object pValue )
163 - {
137 + public void setValueOnPO( TaskTemplate pPO, Object pValue ) {
164 138 pPO.setDisplayOrder( to_Float( pValue ) );
165 139 }
166 140 }
  @@ -169,101 +143,84 @@
169 143
170 144 private String mName;
171 145
172 - public String getName()
173 - {
146 + public String getName() {
174 147 return mName;
175 148 }
176 149
177 - public void setName( String pName )
178 - {
150 + public void setName( String pName ) {
179 151 verifyMutability( CD_Name, mName, pName );
180 152 mName = pName;
181 153 }
182 154
183 155 private static class AttributeAccessor_Name
184 - extends AttributeAccessorSCDsimplePersistedRegular<TaskTemplate>
185 - {
186 - public AttributeAccessor_Name()
187 - {
156 + extends AttributeAccessorSCDsimplePersistedRegular<TaskTemplate> {
157 + public AttributeAccessor_Name() {
188 158 super( "Name", "Name", true, _String.with( MaxLength.of( 40 ), //
189 159 DisplayLength.of( 20 ) ) );
190 160 }
191 161
192 162 @Override
193 - public Object getValueOnPO( TaskTemplate pPO )
194 - {
163 + public Object getValueOnPO( TaskTemplate pPO ) {
195 164 return pPO.getName();
196 165 }
197 166
198 167 @Override
199 - public void setValueOnPO( TaskTemplate pPO, Object pValue )
200 - {
168 + public void setValueOnPO( TaskTemplate pPO, Object pValue ) {
201 169 pPO.setName( to_String( pValue ) );
202 170 }
203 171 }
204 172
205 - public static final AttributeAccessorSCDtoOneRegular<TaskTemplate,StoryTemplate> CD_StoryTemplate = new AttributeAccessor_StoryTemplate();
173 + public static final AttributeAccessorSCDtoOneRegular<TaskTemplate, StoryTemplate> CD_StoryTemplate = new AttributeAccessor_StoryTemplate();
206 174
207 - protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate,StoryTemplate> mStoryTemplate = //
208 - new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate,StoryTemplate>( (TaskTemplate) this, CD_StoryTemplate );
175 + protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate, StoryTemplate> mStoryTemplate = //
176 + new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate, StoryTemplate>( (TaskTemplate) this, CD_StoryTemplate );
209 177
210 - public StoryTemplate getStoryTemplate()
211 - {
178 + public StoryTemplate getStoryTemplate() {
212 179 return processLazyLoadAccess( mStoryTemplate );
213 180 }
214 181
215 - public void setStoryTemplate( StoryTemplate pStoryTemplate )
216 - {
182 + public void setStoryTemplate( StoryTemplate pStoryTemplate ) {
217 183 processLazyLoadMutation( mStoryTemplate, pStoryTemplate );
218 184 }
219 185
220 186 private static class AttributeAccessor_StoryTemplate
221 - extends AttributeAccessorSCDtoOneRegular<TaskTemplate,StoryTemplate>
222 - {
223 - public AttributeAccessor_StoryTemplate()
224 - {
187 + extends AttributeAccessorSCDtoOneRegular<TaskTemplate, StoryTemplate> {
188 + public AttributeAccessor_StoryTemplate() {
225 189 super( "StoryTemplate", "StoryTemplate_id", StoryTemplate.class, "ID", "TaskTemplates", false, false, Mutability.RW );
226 190 }
227 191
228 192 @Override
229 - public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate,StoryTemplate> getValueHolder( TaskTemplate pPO )
230 - {
193 + public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate, StoryTemplate> getValueHolder( TaskTemplate pPO ) {
231 194 return pPO.mStoryTemplate;
232 195 }
233 196
234 197 @Override
235 - public Object getValueOnPO( TaskTemplate pPO )
236 - {
198 + public Object getValueOnPO( TaskTemplate pPO ) {
237 199 return pPO.getStoryTemplate();
238 200 }
239 201
240 202 @Override
241 - public void setValueOnPO( TaskTemplate pPO, Object pValue )
242 - {
203 + public void setValueOnPO( TaskTemplate pPO, Object pValue ) {
243 204 pPO.setStoryTemplate( to_PO( pPO, StoryTemplate.class, pValue ) );
244 205 }
245 206
246 207 @Override
247 - public Object db_getValueOnPO( TaskTemplate pPO )
248 - {
208 + public Object db_getValueOnPO( TaskTemplate pPO ) {
249 209 return pPO.mStoryTemplate.db_getValue();
250 210 }
251 211
252 212 @Override
253 - public void db_setValueOnPO( TaskTemplate pPO, Object pValue )
254 - {
213 + public void db_setValueOnPO( TaskTemplate pPO, Object pValue ) {
255 214 pPO.mStoryTemplate.db_setValue( to_Long( pValue ) );
256 215 }
257 216 }
258 217
259 218 static class MyMetaData
260 - extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<TaskTemplate>
261 - {
219 + extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<TaskTemplate> {
262 220 public static final String OBJECT_NAME = "TaskTemplate";
263 221 public static final String TABLE_NAME = "TaskTemplate";
264 222
265 - MyMetaData()
266 - {
223 + MyMetaData() {
267 224 super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), //
268 225
269 226 CD_RecordVersion, /* .. */
  @@ -282,32 +239,27 @@
282 239 }
283 240
284 241 @Override
285 - public Class getPOclass()
286 - {
242 + public Class getPOclass() {
287 243 return TaskTemplate.class;
288 244 }
289 245
290 246 @Override
291 - public TaskTemplate createNew( Transaction pTransaction )
292 - {
247 + public TaskTemplate createNew( Transaction pTransaction ) {
293 248 return new TaskTemplate( pTransaction );
294 249 }
295 250
296 251 @Override
297 - public TaskTemplate createPOfromFinder()
298 - {
252 + public TaskTemplate createPOfromFinder() {
299 253 return new TaskTemplate( CONSTRUCTION_CONTROL );
300 254 }
301 255
302 256 @Override
303 - public String getDisplayValueFormat()
304 - {
257 + public String getDisplayValueFormat() {
305 258 return null;
306 259 }
307 260
308 261 @Override
309 - public String getRecordVersionAttributeName()
310 - {
262 + public String getRecordVersionAttributeName() {
311 263 return CD_RecordVersion.getName();
312 264 }
313 265 }