litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/server/pos/DeviceNamesGO.java
|
@@ -3,14 +3,12 @@ |
3 |
3 |
|
import org.litesoft.orsup.nonpublic.*; |
4 |
4 |
|
|
5 |
5 |
|
public abstract class DeviceNamesGO |
6 |
|
- |
extends AbstractPONames |
7 |
|
- |
{ |
|
6 |
+ |
extends AbstractPONames { |
8 |
7 |
|
public static final String OBJECT_NAME = "Device"; |
9 |
8 |
|
|
10 |
9 |
|
public static final String DATASTORE_NAME = "org.litesoft.prioritizer.server.pos.Device"; |
11 |
10 |
|
|
12 |
|
- |
protected DeviceNamesGO( AbstractPONames pBuiltBy, String pParentPath ) |
13 |
|
- |
{ |
|
11 |
+ |
protected DeviceNamesGO( AbstractPONames pBuiltBy, String pParentPath ) { |
14 |
12 |
|
super( pBuiltBy, OBJECT_NAME, DATASTORE_NAME, pParentPath ); |
15 |
13 |
|
} |
16 |
14 |
|
|
|
@@ -31,44 +29,37 @@ |
31 |
29 |
|
|
32 |
30 |
|
public static class CollectionOf |
33 |
31 |
|
extends DeviceNames |
34 |
|
- |
implements CollectionOfPONamesAccessor |
35 |
|
- |
{ |
|
32 |
+ |
implements CollectionOfPONamesAccessor { |
36 |
33 |
|
private String mCollectionPath; |
37 |
34 |
|
|
38 |
|
- |
public CollectionOf( String pCollectionPath ) |
39 |
|
- |
{ |
|
35 |
+ |
public CollectionOf( String pCollectionPath ) { |
40 |
36 |
|
super( null, "" ); |
41 |
37 |
|
|
42 |
38 |
|
mCollectionPath = pCollectionPath; |
43 |
39 |
|
} |
44 |
40 |
|
|
45 |
41 |
|
@Override |
46 |
|
- |
public String getCollectionPath() |
47 |
|
- |
{ |
|
42 |
+ |
public String getCollectionPath() { |
48 |
43 |
|
return mCollectionPath; |
49 |
44 |
|
} |
50 |
45 |
|
|
51 |
46 |
|
@Override |
52 |
|
- |
public String toString() |
53 |
|
- |
{ |
|
47 |
+ |
public String toString() { |
54 |
48 |
|
return "c" + super.toString(); |
55 |
49 |
|
} |
56 |
50 |
|
} |
57 |
51 |
|
|
58 |
52 |
|
public static class Factory |
59 |
|
- |
implements IFactory |
60 |
|
- |
{ |
|
53 |
+ |
implements IFactory { |
61 |
54 |
|
public static final IFactory INSTANCE = new Factory(); |
62 |
55 |
|
|
63 |
56 |
|
@Override |
64 |
|
- |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) |
65 |
|
- |
{ |
|
57 |
+ |
public AbstractPONames createToOne( AbstractPONames pBuiltBy, String pParentPath ) { |
66 |
58 |
|
return new DeviceNames( pBuiltBy, pParentPath ); |
67 |
59 |
|
} |
68 |
60 |
|
|
69 |
61 |
|
@Override |
70 |
|
- |
public AbstractPONames createToMany( String pCollectionPath ) |
71 |
|
- |
{ |
|
62 |
+ |
public AbstractPONames createToMany( String pCollectionPath ) { |
72 |
63 |
|
return new DeviceNames.CollectionOf( pCollectionPath ); |
73 |
64 |
|
} |
74 |
65 |
|
} |