Mercurial > hg > openmind
comparison src/main/java/org/mpi/openmind/cache/WrapperService.java @ 39:86c343109257
more comments and cleanup.
author | casties |
---|---|
date | Thu, 13 Oct 2016 19:02:24 +0200 |
parents | cb25e343e317 |
children | fd98c31371cb |
comparison
equal
deleted
inserted
replaced
38:cb25e343e317 | 39:86c343109257 |
---|---|
986 } | 986 } |
987 return ent; | 987 return ent; |
988 } | 988 } |
989 | 989 |
990 /** | 990 /** |
991 * Return an entity with the given id from the cache. | |
992 * | |
991 * The entity returned could be LW or not, it depends on the cache. | 993 * The entity returned could be LW or not, it depends on the cache. |
992 * additionally, it will be always a clone of the version in cache, | 994 * additionally, it will be always a clone of the version in cache, |
993 * therefore it method is thought for editing's issues. | 995 * therefore it method is thought for editing's issues. |
994 * | 996 * |
995 * @param id | 997 * @param id |
998 public Entity getEntityById(Long id) { | 1000 public Entity getEntityById(Long id) { |
999 Entity ent = this.cache.getEntityById(id); | 1001 Entity ent = this.cache.getEntityById(id); |
1000 return ent; | 1002 return ent; |
1001 } | 1003 } |
1002 | 1004 |
1005 /** | |
1006 * Return an entity with the given id from the cache. | |
1007 * | |
1008 * Do not modify the entity! | |
1009 * | |
1010 * @param id | |
1011 * @return | |
1012 */ | |
1003 public Entity getEntityByIdReadOnly(Long id) { | 1013 public Entity getEntityByIdReadOnly(Long id) { |
1004 Entity ent = this.cache.getEntityByIdReadOnly(id); | 1014 Entity ent = this.cache.getEntityByIdReadOnly(id); |
1005 return ent; | 1015 return ent; |
1006 } | 1016 } |
1007 | 1017 |