
pers.zr.opensource.magic.dao.matcher.LikeMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of magic-dao Show documentation
Show all versions of magic-dao Show documentation
simplify to access database with java.
package pers.zr.opensource.magic.dao.matcher;
import pers.zr.opensource.magic.dao.constants.MatchType;
/**
* Created by zhurong on 2016-4-29.
*/
public class LikeMatcher extends Matcher {
private String value;
public LikeMatcher(String column, String value) {
this.column = column;
this.value = "%" + convertSpecialChar(value, MatchType.LIKE) + "%";
}
public Object[] getValues() {
return new String[]{value};
}
@Override
public MatchType getMatchType() {
return MatchType.LIKE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy