|
@@ -3,14 +3,12 @@ |
3 |
3 |
|
import org.litesoft.orsup.nonpublic.*; |
4 |
4 |
|
|
5 |
5 |
|
public abstract class StoryTemplateNamesGO |
6 |
|
- |
extends AbstractPONames |
7 |
|
- |
{ |
|
6 |
+ |
extends AbstractPONames { |
8 |
7 |
|
public static final String OBJECT_NAME = "StoryTemplate"; |
9 |
8 |
|
|
10 |
9 |
|
public static final String DATASTORE_NAME = "org.litesoft.initfrom.server.pos.StoryTemplate"; |
11 |
10 |
|
|
12 |
|
- |
protected StoryTemplateNamesGO( AbstractPONames pBuiltBy, String pParentPath ) |
13 |
|
- |
{ |
|
11 |
+ |
protected StoryTemplateNamesGO( AbstractPONames pBuiltBy, String pParentPath ) { |
14 |
12 |
|
super( pBuiltBy, OBJECT_NAME, DATASTORE_NAME, pParentPath ); |
15 |
13 |
|
} |
16 |
14 |
|
|
|
@@ -82,13 +80,11 @@ |
82 |
80 |
|
*/ |
83 |
81 |
|
public final String aStories = mParentPath + "Stories"; |
84 |
82 |
|
|
85 |
|
- |
public StoryNames rStories() |
86 |
|
- |
{ |
|
83 |
+ |
public StoryNames rStories() { |
87 |
84 |
|
return (StoryNames) toOne( this, aStories, StoryNames.Factory.INSTANCE ); |
88 |
85 |
|
} |
89 |
86 |
|
|
90 |
|
- |
public StoryNames cStories() |
91 |
|
- |
{ |
|
87 |
+ |
public StoryNames cStories() { |
92 |
88 |
|
return (StoryNames) toMany( this, aStories, StoryNames.Factory.INSTANCE ); |
93 |
89 |
|
} |
94 |
90 |
|
|
|
@@ -97,56 +93,47 @@ |
97 |
93 |
|
*/ |
98 |
94 |
|
public final String aTaskTemplates = mParentPath + "TaskTemplates"; |
99 |
95 |
|
|
100 |
|
- |
public TaskTemplateNames rTaskTemplates() |
101 |
|
- |
{ |
|
96 |
+ |
public TaskTemplateNames rTaskTemplates() { |
102 |
97 |
|
return (TaskTemplateNames) toOne( this, aTaskTemplates, TaskTemplateNames.Factory.INSTANCE ); |
103 |
98 |
|
} |
104 |
99 |
|
|
105 |
|
- |
public TaskTemplateNames cTaskTemplates() |
106 |
|
- |
{ |
|
100 |
+ |
public TaskTemplateNames cTaskTemplates() { |
107 |
101 |
|
return (TaskTemplateNames) toMany( this, aTaskTemplates, TaskTemplateNames.Factory.INSTANCE ); |
108 |
102 |
|
} |
109 |
103 |
|
|
110 |
104 |
|
public static class CollectionOf |
111 |
105 |
|
extends StoryTemplateNames |
112 |
|
- |
implements CollectionOfPONamesAccessor |
113 |
|
- |
{ |
|
106 |
+ |
implements CollectionOfPONamesAccessor { |
114 |
107 |
|
private String mCollectionPath; |
115 |
108 |
|
|
116 |
|
- |
public CollectionOf( String pCollectionPath ) |
117 |
|
- |
{ |
|
109 |
+ |
public CollectionOf( String pCollectionPath ) { |
118 |
110 |
|
super( null, "" ); |
119 |
111 |
|
|
120 |
112 |
|
mCollectionPath = pCollectionPath; |
121 |
113 |
|
} |
122 |
114 |
|
|
123 |
115 |
|
@Override |
124 |
|
- |
public String getCollectionPath() |
125 |
|
- |
{ |
|
116 |
+ |
public String getCollectionPath() { |
126 |
117 |
|
return mCollectionPath; |
127 |
118 |
|
} |
128 |
119 |
|
|
129 |
120 |
|
@Override |
130 |
|
- |
public String toString() |
131 |
|
- |
{ |
|
121 |
+ |
public String toString() { |
132 |
122 |
|
return "c" + super.toString(); |
133 |
123 |
|
} |
134 |
124 |
|
} |
135 |
125 |
|
|
136 |
126 |
|
public static class Factory |
137 |
|
- |
implements IFactory |
138 |
|
- |
{ |
|
127 |
+ |
implements IFactory { |
139 |
128 |
|
public static final IFactory INSTANCE = new Factory(); |
140 |
129 |
|
|
141 |
130 |
|
@Override |
142 |
|
- |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) |
143 |
|
- |
{ |
|
131 |
+ |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) { |
144 |
132 |
|
return new StoryTemplateNames( pBuiltBy, pParentPath ); |
145 |
133 |
|
} |
146 |
134 |
|
|
147 |
135 |
|
@Override |
148 |
|
- |
public AbstractPONames createToMany( String pCollectionPath ) |
149 |
|
- |
{ |
|
136 |
+ |
public AbstractPONames createToMany( String pCollectionPath ) { |
150 |
137 |
|
return new StoryTemplateNames.CollectionOf( pCollectionPath ); |
151 |
138 |
|
} |
152 |
139 |
|
} |