All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pers.zr.opensource.magic.dao.matcher.InMatcher Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
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