Mercurial > hg > openmind
diff src/main/java/org/mpi/openmind/cache/WrapperService.java @ 37:3485498af8c3
small comments and refactoring.
author | casties |
---|---|
date | Wed, 12 Oct 2016 15:33:56 +0200 |
parents | 63fe33172397 |
children | cb25e343e317 |
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/cache/WrapperService.java Tue Oct 11 20:55:36 2016 +0200 +++ b/src/main/java/org/mpi/openmind/cache/WrapperService.java Wed Oct 12 15:33:56 2016 +0200 @@ -74,7 +74,7 @@ if(StringUtils.isEmpty(term)) return rs; - List<Entity> entList = this.cache.getEntitiesByDef(oc); + List<Entity> entList = this.cache.loadEntitiesByDef(oc); term = NormalizerUtils.normalize(term); for(Entity ent : entList){ @@ -204,7 +204,7 @@ } public List<Entity> getEntitiesByDef(String def) { - List<Entity> list = this.cache.getEntitiesByDef(def); + List<Entity> list = this.cache.loadEntitiesByDef(def); return list; } @@ -212,7 +212,7 @@ int maxResults) { List<Entity> result = new ArrayList<Entity>(); if (StringUtils.isNotEmpty(ow)) { - List<Entity> list = this.cache.getEntitiesByDef(def); + List<Entity> list = this.cache.loadEntitiesByDef(def); int count = 0; ow = NormalizerUtils.normalize(ow);