Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/DATT/src/org/litesoft/datt/server/pos/StoryUpdateNamesGO.java

Diff revisions: vs.
  @@ -3,14 +3,12 @@
3 3 import org.litesoft.orsup.nonpublic.*;
4 4
5 5 public abstract class StoryUpdateNamesGO
6 - extends AbstractPONames
7 - {
6 + extends AbstractPONames {
8 7 public static final String OBJECT_NAME = "StoryUpdate";
9 8
10 9 public static final String DATASTORE_NAME = "org.litesoft.datt.server.pos.StoryUpdate";
11 10
12 - protected StoryUpdateNamesGO( AbstractPONames pBuiltBy, String pParentPath )
13 - {
11 + protected StoryUpdateNamesGO( 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 aByWhom = mParentPath + "ByWhom";
31 29
32 - public UserNames rByWhom()
33 - {
30 + public UserNames rByWhom() {
34 31 return (UserNames) toOne( this, aByWhom, UserNames.Factory.INSTANCE );
35 32 }
36 33
  @@ -44,8 +41,7 @@
44 41 */
45 42 public final String aStory = mParentPath + "Story";
46 43
47 - public StoryNames rStory()
48 - {
44 + public StoryNames rStory() {
49 45 return (StoryNames) toOne( this, aStory, StoryNames.Factory.INSTANCE );
50 46 }
51 47
  @@ -54,56 +50,47 @@
54 50 */
55 51 public final String aChanges = mParentPath + "Changes";
56 52
57 - public StoryChangeNames rChanges()
58 - {
53 + public StoryChangeNames rChanges() {
59 54 return (StoryChangeNames) toOne( this, aChanges, StoryChangeNames.Factory.INSTANCE );
60 55 }
61 56
62 - public StoryChangeNames cChanges()
63 - {
57 + public StoryChangeNames cChanges() {
64 58 return (StoryChangeNames) toMany( this, aChanges, StoryChangeNames.Factory.INSTANCE );
65 59 }
66 60
67 61 public static class CollectionOf
68 62 extends StoryUpdateNames
69 - implements CollectionOfPONamesAccessor
70 - {
63 + implements CollectionOfPONamesAccessor {
71 64 private String mCollectionPath;
72 65
73 - public CollectionOf( String pCollectionPath )
74 - {
66 + public CollectionOf( String pCollectionPath ) {
75 67 super( null, "" );
76 68
77 69 mCollectionPath = pCollectionPath;
78 70 }
79 71
80 72 @Override
81 - public String getCollectionPath()
82 - {
73 + public String getCollectionPath() {
83 74 return mCollectionPath;
84 75 }
85 76
86 77 @Override
87 - public String toString()
88 - {
78 + public String toString() {
89 79 return "c" + super.toString();
90 80 }
91 81 }
92 82
93 83 public static class Factory
94 - implements IFactory
95 - {
84 + implements IFactory {
96 85 public static final IFactory INSTANCE = new Factory();
97 86
98 87 @Override
99 - public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath )
100 - {
88 + public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) {
101 89 return new StoryUpdateNames( pBuiltBy, pParentPath );
102 90 }
103 91
104 92 @Override
105 - public AbstractPONames createToMany( String pCollectionPath )
106 - {
93 + public AbstractPONames createToMany( String pCollectionPath ) {
107 94 return new StoryUpdateNames.CollectionOf( pCollectionPath );
108 95 }
109 96 }