Revision 793ad48e
Added by Andreas Müller over 6 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ICommonService.java | ||
---|---|---|
162 | 162 |
* @param id |
163 | 163 |
* @return |
164 | 164 |
*/ |
165 |
public CdmBase findWithUpdate(Class<? extends CdmBase> clazz, int id);
|
|
165 |
public <T extends CdmBase> T findWithUpdate(Class<T> clazz, int id);
|
|
166 | 166 |
|
167 | 167 |
/** |
168 | 168 |
* A generic method to retrieve any CdmBase object by its id and class.<BR> |
... | ... | |
173 | 173 |
* @return the CdmBase object defined by clazz and id |
174 | 174 |
* @see #find(Class, int, List) |
175 | 175 |
*/ |
176 |
public CdmBase find(Class<? extends CdmBase> clazz, int id);
|
|
176 |
public <T extends CdmBase> T find(Class<T> clazz, int id);
|
|
177 | 177 |
|
178 | 178 |
/** |
179 | 179 |
* @param clazz the Class of the obejct to find |
... | ... | |
182 | 182 |
* @return |
183 | 183 |
* @see #find(Class, int) |
184 | 184 |
*/ |
185 |
public CdmBase find(Class<? extends CdmBase> clazz, int id, List<String> propertyPaths);
|
|
185 |
public <T extends CdmBase> T find(Class<T> clazz, int id, List<String> propertyPaths);
|
|
186 | 186 |
|
187 | 187 |
/** |
188 | 188 |
* A generic method to retrieve any CdmBase object by its uuid and class.<BR> |
Also available in: Unified diff
cleanup and improved generics for commonservice findXXX methods