Revision 348d552a
Added by Cherian Mathew about 9 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/session/mock/MockCdmEntitySession.java | ||
---|---|---|
34 | 34 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySession#load(java.lang.Object) |
35 | 35 |
*/ |
36 | 36 |
@Override |
37 |
public <O extends Object> O load(O obj) { |
|
37 |
public <O extends Object> O load(O obj, boolean update) {
|
|
38 | 38 |
return obj; |
39 | 39 |
} |
40 | 40 |
|
... | ... | |
42 | 42 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySession#load(eu.etaxonomy.cdm.model.common.CdmBase) |
43 | 43 |
*/ |
44 | 44 |
@Override |
45 |
public <T extends CdmBase> T load(T cdmBase) { |
|
45 |
public <T extends CdmBase> T load(T cdmBase, boolean update) {
|
|
46 | 46 |
return cdmBase; |
47 | 47 |
} |
48 | 48 |
|
... | ... | |
50 | 50 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySession#load(java.util.Collection) |
51 | 51 |
*/ |
52 | 52 |
@Override |
53 |
public <T extends CdmBase> Collection<T> load(Collection<T> cdmBaseList) { |
|
53 |
public <T extends CdmBase> Collection<T> load(Collection<T> cdmBaseList, boolean update) {
|
|
54 | 54 |
return cdmBaseList; |
55 | 55 |
} |
56 | 56 |
|
... | ... | |
245 | 245 |
return null; |
246 | 246 |
} |
247 | 247 |
|
248 |
/* (non-Javadoc) |
|
249 |
* @see eu.etaxonomy.taxeditor.session.ICdmEntitySession#update(eu.etaxonomy.cdm.model.common.ICdmBase, eu.etaxonomy.cdm.model.common.CdmBase) |
|
250 |
*/ |
|
251 |
@Override |
|
252 |
public <T extends ICdmBase> void update(T cdmBase, CdmBase affectedObject) { |
|
253 |
|
|
254 |
} |
|
255 |
|
|
256 |
|
|
248 | 257 |
} |
Also available in: Unified diff
AbstractPersistentCollection : fixed loading of collection
MockCdmEntitySessionManager, MockCdmEntitySession, ICdmEntitySessionManager, ICdmEntitySession, CdmEntitySessionManager,
CdmEntitySession : added new load method with choice to update client object graph
TermServiceRequestExecutor : using cacher instead of cache
ICachedCommonService, CachedCommonServiceImpl, ProxyUtils : moved utility methods to utility class
CdmServiceRequestExecutor : updating client object graph when calling merge
EntityCacherDebugResult : corrections for output string
CdmTransientEntityCacher : corrected cache configuration, added load methods with update choice, added service cacher check before put
CacheLoader : checking in recursive call if collection and maps are already visited
CdmRemotingException : added constructor with exception as argument
CdmServiceCacher : corrected cache configuration and loading of entities from default cache