Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -3,14 +3,12 @@
3 3 import org.litesoft.orsup.nonpublic.*;
4 4
5 5 public abstract class TaskNamesGO
6 - extends AbstractPONames
7 - {
6 + extends AbstractPONames {
8 7 public static final String OBJECT_NAME = "Task";
9 8
10 9 public static final String DATASTORE_NAME = "org.litesoft.datt.server.pos.Task";
11 10
12 - protected TaskNamesGO( AbstractPONames pBuiltBy, String pParentPath )
13 - {
11 + protected TaskNamesGO( 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 aStory = mParentPath + "Story";
56 53
57 - public StoryNames rStory()
58 - {
54 + public StoryNames rStory() {
59 55 return (StoryNames) toOne( this, aStory, StoryNames.Factory.INSTANCE );
60 56 }
61 57
  @@ -64,56 +60,47 @@
64 60 */
65 61 public final String aUsers = mParentPath + "Users";
66 62
67 - public UserXrefTaskNames rUsers()
68 - {
63 + public UserXrefTaskNames rUsers() {
69 64 return (UserXrefTaskNames) toOne( this, aUsers, UserXrefTaskNames.Factory.INSTANCE );
70 65 }
71 66
72 - public UserXrefTaskNames cUsers()
73 - {
67 + public UserXrefTaskNames cUsers() {
74 68 return (UserXrefTaskNames) toMany( this, aUsers, UserXrefTaskNames.Factory.INSTANCE );
75 69 }
76 70
77 71 public static class CollectionOf
78 72 extends TaskNames
79 - implements CollectionOfPONamesAccessor
80 - {
73 + implements CollectionOfPONamesAccessor {
81 74 private String mCollectionPath;
82 75
83 - public CollectionOf( String pCollectionPath )
84 - {
76 + public CollectionOf( String pCollectionPath ) {
85 77 super( null, "" );
86 78
87 79 mCollectionPath = pCollectionPath;
88 80 }
89 81
90 82 @Override
91 - public String getCollectionPath()
92 - {
83 + public String getCollectionPath() {
93 84 return mCollectionPath;
94 85 }
95 86
96 87 @Override
97 - public String toString()
98 - {
88 + public String toString() {
99 89 return "c" + super.toString();
100 90 }
101 91 }
102 92
103 93 public static class Factory
104 - implements IFactory
105 - {
94 + implements IFactory {
106 95 public static final IFactory INSTANCE = new Factory();
107 96
108 97 @Override
109 - public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath )
110 - {
98 + public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) {
111 99 return new TaskNames( pBuiltBy, pParentPath );
112 100 }
113 101
114 102 @Override
115 - public AbstractPONames createToMany( String pCollectionPath )
116 - {
103 + public AbstractPONames createToMany( String pCollectionPath ) {
117 104 return new TaskNames.CollectionOf( pCollectionPath );
118 105 }
119 106 }