Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/InitFrom/src/org/litesoft/initfrom/server/pos/UserNamesGO.java

Diff revisions: vs.
  @@ -3,14 +3,12 @@
3 3 import org.litesoft.orsup.nonpublic.*;
4 4
5 5 public abstract class UserNamesGO
6 - extends AbstractPONames
7 - {
6 + extends AbstractPONames {
8 7 public static final String OBJECT_NAME = "User";
9 8
10 9 public static final String DATASTORE_NAME = "org.litesoft.initfrom.server.pos.User";
11 10
12 - protected UserNamesGO( AbstractPONames pBuiltBy, String pParentPath )
13 - {
11 + protected UserNamesGO( AbstractPONames pBuiltBy, String pParentPath ) {
14 12 super( pBuiltBy, OBJECT_NAME, DATASTORE_NAME, pParentPath );
15 13 }
16 14
  @@ -29,8 +27,7 @@
29 27 */
30 28 public final String aCurrentRestrictedResource = mParentPath + "CurrentRestrictedResource";
31 29
32 - public UserXrefRestrictedResourceNames rCurrentRestrictedResource()
33 - {
30 + public UserXrefRestrictedResourceNames rCurrentRestrictedResource() {
34 31 return (UserXrefRestrictedResourceNames) toOne( this, aCurrentRestrictedResource, UserXrefRestrictedResourceNames.Factory.INSTANCE );
35 32 }
36 33
  @@ -74,8 +71,7 @@
74 71 */
75 72 public final String aLastRestrictedResource = mParentPath + "LastRestrictedResource";
76 73
77 - public RestrictedResourceNames rLastRestrictedResource()
78 - {
74 + public RestrictedResourceNames rLastRestrictedResource() {
79 75 return (RestrictedResourceNames) toOne( this, aLastRestrictedResource, RestrictedResourceNames.Factory.INSTANCE );
80 76 }
81 77
  @@ -129,13 +125,11 @@
129 125 */
130 126 public final String aCreatedTasks = mParentPath + "CreatedTasks";
131 127
132 - public TaskNames rCreatedTasks()
133 - {
128 + public TaskNames rCreatedTasks() {
134 129 return (TaskNames) toOne( this, aCreatedTasks, TaskNames.Factory.INSTANCE );
135 130 }
136 131
137 - public TaskNames cCreatedTasks()
138 - {
132 + public TaskNames cCreatedTasks() {
139 133 return (TaskNames) toMany( this, aCreatedTasks, TaskNames.Factory.INSTANCE );
140 134 }
141 135
  @@ -144,13 +138,11 @@
144 138 */
145 139 public final String aEmails = mParentPath + "Emails";
146 140
147 - public EmailNames rEmails()
148 - {
141 + public EmailNames rEmails() {
149 142 return (EmailNames) toOne( this, aEmails, EmailNames.Factory.INSTANCE );
150 143 }
151 144
152 - public EmailNames cEmails()
153 - {
145 + public EmailNames cEmails() {
154 146 return (EmailNames) toMany( this, aEmails, EmailNames.Factory.INSTANCE );
155 147 }
156 148
  @@ -159,13 +151,11 @@
159 151 */
160 152 public final String aPhones = mParentPath + "Phones";
161 153
162 - public PhoneNames rPhones()
163 - {
154 + public PhoneNames rPhones() {
164 155 return (PhoneNames) toOne( this, aPhones, PhoneNames.Factory.INSTANCE );
165 156 }
166 157
167 - public PhoneNames cPhones()
168 - {
158 + public PhoneNames cPhones() {
169 159 return (PhoneNames) toMany( this, aPhones, PhoneNames.Factory.INSTANCE );
170 160 }
171 161
  @@ -174,13 +164,11 @@
174 164 */
175 165 public final String aRestrictedResources = mParentPath + "RestrictedResources";
176 166
177 - public UserXrefRestrictedResourceNames rRestrictedResources()
178 - {
167 + public UserXrefRestrictedResourceNames rRestrictedResources() {
179 168 return (UserXrefRestrictedResourceNames) toOne( this, aRestrictedResources, UserXrefRestrictedResourceNames.Factory.INSTANCE );
180 169 }
181 170
182 - public UserXrefRestrictedResourceNames cRestrictedResources()
183 - {
171 + public UserXrefRestrictedResourceNames cRestrictedResources() {
184 172 return (UserXrefRestrictedResourceNames) toMany( this, aRestrictedResources, UserXrefRestrictedResourceNames.Factory.INSTANCE );
185 173 }
186 174
  @@ -189,13 +177,11 @@
189 177 */
190 178 public final String aStories = mParentPath + "Stories";
191 179
192 - public StoryNames rStories()
193 - {
180 + public StoryNames rStories() {
194 181 return (StoryNames) toOne( this, aStories, StoryNames.Factory.INSTANCE );
195 182 }
196 183
197 - public StoryNames cStories()
198 - {
184 + public StoryNames cStories() {
199 185 return (StoryNames) toMany( this, aStories, StoryNames.Factory.INSTANCE );
200 186 }
201 187
  @@ -204,56 +190,47 @@
204 190 */
205 191 public final String aTasks = mParentPath + "Tasks";
206 192
207 - public UserXrefTaskNames rTasks()
208 - {
193 + public UserXrefTaskNames rTasks() {
209 194 return (UserXrefTaskNames) toOne( this, aTasks, UserXrefTaskNames.Factory.INSTANCE );
210 195 }
211 196
212 - public UserXrefTaskNames cTasks()
213 - {
197 + public UserXrefTaskNames cTasks() {
214 198 return (UserXrefTaskNames) toMany( this, aTasks, UserXrefTaskNames.Factory.INSTANCE );
215 199 }
216 200
217 201 public static class CollectionOf
218 202 extends UserNames
219 - implements CollectionOfPONamesAccessor
220 - {
203 + implements CollectionOfPONamesAccessor {
221 204 private String mCollectionPath;
222 205
223 - public CollectionOf( String pCollectionPath )
224 - {
206 + public CollectionOf( String pCollectionPath ) {
225 207 super( null, "" );
226 208
227 209 mCollectionPath = pCollectionPath;
228 210 }
229 211
230 212 @Override
231 - public String getCollectionPath()
232 - {
213 + public String getCollectionPath() {
233 214 return mCollectionPath;
234 215 }
235 216
236 217 @Override
237 - public String toString()
238 - {
218 + public String toString() {
239 219 return "c" + super.toString();
240 220 }
241 221 }
242 222
243 223 public static class Factory
244 - implements IFactory
245 - {
224 + implements IFactory {
246 225 public static final IFactory INSTANCE = new Factory();
247 226
248 227 @Override
249 - public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath )
250 - {
228 + public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) {
251 229 return new UserNames( pBuiltBy, pParentPath );
252 230 }
253 231
254 232 @Override
255 - public AbstractPONames createToMany( String pCollectionPath )
256 - {
233 + public AbstractPONames createToMany( String pCollectionPath ) {
257 234 return new UserNames.CollectionOf( pCollectionPath );
258 235 }
259 236 }