
cn.icuter.jsql.condition.In Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsql-jdk1.6 Show documentation
Show all versions of jsql-jdk1.6 Show documentation
JDBC framework for writing sql like java programing
The newest version!
package cn.icuter.jsql.condition;
import cn.icuter.jsql.builder.Builder;
import java.util.Collection;
/**
* @author edward
* @since 2018-08-06
*/
public class In extends AbstractCondition {
In(String field, Object value) {
super(field, value);
checkListOrArray(value);
}
In(String field, Builder value) {
super(field, value);
}
private void checkListOrArray(Object value) {
Class> valClass = value.getClass();
if (!Collection.class.isAssignableFrom(valClass) && !valClass.isArray()) {
throw new IllegalArgumentException("value must be a collection or array! ");
}
}
@Override
protected Operation assignOp() {
return Operation.IN;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy