
pers.zr.opensource.magic.dao.matcher.InMatcher 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 InMatcher extends Matcher {
private Object[] values;
public InMatcher(String column, Object[] values) {
if(null == values || values.length < 1) {
throw new RuntimeException("InMatcher must contains at least one value!");
}
this.column = column;
this.values = values;
}
@Override
public MatchType getMatchType() {
return MatchType.IN;
}
@Override
public Object[] getValues() {
return this.values;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy