package com.tax.sign.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SgSignLogExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    protected List<Criteria> oredCriteria;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public SgSignLogExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTaxnoIsNull() {
            addCriterion("taxno is null");
            return (Criteria) this;
        }

        public Criteria andTaxnoIsNotNull() {
            addCriterion("taxno is not null");
            return (Criteria) this;
        }

        public Criteria andTaxnoEqualTo(String value) {
            addCriterion("taxno =", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoNotEqualTo(String value) {
            addCriterion("taxno <>", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoGreaterThan(String value) {
            addCriterion("taxno >", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoGreaterThanOrEqualTo(String value) {
            addCriterion("taxno >=", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoLessThan(String value) {
            addCriterion("taxno <", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoLessThanOrEqualTo(String value) {
            addCriterion("taxno <=", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoLike(String value) {
            addCriterion("taxno like", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoNotLike(String value) {
            addCriterion("taxno not like", value, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoIn(List<String> values) {
            addCriterion("taxno in", values, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoNotIn(List<String> values) {
            addCriterion("taxno not in", values, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoBetween(String value1, String value2) {
            addCriterion("taxno between", value1, value2, "taxno");
            return (Criteria) this;
        }

        public Criteria andTaxnoNotBetween(String value1, String value2) {
            addCriterion("taxno not between", value1, value2, "taxno");
            return (Criteria) this;
        }

        public Criteria andReqDateIsNull() {
            addCriterion("req_date is null");
            return (Criteria) this;
        }

        public Criteria andReqDateIsNotNull() {
            addCriterion("req_date is not null");
            return (Criteria) this;
        }

        public Criteria andReqDateEqualTo(Date value) {
            addCriterion("req_date =", value, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateNotEqualTo(Date value) {
            addCriterion("req_date <>", value, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateGreaterThan(Date value) {
            addCriterion("req_date >", value, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateGreaterThanOrEqualTo(Date value) {
            addCriterion("req_date >=", value, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateLessThan(Date value) {
            addCriterion("req_date <", value, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateLessThanOrEqualTo(Date value) {
            addCriterion("req_date <=", value, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateIn(List<Date> values) {
            addCriterion("req_date in", values, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateNotIn(List<Date> values) {
            addCriterion("req_date not in", values, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateBetween(Date value1, Date value2) {
            addCriterion("req_date between", value1, value2, "reqDate");
            return (Criteria) this;
        }

        public Criteria andReqDateNotBetween(Date value1, Date value2) {
            addCriterion("req_date not between", value1, value2, "reqDate");
            return (Criteria) this;
        }

        public Criteria andZoneIsNull() {
            addCriterion("zone is null");
            return (Criteria) this;
        }

        public Criteria andZoneIsNotNull() {
            addCriterion("zone is not null");
            return (Criteria) this;
        }

        public Criteria andZoneEqualTo(String value) {
            addCriterion("zone =", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneNotEqualTo(String value) {
            addCriterion("zone <>", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneGreaterThan(String value) {
            addCriterion("zone >", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneGreaterThanOrEqualTo(String value) {
            addCriterion("zone >=", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneLessThan(String value) {
            addCriterion("zone <", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneLessThanOrEqualTo(String value) {
            addCriterion("zone <=", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneLike(String value) {
            addCriterion("zone like", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneNotLike(String value) {
            addCriterion("zone not like", value, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneIn(List<String> values) {
            addCriterion("zone in", values, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneNotIn(List<String> values) {
            addCriterion("zone not in", values, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneBetween(String value1, String value2) {
            addCriterion("zone between", value1, value2, "zone");
            return (Criteria) this;
        }

        public Criteria andZoneNotBetween(String value1, String value2) {
            addCriterion("zone not between", value1, value2, "zone");
            return (Criteria) this;
        }

        public Criteria andUserCodeIsNull() {
            addCriterion("user_code is null");
            return (Criteria) this;
        }

        public Criteria andUserCodeIsNotNull() {
            addCriterion("user_code is not null");
            return (Criteria) this;
        }

        public Criteria andUserCodeEqualTo(String value) {
            addCriterion("user_code =", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeNotEqualTo(String value) {
            addCriterion("user_code <>", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeGreaterThan(String value) {
            addCriterion("user_code >", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeGreaterThanOrEqualTo(String value) {
            addCriterion("user_code >=", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeLessThan(String value) {
            addCriterion("user_code <", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeLessThanOrEqualTo(String value) {
            addCriterion("user_code <=", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeLike(String value) {
            addCriterion("user_code like", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeNotLike(String value) {
            addCriterion("user_code not like", value, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeIn(List<String> values) {
            addCriterion("user_code in", values, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeNotIn(List<String> values) {
            addCriterion("user_code not in", values, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeBetween(String value1, String value2) {
            addCriterion("user_code between", value1, value2, "userCode");
            return (Criteria) this;
        }

        public Criteria andUserCodeNotBetween(String value1, String value2) {
            addCriterion("user_code not between", value1, value2, "userCode");
            return (Criteria) this;
        }

        public Criteria andReqContextIsNull() {
            addCriterion("req_context is null");
            return (Criteria) this;
        }

        public Criteria andReqContextIsNotNull() {
            addCriterion("req_context is not null");
            return (Criteria) this;
        }

        public Criteria andReqContextEqualTo(String value) {
            addCriterion("req_context =", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextNotEqualTo(String value) {
            addCriterion("req_context <>", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextGreaterThan(String value) {
            addCriterion("req_context >", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextGreaterThanOrEqualTo(String value) {
            addCriterion("req_context >=", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextLessThan(String value) {
            addCriterion("req_context <", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextLessThanOrEqualTo(String value) {
            addCriterion("req_context <=", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextLike(String value) {
            addCriterion("req_context like", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextNotLike(String value) {
            addCriterion("req_context not like", value, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextIn(List<String> values) {
            addCriterion("req_context in", values, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextNotIn(List<String> values) {
            addCriterion("req_context not in", values, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextBetween(String value1, String value2) {
            addCriterion("req_context between", value1, value2, "reqContext");
            return (Criteria) this;
        }

        public Criteria andReqContextNotBetween(String value1, String value2) {
            addCriterion("req_context not between", value1, value2, "reqContext");
            return (Criteria) this;
        }

        public Criteria andResContextIsNull() {
            addCriterion("res_context is null");
            return (Criteria) this;
        }

        public Criteria andResContextIsNotNull() {
            addCriterion("res_context is not null");
            return (Criteria) this;
        }

        public Criteria andResContextEqualTo(String value) {
            addCriterion("res_context =", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextNotEqualTo(String value) {
            addCriterion("res_context <>", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextGreaterThan(String value) {
            addCriterion("res_context >", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextGreaterThanOrEqualTo(String value) {
            addCriterion("res_context >=", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextLessThan(String value) {
            addCriterion("res_context <", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextLessThanOrEqualTo(String value) {
            addCriterion("res_context <=", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextLike(String value) {
            addCriterion("res_context like", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextNotLike(String value) {
            addCriterion("res_context not like", value, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextIn(List<String> values) {
            addCriterion("res_context in", values, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextNotIn(List<String> values) {
            addCriterion("res_context not in", values, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextBetween(String value1, String value2) {
            addCriterion("res_context between", value1, value2, "resContext");
            return (Criteria) this;
        }

        public Criteria andResContextNotBetween(String value1, String value2) {
            addCriterion("res_context not between", value1, value2, "resContext");
            return (Criteria) this;
        }

        public Criteria andResDateIsNull() {
            addCriterion("res_date is null");
            return (Criteria) this;
        }

        public Criteria andResDateIsNotNull() {
            addCriterion("res_date is not null");
            return (Criteria) this;
        }

        public Criteria andResDateEqualTo(Date value) {
            addCriterion("res_date =", value, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateNotEqualTo(Date value) {
            addCriterion("res_date <>", value, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateGreaterThan(Date value) {
            addCriterion("res_date >", value, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateGreaterThanOrEqualTo(Date value) {
            addCriterion("res_date >=", value, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateLessThan(Date value) {
            addCriterion("res_date <", value, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateLessThanOrEqualTo(Date value) {
            addCriterion("res_date <=", value, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateIn(List<Date> values) {
            addCriterion("res_date in", values, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateNotIn(List<Date> values) {
            addCriterion("res_date not in", values, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateBetween(Date value1, Date value2) {
            addCriterion("res_date between", value1, value2, "resDate");
            return (Criteria) this;
        }

        public Criteria andResDateNotBetween(Date value1, Date value2) {
            addCriterion("res_date not between", value1, value2, "resDate");
            return (Criteria) this;
        }

        public Criteria andServerDateWayIsNull() {
            addCriterion("server_date_way is null");
            return (Criteria) this;
        }

        public Criteria andServerDateWayIsNotNull() {
            addCriterion("server_date_way is not null");
            return (Criteria) this;
        }

        public Criteria andServerDateWayEqualTo(String value) {
            addCriterion("server_date_way =", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayNotEqualTo(String value) {
            addCriterion("server_date_way <>", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayGreaterThan(String value) {
            addCriterion("server_date_way >", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayGreaterThanOrEqualTo(String value) {
            addCriterion("server_date_way >=", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayLessThan(String value) {
            addCriterion("server_date_way <", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayLessThanOrEqualTo(String value) {
            addCriterion("server_date_way <=", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayLike(String value) {
            addCriterion("server_date_way like", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayNotLike(String value) {
            addCriterion("server_date_way not like", value, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayIn(List<String> values) {
            addCriterion("server_date_way in", values, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayNotIn(List<String> values) {
            addCriterion("server_date_way not in", values, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayBetween(String value1, String value2) {
            addCriterion("server_date_way between", value1, value2, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andServerDateWayNotBetween(String value1, String value2) {
            addCriterion("server_date_way not between", value1, value2, "serverDateWay");
            return (Criteria) this;
        }

        public Criteria andIpAddressIsNull() {
            addCriterion("ip_address is null");
            return (Criteria) this;
        }

        public Criteria andIpAddressIsNotNull() {
            addCriterion("ip_address is not null");
            return (Criteria) this;
        }

        public Criteria andIpAddressEqualTo(String value) {
            addCriterion("ip_address =", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotEqualTo(String value) {
            addCriterion("ip_address <>", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressGreaterThan(String value) {
            addCriterion("ip_address >", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressGreaterThanOrEqualTo(String value) {
            addCriterion("ip_address >=", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressLessThan(String value) {
            addCriterion("ip_address <", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressLessThanOrEqualTo(String value) {
            addCriterion("ip_address <=", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressLike(String value) {
            addCriterion("ip_address like", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotLike(String value) {
            addCriterion("ip_address not like", value, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressIn(List<String> values) {
            addCriterion("ip_address in", values, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotIn(List<String> values) {
            addCriterion("ip_address not in", values, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressBetween(String value1, String value2) {
            addCriterion("ip_address between", value1, value2, "ipAddress");
            return (Criteria) this;
        }

        public Criteria andIpAddressNotBetween(String value1, String value2) {
            addCriterion("ip_address not between", value1, value2, "ipAddress");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sg_sign_log
     *
     * @mbggenerated do_not_delete_during_merge Wed Nov 21 11:45:26 CST 2018
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table sg_sign_log
     *
     * @mbggenerated Wed Nov 21 11:45:26 CST 2018
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}