|
@@ -3,14 +3,12 @@ |
3 |
3 |
|
import org.litesoft.orsup.nonpublic.*; |
4 |
4 |
|
|
5 |
5 |
|
public abstract class StoryNamesGO |
6 |
|
- |
extends AbstractPONames |
7 |
|
- |
{ |
|
6 |
+ |
extends AbstractPONames { |
8 |
7 |
|
public static final String OBJECT_NAME = "Story"; |
9 |
8 |
|
|
10 |
9 |
|
public static final String DATASTORE_NAME = "org.litesoft.initfrom.server.pos.Story"; |
11 |
10 |
|
|
12 |
|
- |
protected StoryNamesGO( AbstractPONames pBuiltBy, String pParentPath ) |
13 |
|
- |
{ |
|
11 |
+ |
protected StoryNamesGO( AbstractPONames pBuiltBy, String pParentPath ) { |
14 |
12 |
|
super( pBuiltBy, OBJECT_NAME, DATASTORE_NAME, pParentPath ); |
15 |
13 |
|
} |
16 |
14 |
|
|
|
@@ -24,8 +22,7 @@ |
24 |
22 |
|
*/ |
25 |
23 |
|
public final String aCreator = mParentPath + "Creator"; |
26 |
24 |
|
|
27 |
|
- |
public UserNames rCreator() |
28 |
|
- |
{ |
|
25 |
+ |
public UserNames rCreator() { |
29 |
26 |
|
return (UserNames) toOne( this, aCreator, UserNames.Factory.INSTANCE ); |
30 |
27 |
|
} |
31 |
28 |
|
|
|
@@ -54,8 +51,7 @@ |
54 |
51 |
|
*/ |
55 |
52 |
|
public final String aRestrictedResource = mParentPath + "RestrictedResource"; |
56 |
53 |
|
|
57 |
|
- |
public RestrictedResourceNames rRestrictedResource() |
58 |
|
- |
{ |
|
54 |
+ |
public RestrictedResourceNames rRestrictedResource() { |
59 |
55 |
|
return (RestrictedResourceNames) toOne( this, aRestrictedResource, RestrictedResourceNames.Factory.INSTANCE ); |
60 |
56 |
|
} |
61 |
57 |
|
|
|
@@ -64,8 +60,7 @@ |
64 |
60 |
|
*/ |
65 |
61 |
|
public final String aStoryTemplate = mParentPath + "StoryTemplate"; |
66 |
62 |
|
|
67 |
|
- |
public StoryTemplateNames rStoryTemplate() |
68 |
|
- |
{ |
|
63 |
+ |
public StoryTemplateNames rStoryTemplate() { |
69 |
64 |
|
return (StoryTemplateNames) toOne( this, aStoryTemplate, StoryTemplateNames.Factory.INSTANCE ); |
70 |
65 |
|
} |
71 |
66 |
|
|
|
@@ -74,56 +69,47 @@ |
74 |
69 |
|
*/ |
75 |
70 |
|
public final String aTasks = mParentPath + "Tasks"; |
76 |
71 |
|
|
77 |
|
- |
public TaskNames rTasks() |
78 |
|
- |
{ |
|
72 |
+ |
public TaskNames rTasks() { |
79 |
73 |
|
return (TaskNames) toOne( this, aTasks, TaskNames.Factory.INSTANCE ); |
80 |
74 |
|
} |
81 |
75 |
|
|
82 |
|
- |
public TaskNames cTasks() |
83 |
|
- |
{ |
|
76 |
+ |
public TaskNames cTasks() { |
84 |
77 |
|
return (TaskNames) toMany( this, aTasks, TaskNames.Factory.INSTANCE ); |
85 |
78 |
|
} |
86 |
79 |
|
|
87 |
80 |
|
public static class CollectionOf |
88 |
81 |
|
extends StoryNames |
89 |
|
- |
implements CollectionOfPONamesAccessor |
90 |
|
- |
{ |
|
82 |
+ |
implements CollectionOfPONamesAccessor { |
91 |
83 |
|
private String mCollectionPath; |
92 |
84 |
|
|
93 |
|
- |
public CollectionOf( String pCollectionPath ) |
94 |
|
- |
{ |
|
85 |
+ |
public CollectionOf( String pCollectionPath ) { |
95 |
86 |
|
super( null, "" ); |
96 |
87 |
|
|
97 |
88 |
|
mCollectionPath = pCollectionPath; |
98 |
89 |
|
} |
99 |
90 |
|
|
100 |
91 |
|
@Override |
101 |
|
- |
public String getCollectionPath() |
102 |
|
- |
{ |
|
92 |
+ |
public String getCollectionPath() { |
103 |
93 |
|
return mCollectionPath; |
104 |
94 |
|
} |
105 |
95 |
|
|
106 |
96 |
|
@Override |
107 |
|
- |
public String toString() |
108 |
|
- |
{ |
|
97 |
+ |
public String toString() { |
109 |
98 |
|
return "c" + super.toString(); |
110 |
99 |
|
} |
111 |
100 |
|
} |
112 |
101 |
|
|
113 |
102 |
|
public static class Factory |
114 |
|
- |
implements IFactory |
115 |
|
- |
{ |
|
103 |
+ |
implements IFactory { |
116 |
104 |
|
public static final IFactory INSTANCE = new Factory(); |
117 |
105 |
|
|
118 |
106 |
|
@Override |
119 |
|
- |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) |
120 |
|
- |
{ |
|
107 |
+ |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) { |
121 |
108 |
|
return new StoryNames( pBuiltBy, pParentPath ); |
122 |
109 |
|
} |
123 |
110 |
|
|
124 |
111 |
|
@Override |
125 |
|
- |
public AbstractPONames createToMany( String pCollectionPath ) |
126 |
|
- |
{ |
|
112 |
+ |
public AbstractPONames createToMany( String pCollectionPath ) { |
127 |
113 |
|
return new StoryNames.CollectionOf( pCollectionPath ); |
128 |
114 |
|
} |
129 |
115 |
|
} |