Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/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,101 +82,84 @@
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 }
131 111
132 - public static final AttributeAccessorSCDtoOneRegular<TaskTemplate,StoryTemplate> CD_StoryTemplate = new AttributeAccessor_StoryTemplate();
112 + public static final AttributeAccessorSCDtoOneRegular<TaskTemplate, StoryTemplate> CD_StoryTemplate = new AttributeAccessor_StoryTemplate();
133 113
134 - protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate,StoryTemplate> mStoryTemplate = //
135 - new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate,StoryTemplate>( (TaskTemplate) this, CD_StoryTemplate );
114 + protected org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate, StoryTemplate> mStoryTemplate = //
115 + new org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate, StoryTemplate>( (TaskTemplate) this, CD_StoryTemplate );
136 116
137 - public StoryTemplate getStoryTemplate()
138 - {
117 + public StoryTemplate getStoryTemplate() {
139 118 return processLazyLoadAccess( mStoryTemplate );
140 119 }
141 120
142 - public void setStoryTemplate( StoryTemplate pStoryTemplate )
143 - {
121 + public void setStoryTemplate( StoryTemplate pStoryTemplate ) {
144 122 processLazyLoadMutation( mStoryTemplate, pStoryTemplate );
145 123 }
146 124
147 125 private static class AttributeAccessor_StoryTemplate
148 - extends AttributeAccessorSCDtoOneRegular<TaskTemplate,StoryTemplate>
149 - {
150 - public AttributeAccessor_StoryTemplate()
151 - {
126 + extends AttributeAccessorSCDtoOneRegular<TaskTemplate, StoryTemplate> {
127 + public AttributeAccessor_StoryTemplate() {
152 128 super( "StoryTemplate", "StoryTemplate_id", StoryTemplate.class, "ID", "TaskTemplates", false, false, Mutability.RW );
153 129 }
154 130
155 131 @Override
156 - public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate,StoryTemplate> getValueHolder( TaskTemplate pPO )
157 - {
132 + public org.litesoft.orsup.lazyload.LazyLoadToOneRegular<TaskTemplate, StoryTemplate> getValueHolder( TaskTemplate pPO ) {
158 133 return pPO.mStoryTemplate;
159 134 }
160 135
161 136 @Override
162 - public Object getValueOnPO( TaskTemplate pPO )
163 - {
137 + public Object getValueOnPO( TaskTemplate pPO ) {
164 138 return pPO.getStoryTemplate();
165 139 }
166 140
167 141 @Override
168 - public void setValueOnPO( TaskTemplate pPO, Object pValue )
169 - {
142 + public void setValueOnPO( TaskTemplate pPO, Object pValue ) {
170 143 pPO.setStoryTemplate( to_PO( pPO, StoryTemplate.class, pValue ) );
171 144 }
172 145
173 146 @Override
174 - public Object db_getValueOnPO( TaskTemplate pPO )
175 - {
147 + public Object db_getValueOnPO( TaskTemplate pPO ) {
176 148 return pPO.mStoryTemplate.db_getValue();
177 149 }
178 150
179 151 @Override
180 - public void db_setValueOnPO( TaskTemplate pPO, Object pValue )
181 - {
152 + public void db_setValueOnPO( TaskTemplate pPO, Object pValue ) {
182 153 pPO.mStoryTemplate.db_setValue( to_Long( pValue ) );
183 154 }
184 155 }
185 156
186 157 static class MyMetaData
187 - extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<TaskTemplate>
188 - {
158 + extends org.litesoft.orsup.nonpublic.PersistentObjectImplMetaData<TaskTemplate> {
189 159 public static final String OBJECT_NAME = "TaskTemplate";
190 160 public static final String TABLE_NAME = "TaskTemplate";
191 161
192 - MyMetaData()
193 - {
162 + MyMetaData() {
194 163 super( OBJECT_NAME, TABLE_NAME, new AttributeAccessorKeySet( CD_ID ), //
195 164
196 165 CD_RecordVersion, /* .. */
  @@ -206,32 +175,27 @@
206 175 }
207 176
208 177 @Override
209 - public Class getPOclass()
210 - {
178 + public Class getPOclass() {
211 179 return TaskTemplate.class;
212 180 }
213 181
214 182 @Override
215 - public TaskTemplate createNew( Transaction pTransaction )
216 - {
183 + public TaskTemplate createNew( Transaction pTransaction ) {
217 184 return new TaskTemplate( pTransaction );
218 185 }
219 186
220 187 @Override
221 - public TaskTemplate createPOfromFinder()
222 - {
188 + public TaskTemplate createPOfromFinder() {
223 189 return new TaskTemplate( CONSTRUCTION_CONTROL );
224 190 }
225 191
226 192 @Override
227 - public String getDisplayValueFormat()
228 - {
193 + public String getDisplayValueFormat() {
229 194 return null;
230 195 }
231 196
232 197 @Override
233 - public String getRecordVersionAttributeName()
234 - {
198 + public String getRecordVersionAttributeName() {
235 199 return CD_RecordVersion.getName();
236 200 }
237 201 }