|
@@ -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.datt.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 |
|
|
|
@@ -29,8 +27,7 @@ |
29 |
27 |
|
*/ |
30 |
28 |
|
public final String aCreator = mParentPath + "Creator"; |
31 |
29 |
|
|
32 |
|
- |
public UserNames rCreator() |
33 |
|
- |
{ |
|
30 |
+ |
public UserNames rCreator() { |
34 |
31 |
|
return (UserNames) toOne( this, aCreator, UserNames.Factory.INSTANCE ); |
35 |
32 |
|
} |
36 |
33 |
|
|
|
@@ -69,8 +66,7 @@ |
69 |
66 |
|
*/ |
70 |
67 |
|
public final String aRestrictedResource = mParentPath + "RestrictedResource"; |
71 |
68 |
|
|
72 |
|
- |
public RestrictedResourceNames rRestrictedResource() |
73 |
|
- |
{ |
|
69 |
+ |
public RestrictedResourceNames rRestrictedResource() { |
74 |
70 |
|
return (RestrictedResourceNames) toOne( this, aRestrictedResource, RestrictedResourceNames.Factory.INSTANCE ); |
75 |
71 |
|
} |
76 |
72 |
|
|
|
@@ -79,8 +75,7 @@ |
79 |
75 |
|
*/ |
80 |
76 |
|
public final String aStoryTemplate = mParentPath + "StoryTemplate"; |
81 |
77 |
|
|
82 |
|
- |
public StoryTemplateNames rStoryTemplate() |
83 |
|
- |
{ |
|
78 |
+ |
public StoryTemplateNames rStoryTemplate() { |
84 |
79 |
|
return (StoryTemplateNames) toOne( this, aStoryTemplate, StoryTemplateNames.Factory.INSTANCE ); |
85 |
80 |
|
} |
86 |
81 |
|
|
|
@@ -89,13 +84,11 @@ |
89 |
84 |
|
*/ |
90 |
85 |
|
public final String aTasks = mParentPath + "Tasks"; |
91 |
86 |
|
|
92 |
|
- |
public TaskNames rTasks() |
93 |
|
- |
{ |
|
87 |
+ |
public TaskNames rTasks() { |
94 |
88 |
|
return (TaskNames) toOne( this, aTasks, TaskNames.Factory.INSTANCE ); |
95 |
89 |
|
} |
96 |
90 |
|
|
97 |
|
- |
public TaskNames cTasks() |
98 |
|
- |
{ |
|
91 |
+ |
public TaskNames cTasks() { |
99 |
92 |
|
return (TaskNames) toMany( this, aTasks, TaskNames.Factory.INSTANCE ); |
100 |
93 |
|
} |
101 |
94 |
|
|
|
@@ -104,56 +97,47 @@ |
104 |
97 |
|
*/ |
105 |
98 |
|
public final String aUpdates = mParentPath + "Updates"; |
106 |
99 |
|
|
107 |
|
- |
public StoryUpdateNames rUpdates() |
108 |
|
- |
{ |
|
100 |
+ |
public StoryUpdateNames rUpdates() { |
109 |
101 |
|
return (StoryUpdateNames) toOne( this, aUpdates, StoryUpdateNames.Factory.INSTANCE ); |
110 |
102 |
|
} |
111 |
103 |
|
|
112 |
|
- |
public StoryUpdateNames cUpdates() |
113 |
|
- |
{ |
|
104 |
+ |
public StoryUpdateNames cUpdates() { |
114 |
105 |
|
return (StoryUpdateNames) toMany( this, aUpdates, StoryUpdateNames.Factory.INSTANCE ); |
115 |
106 |
|
} |
116 |
107 |
|
|
117 |
108 |
|
public static class CollectionOf |
118 |
109 |
|
extends StoryNames |
119 |
|
- |
implements CollectionOfPONamesAccessor |
120 |
|
- |
{ |
|
110 |
+ |
implements CollectionOfPONamesAccessor { |
121 |
111 |
|
private String mCollectionPath; |
122 |
112 |
|
|
123 |
|
- |
public CollectionOf( String pCollectionPath ) |
124 |
|
- |
{ |
|
113 |
+ |
public CollectionOf( String pCollectionPath ) { |
125 |
114 |
|
super( null, "" ); |
126 |
115 |
|
|
127 |
116 |
|
mCollectionPath = pCollectionPath; |
128 |
117 |
|
} |
129 |
118 |
|
|
130 |
119 |
|
@Override |
131 |
|
- |
public String getCollectionPath() |
132 |
|
- |
{ |
|
120 |
+ |
public String getCollectionPath() { |
133 |
121 |
|
return mCollectionPath; |
134 |
122 |
|
} |
135 |
123 |
|
|
136 |
124 |
|
@Override |
137 |
|
- |
public String toString() |
138 |
|
- |
{ |
|
125 |
+ |
public String toString() { |
139 |
126 |
|
return "c" + super.toString(); |
140 |
127 |
|
} |
141 |
128 |
|
} |
142 |
129 |
|
|
143 |
130 |
|
public static class Factory |
144 |
|
- |
implements IFactory |
145 |
|
- |
{ |
|
131 |
+ |
implements IFactory { |
146 |
132 |
|
public static final IFactory INSTANCE = new Factory(); |
147 |
133 |
|
|
148 |
134 |
|
@Override |
149 |
|
- |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) |
150 |
|
- |
{ |
|
135 |
+ |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) { |
151 |
136 |
|
return new StoryNames( pBuiltBy, pParentPath ); |
152 |
137 |
|
} |
153 |
138 |
|
|
154 |
139 |
|
@Override |
155 |
|
- |
public AbstractPONames createToMany( String pCollectionPath ) |
156 |
|
- |
{ |
|
140 |
+ |
public AbstractPONames createToMany( String pCollectionPath ) { |
157 |
141 |
|
return new StoryNames.CollectionOf( pCollectionPath ); |
158 |
142 |
|
} |
159 |
143 |
|
} |