Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/server/pos/StoryNamesGO.java

Diff revisions: vs.
  @@ -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.prioritizer.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
  @@ -39,8 +37,7 @@
39 37 */
40 38 public final String aCreator = mParentPath + "Creator";
41 39
42 - public UserNames rCreator()
43 - {
40 + public UserNames rCreator() {
44 41 return (UserNames) toOne( this, aCreator, UserNames.Factory.INSTANCE );
45 42 }
46 43
  @@ -74,8 +71,7 @@
74 71 */
75 72 public final String aRestrictedResource = mParentPath + "RestrictedResource";
76 73
77 - public RestrictedResourceNames rRestrictedResource()
78 - {
74 + public RestrictedResourceNames rRestrictedResource() {
79 75 return (RestrictedResourceNames) toOne( this, aRestrictedResource, RestrictedResourceNames.Factory.INSTANCE );
80 76 }
81 77
  @@ -84,56 +80,47 @@
84 80 */
85 81 public final String aUpdates = mParentPath + "Updates";
86 82
87 - public StoryUpdateNames rUpdates()
88 - {
83 + public StoryUpdateNames rUpdates() {
89 84 return (StoryUpdateNames) toOne( this, aUpdates, StoryUpdateNames.Factory.INSTANCE );
90 85 }
91 86
92 - public StoryUpdateNames cUpdates()
93 - {
87 + public StoryUpdateNames cUpdates() {
94 88 return (StoryUpdateNames) toMany( this, aUpdates, StoryUpdateNames.Factory.INSTANCE );
95 89 }
96 90
97 91 public static class CollectionOf
98 92 extends StoryNames
99 - implements CollectionOfPONamesAccessor
100 - {
93 + implements CollectionOfPONamesAccessor {
101 94 private String mCollectionPath;
102 95
103 - public CollectionOf( String pCollectionPath )
104 - {
96 + public CollectionOf( String pCollectionPath ) {
105 97 super( null, "" );
106 98
107 99 mCollectionPath = pCollectionPath;
108 100 }
109 101
110 102 @Override
111 - public String getCollectionPath()
112 - {
103 + public String getCollectionPath() {
113 104 return mCollectionPath;
114 105 }
115 106
116 107 @Override
117 - public String toString()
118 - {
108 + public String toString() {
119 109 return "c" + super.toString();
120 110 }
121 111 }
122 112
123 113 public static class Factory
124 - implements IFactory
125 - {
114 + implements IFactory {
126 115 public static final IFactory INSTANCE = new Factory();
127 116
128 117 @Override
129 - public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath )
130 - {
118 + public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) {
131 119 return new StoryNames( pBuiltBy, pParentPath );
132 120 }
133 121
134 122 @Override
135 - public AbstractPONames createToMany( String pCollectionPath )
136 - {
123 + public AbstractPONames createToMany( String pCollectionPath ) {
137 124 return new StoryNames.CollectionOf( pCollectionPath );
138 125 }
139 126 }