
pers.zr.opensource.magic.dao.matcher.RightLikeMatcher 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-5-5.
*/
public class RightLikeMatcher extends Matcher {
private String value;
public RightLikeMatcher(String column, String value) {
this.column = column;
this.value = "%" + convertSpecialChar(value, MatchType.LIKE);
}
@Override
public MatchType getMatchType() {
return MatchType.LIKE;
}
@Override
public Object[] getValues() {
return new String[]{value};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy