|
@@ -8,7 +8,8 @@ |
8 |
8 |
|
import org.litesoft.orsup.selection.*; |
9 |
9 |
|
import org.litesoft.orsup.transact.*; |
10 |
10 |
|
|
11 |
|
- |
public interface Finder extends ORFacilitator, MetaDataStore |
|
11 |
+ |
public interface Finder extends ORFacilitator, |
|
12 |
+ |
MetaDataStore |
12 |
13 |
|
{ |
13 |
14 |
|
public static final PersistentObject[] NO_PERSISTENT_OBJECTS = new PersistentObject[0]; |
14 |
15 |
|
|
|
@@ -30,8 +31,7 @@ |
30 |
31 |
|
* |
31 |
32 |
|
* @throws DBException - Exception regarding the OR layer |
32 |
33 |
|
*/ |
33 |
|
- |
public List<PersistentObject<?>> findSubset( String pPersistedObjectRegistrationName, |
34 |
|
- |
WhereClause pSelectionWhereClause, // |
|
34 |
+ |
public List<PersistentObject<?>> findSubset( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause, // |
35 |
35 |
|
OrderBy pOrderBy, long pOffset, int pLimit ) |
36 |
36 |
|
throws DBException; |
37 |
37 |
|
|
|
@@ -46,8 +46,7 @@ |
46 |
46 |
|
* |
47 |
47 |
|
* @throws DBException - Exception regarding the OR layer |
48 |
48 |
|
*/ |
49 |
|
- |
public <T extends PersistentObject> List<T> findSubset( Class<T> pPersistedObjectClass, |
50 |
|
- |
WhereClause pSelectionWhereClause, // |
|
49 |
+ |
public <T extends PersistentObject> List<T> findSubset( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause, // |
51 |
50 |
|
OrderBy pOrderBy, long pOffset, int pLimit ) |
52 |
51 |
|
throws DBException; |
53 |
52 |
|
|
|
@@ -61,8 +60,7 @@ |
61 |
60 |
|
* |
62 |
61 |
|
* @throws DBException - Exception regarding the OR layer |
63 |
62 |
|
*/ |
64 |
|
- |
public List<PersistentObject<?>> findAll( String pPersistedObjectRegistrationName, |
65 |
|
- |
WhereClause pSelectionWhereClause, OrderBy pOrderBy ) |
|
63 |
+ |
public List<PersistentObject<?>> findAll( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause, OrderBy pOrderBy ) |
66 |
64 |
|
throws DBException; |
67 |
65 |
|
|
68 |
66 |
|
/** |
|
@@ -74,8 +72,7 @@ |
74 |
72 |
|
* |
75 |
73 |
|
* @throws DBException - Exception regarding the OR layer |
76 |
74 |
|
*/ |
77 |
|
- |
public <T extends PersistentObject> List<T> findAll( Class<T> pPersistedObjectClass, |
78 |
|
- |
WhereClause pSelectionWhereClause, OrderBy pOrderBy ) |
|
75 |
+ |
public <T extends PersistentObject> List<T> findAll( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause, OrderBy pOrderBy ) |
79 |
76 |
|
throws DBException; |
80 |
77 |
|
|
81 |
78 |
|
/** |
|
@@ -87,8 +84,7 @@ |
87 |
84 |
|
* |
88 |
85 |
|
* @throws DBException - Exception regarding the OR layer |
89 |
86 |
|
*/ |
90 |
|
- |
public List<PersistentObject<?>> findAll( String pPersistedObjectRegistrationName, |
91 |
|
- |
WhereClause pSelectionWhereClause ) |
|
87 |
+ |
public List<PersistentObject<?>> findAll( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause ) |
92 |
88 |
|
throws DBException; |
93 |
89 |
|
|
94 |
90 |
|
/** |
|
@@ -99,8 +95,7 @@ |
99 |
95 |
|
* |
100 |
96 |
|
* @throws DBException - Exception regarding the OR layer |
101 |
97 |
|
*/ |
102 |
|
- |
public <T extends PersistentObject> List<T> findAll( Class<T> pPersistedObjectClass, |
103 |
|
- |
WhereClause pSelectionWhereClause ) |
|
98 |
+ |
public <T extends PersistentObject> List<T> findAll( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause ) |
104 |
99 |
|
throws DBException; |
105 |
100 |
|
|
106 |
101 |
|
/** |
|
@@ -114,8 +109,7 @@ |
114 |
109 |
|
* @throws UnsupportedOperationException - if the PO type does not have a "single" key |
115 |
110 |
|
* @throws DBException - other Exception regarding the OR layer |
116 |
111 |
|
*/ |
117 |
|
- |
public List<PersistentObject<?>> findAllByKeys( String pPersistedObjectRegistrationName, Collection pKeys, |
118 |
|
- |
OrderBy pOrderBy ) |
|
112 |
+ |
public List<PersistentObject<?>> findAllByKeys( String pPersistedObjectRegistrationName, Collection pKeys, OrderBy pOrderBy ) |
119 |
113 |
|
throws UnsupportedOperationException, DBException; |
120 |
114 |
|
|
121 |
115 |
|
/** |
|
@@ -128,8 +122,7 @@ |
128 |
122 |
|
* @throws UnsupportedOperationException - if the PO type does not have a "single" key |
129 |
123 |
|
* @throws DBException - other Exception regarding the OR layer |
130 |
124 |
|
*/ |
131 |
|
- |
public <T extends PersistentObject> List<T> findAllByKeys( Class<T> pPersistedObjectClass, |
132 |
|
- |
Collection pKeys, OrderBy pOrderBy ) |
|
125 |
+ |
public <T extends PersistentObject> List<T> findAllByKeys( Class<T> pPersistedObjectClass, Collection pKeys, OrderBy pOrderBy ) |
133 |
126 |
|
throws UnsupportedOperationException, DBException; |
134 |
127 |
|
|
135 |
128 |
|
/** |
|
@@ -142,8 +135,7 @@ |
142 |
135 |
|
* @throws UnsupportedOperationException - if the PO type does not have a "single" key |
143 |
136 |
|
* @throws DBException - other Exception regarding the OR layer |
144 |
137 |
|
*/ |
145 |
|
- |
public List<PersistentObject<?>> findAllByKeys( String pPersistedObjectRegistrationName, |
146 |
|
- |
Collection pKeys ) |
|
138 |
+ |
public List<PersistentObject<?>> findAllByKeys( String pPersistedObjectRegistrationName, Collection pKeys ) |
147 |
139 |
|
throws UnsupportedOperationException, DBException; |
148 |
140 |
|
|
149 |
141 |
|
/** |
|
@@ -155,8 +147,7 @@ |
155 |
147 |
|
* @throws UnsupportedOperationException - if the PO type does not have a "single" key |
156 |
148 |
|
* @throws DBException - other Exception regarding the OR layer |
157 |
149 |
|
*/ |
158 |
|
- |
public <T extends PersistentObject> List<T> findAllByKeys( Class<T> pPersistedObjectClass, |
159 |
|
- |
Collection pKeys ) |
|
150 |
+ |
public <T extends PersistentObject> List<T> findAllByKeys( Class<T> pPersistedObjectClass, Collection pKeys ) |
160 |
151 |
|
throws UnsupportedOperationException, DBException; |
161 |
152 |
|
|
162 |
153 |
|
/** |
|
@@ -168,8 +159,7 @@ |
168 |
159 |
|
* |
169 |
160 |
|
* @throws DBException - Exception regarding the OR layer |
170 |
161 |
|
*/ |
171 |
|
- |
public PersistentObject<?> findOne( String pPersistedObjectRegistrationName, |
172 |
|
- |
WhereClause pSelectionWhereClause ) |
|
162 |
+ |
public PersistentObject<?> findOne( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause ) |
173 |
163 |
|
throws DBException; |
174 |
164 |
|
|
175 |
165 |
|
/** |
|
@@ -180,8 +170,7 @@ |
180 |
170 |
|
* |
181 |
171 |
|
* @throws DBException - Exception regarding the OR layer |
182 |
172 |
|
*/ |
183 |
|
- |
public <T extends PersistentObject> T findOne( Class<T> pPersistedObjectClass, |
184 |
|
- |
WhereClause pSelectionWhereClause ) |
|
173 |
+ |
public <T extends PersistentObject> T findOne( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause ) |
185 |
174 |
|
throws DBException; |
186 |
175 |
|
|
187 |
176 |
|
/** |
|
@@ -193,8 +182,7 @@ |
193 |
182 |
|
* |
194 |
183 |
|
* @throws DBException - Exception regarding the OR layer |
195 |
184 |
|
*/ |
196 |
|
- |
public PersistentObject<?> findOne( String pPersistedObjectRegistrationName, |
197 |
|
- |
PersistentObjectUniqueKey pPersistentObjectUniqueKey ) |
|
185 |
+ |
public PersistentObject<?> findOne( String pPersistedObjectRegistrationName, PersistentObjectUniqueKey pPersistentObjectUniqueKey ) |
198 |
186 |
|
throws DBException; |
199 |
187 |
|
|
200 |
188 |
|
/** |
|
@@ -205,8 +193,7 @@ |
205 |
193 |
|
* |
206 |
194 |
|
* @throws DBException - Exception regarding the OR layer |
207 |
195 |
|
*/ |
208 |
|
- |
public <T extends PersistentObject> T findOne( Class<T> pPersistedObjectClass, |
209 |
|
- |
PersistentObjectUniqueKey pPersistentObjectUniqueKey ) |
|
196 |
+ |
public <T extends PersistentObject> T findOne( Class<T> pPersistedObjectClass, PersistentObjectUniqueKey pPersistentObjectUniqueKey ) |
210 |
197 |
|
throws DBException; |
211 |
198 |
|
|
212 |
199 |
|
/** |
|
@@ -254,8 +241,7 @@ |
254 |
241 |
|
* |
255 |
242 |
|
* @throws IllegalArgumentException - if either the PO reference is invalid or the Key can not be parsed |
256 |
243 |
|
*/ |
257 |
|
- |
public PersistentObjectUniqueKey createPersistentObjectUniqueKeyFrom( |
258 |
|
- |
String pPersistedObjectRegistrationName, String pKeyToString ) |
|
244 |
+ |
public PersistentObjectUniqueKey createPersistentObjectUniqueKeyFrom( String pPersistedObjectRegistrationName, String pKeyToString ) |
259 |
245 |
|
throws IllegalArgumentException; |
260 |
246 |
|
|
261 |
247 |
|
/** |
|
@@ -266,8 +252,7 @@ |
266 |
252 |
|
* |
267 |
253 |
|
* @throws IllegalArgumentException - if either the PO reference is invalid or the Key can not be parsed |
268 |
254 |
|
*/ |
269 |
|
- |
public PersistentObjectUniqueKey createPersistentObjectUniqueKeyFrom( |
270 |
|
- |
Class<? extends PersistentObject> pPersistedObjectClass, String pKeyToString ) |
|
255 |
+ |
public PersistentObjectUniqueKey createPersistentObjectUniqueKeyFrom( Class<? extends PersistentObject> pPersistedObjectClass, String pKeyToString ) |
271 |
256 |
|
throws IllegalArgumentException; |
272 |
257 |
|
|
273 |
258 |
|
/** |