Mercurial > hg > openmind
diff src/main/java/org/mpi/openmind/cache/WrapperService.java @ 35:1cd9d9a67cad
added regular expression match option to AttributeFilter and searchEntityByAttribute.
added regexp() function to mysql dialect to use mysql REGEXP.
author | casties |
---|---|
date | Mon, 29 Aug 2016 20:16:53 +0200 |
parents | e52f593f9e0d |
children | 63fe33172397 |
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/cache/WrapperService.java Fri Aug 26 19:09:57 2016 +0200 +++ b/src/main/java/org/mpi/openmind/cache/WrapperService.java Mon Aug 29 20:16:53 2016 +0200 @@ -49,7 +49,16 @@ srcObjClass); } - public Map<Entity, Attribute> searchEntityByAttributeFilter( + /** + * Search entities matching a list of attribute filters. + * + * Returns a Map of Entities and Attributes. + * + * @param filters + * @param maxResult + * @return + */ + public Map<Entity, Attribute> searchEntityByAttributeFilter ( List<AttributeFilter> filters, int maxResult) { return this.getPS().searchEntityByAttributeFilter(filters, maxResult); }