Revision bcbe5633
Added by Andreas Müller almost 3 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/common/ICdmEntityDao.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.cdm.persistence.query.Grouping; |
27 | 27 |
import eu.etaxonomy.cdm.persistence.query.MatchMode; |
28 | 28 |
import eu.etaxonomy.cdm.persistence.query.OrderHint; |
29 |
import javassist.tools.rmi.ObjectNotFoundException; |
|
29 | 30 |
|
30 | 31 |
/** |
31 | 32 |
* An data access interface that all data access classes implement |
... | ... | |
307 | 308 |
*/ |
308 | 309 |
public T load(int id, List<String> propertyPaths); |
309 | 310 |
|
311 |
/** |
|
312 |
* Returns a proxy object for the given id. |
|
313 |
* This methods wraps {@link Session#load(Class, java.io.Serializable)}. |
|
314 |
* It does not check, if the object really exists but throws an {@link ObjectNotFoundException} |
|
315 |
* exception when no record with given id exists in the database. |
|
316 |
* @return |
|
317 |
* the proxy object |
|
318 |
*/ |
|
319 |
public T loadProxy(int id); |
|
320 |
|
|
310 | 321 |
/** |
311 | 322 |
* @param ids |
312 | 323 |
* @param propertyPaths |
Also available in: Unified diff
ref #9683 add loadProxy method to services and adapt test to work with current auto initialize settings