Mercurial > hg > openmind
comparison src/main/java/org/mpi/openmind/repository/services/utils/AttributeFilter.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 | 615d27dce9b3 |
children | 70a02006675c |
comparison
equal
deleted
inserted
replaced
34:5737ab564b94 | 35:1cd9d9a67cad |
---|---|
3 | 3 |
4 /** | 4 /** |
5 * | 5 * |
6 * @author jurzua | 6 * @author jurzua |
7 */ | 7 */ |
8 public class AttributeFilter extends Filter{ | 8 public class AttributeFilter extends Filter { |
9 private String name; | 9 private String name; |
10 private String entObjectClass; | 10 private String entObjectClass; |
11 | |
12 public AttributeFilter(){} | 11 public AttributeFilter(){} |
13 | 12 |
14 public AttributeFilter(String name, String value, String entObjectClass){ | 13 public AttributeFilter(String name, String value, String entObjectClass){ |
15 this.setEntObjectClass(entObjectClass); | 14 this.setEntObjectClass(entObjectClass); |
16 this.setOwnValue(value); | 15 this.setOwnValue(value); |
17 this.setName(name); | 16 this.setName(name); |
17 } | |
18 | |
19 public AttributeFilter(String name, String value, String entObjectClass, boolean isRegex){ | |
20 this.setEntObjectClass(entObjectClass); | |
21 this.setOwnValue(value); | |
22 this.setName(name); | |
23 this.setRegex(isRegex); | |
18 } | 24 } |
19 | 25 |
20 public String getEntObjectClass() { | 26 public String getEntObjectClass() { |
21 return entObjectClass; | 27 return entObjectClass; |
22 } | 28 } |