Revision 61c33dfd
Added by Andreas Müller almost 3 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/IService.java | ||
---|---|---|
226 | 226 |
public T load(int id, List<String> propertyPaths); |
227 | 227 |
|
228 | 228 |
/** |
229 |
* Returns a proxy object for the given id. |
|
230 |
* This methods wraps {@link Session#load(Class, java.io.Serializable)}. |
|
229 |
* Returns the object for the given id without initializing it. So the returned |
|
230 |
* object usually is a proxy object except for the case when it was already initialized |
|
231 |
* before in the same session.<BR> |
|
232 |
* This methods wraps {@link Session#load(Class, java.io.Serializable)}.<BR> |
|
231 | 233 |
* It does not check, if the object really exists but throws an {@link ObjectNotFoundException} |
232 |
* exception when no record with given id exists in the database. |
|
234 |
* exception when no record with the given id exists in the database.
|
|
233 | 235 |
* @return |
234 |
* the proxy object
|
|
236 |
* the (uninitialized proxy) object
|
|
235 | 237 |
*/ |
236 |
public T loadProxy(int id);
|
|
238 |
public T loadWithoutInitializing(int id);
|
|
237 | 239 |
|
238 | 240 |
/** |
239 | 241 |
* Finds the cdm entity specified by the <code>uuid</code> parameter and |
Also available in: Unified diff
ref #9683 adapt method name and javadoc