package com.neusoft.smart.pos.inventory.persistent.domain;

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

public class inventoryGoodsThirdpartyExtendExample {
    
    protected String orderByClause;
    
    protected boolean distinct;
    
    protected List<Criteria> oredCriteria;
    
    private Integer offset;
    
    private Integer limit;
    
    public inventoryGoodsThirdpartyExtendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }
    
    public String getOrderByClause() {
        return orderByClause;
    }
    
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }
    
    public boolean isDistinct() {
        return distinct;
    }
    
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }
    
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }
    
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }
    
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }
    
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }
    
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }
    
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        this.offset = null;
        this.limit = null;
    }
    
    public Integer getOffset() {
        return this.offset;
    }
    
    public void setOffset(Integer offset) {
        this.offset = offset;
    }
    
    public Integer getLimit() {
        return this.limit;
    }
    
    public void setLimit(Integer limit) {
        this.limit = limit;
    }
    
    public inventoryGoodsThirdpartyExtendExample page(int offset, int limit) {
        this.offset = offset;
        this.limit = limit;
        return this;
    }
    
    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 andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeIsNull() {
            addCriterion("type_code is null");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeIsNotNull() {
            addCriterion("type_code is not null");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeEqualTo(String value) {
            addCriterion("type_code =", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeNotEqualTo(String value) {
            addCriterion("type_code <>", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeGreaterThan(String value) {
            addCriterion("type_code >", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeGreaterThanOrEqualTo(String value) {
            addCriterion("type_code >=", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeLessThan(String value) {
            addCriterion("type_code <", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeLessThanOrEqualTo(String value) {
            addCriterion("type_code <=", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeLike(String value) {
            addCriterion("type_code like", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeNotLike(String value) {
            addCriterion("type_code not like", value, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeIn(List<String> values) {
            addCriterion("type_code in", values, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeNotIn(List<String> values) {
            addCriterion("type_code not in", values, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeBetween(String value1, String value2) {
            addCriterion("type_code between", value1, value2, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andTypeCodeNotBetween(String value1, String value2) {
            addCriterion("type_code not between", value1, value2, "typeCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeIsNull() {
            addCriterion("goods_code is null");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeIsNotNull() {
            addCriterion("goods_code is not null");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeEqualTo(String value) {
            addCriterion("goods_code =", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeNotEqualTo(String value) {
            addCriterion("goods_code <>", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeGreaterThan(String value) {
            addCriterion("goods_code >", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeGreaterThanOrEqualTo(String value) {
            addCriterion("goods_code >=", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeLessThan(String value) {
            addCriterion("goods_code <", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeLessThanOrEqualTo(String value) {
            addCriterion("goods_code <=", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeLike(String value) {
            addCriterion("goods_code like", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeNotLike(String value) {
            addCriterion("goods_code not like", value, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeIn(List<String> values) {
            addCriterion("goods_code in", values, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeNotIn(List<String> values) {
            addCriterion("goods_code not in", values, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeBetween(String value1, String value2) {
            addCriterion("goods_code between", value1, value2, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andGoodsCodeNotBetween(String value1, String value2) {
            addCriterion("goods_code not between", value1, value2, "goodsCode");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1IsNull() {
            addCriterion("code_extend_1 is null");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1IsNotNull() {
            addCriterion("code_extend_1 is not null");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1EqualTo(String value) {
            addCriterion("code_extend_1 =", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1NotEqualTo(String value) {
            addCriterion("code_extend_1 <>", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1GreaterThan(String value) {
            addCriterion("code_extend_1 >", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1GreaterThanOrEqualTo(String value) {
            addCriterion("code_extend_1 >=", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1LessThan(String value) {
            addCriterion("code_extend_1 <", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1LessThanOrEqualTo(String value) {
            addCriterion("code_extend_1 <=", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1Like(String value) {
            addCriterion("code_extend_1 like", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1NotLike(String value) {
            addCriterion("code_extend_1 not like", value, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1In(List<String> values) {
            addCriterion("code_extend_1 in", values, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1NotIn(List<String> values) {
            addCriterion("code_extend_1 not in", values, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1Between(String value1, String value2) {
            addCriterion("code_extend_1 between", value1, value2, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend1NotBetween(String value1, String value2) {
            addCriterion("code_extend_1 not between", value1, value2, "codeExtend1");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2IsNull() {
            addCriterion("code_extend_2 is null");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2IsNotNull() {
            addCriterion("code_extend_2 is not null");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2EqualTo(String value) {
            addCriterion("code_extend_2 =", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2NotEqualTo(String value) {
            addCriterion("code_extend_2 <>", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2GreaterThan(String value) {
            addCriterion("code_extend_2 >", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2GreaterThanOrEqualTo(String value) {
            addCriterion("code_extend_2 >=", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2LessThan(String value) {
            addCriterion("code_extend_2 <", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2LessThanOrEqualTo(String value) {
            addCriterion("code_extend_2 <=", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2Like(String value) {
            addCriterion("code_extend_2 like", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2NotLike(String value) {
            addCriterion("code_extend_2 not like", value, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2In(List<String> values) {
            addCriterion("code_extend_2 in", values, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2NotIn(List<String> values) {
            addCriterion("code_extend_2 not in", values, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2Between(String value1, String value2) {
            addCriterion("code_extend_2 between", value1, value2, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend2NotBetween(String value1, String value2) {
            addCriterion("code_extend_2 not between", value1, value2, "codeExtend2");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3IsNull() {
            addCriterion("code_extend_3 is null");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3IsNotNull() {
            addCriterion("code_extend_3 is not null");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3EqualTo(String value) {
            addCriterion("code_extend_3 =", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3NotEqualTo(String value) {
            addCriterion("code_extend_3 <>", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3GreaterThan(String value) {
            addCriterion("code_extend_3 >", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3GreaterThanOrEqualTo(String value) {
            addCriterion("code_extend_3 >=", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3LessThan(String value) {
            addCriterion("code_extend_3 <", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3LessThanOrEqualTo(String value) {
            addCriterion("code_extend_3 <=", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3Like(String value) {
            addCriterion("code_extend_3 like", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3NotLike(String value) {
            addCriterion("code_extend_3 not like", value, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3In(List<String> values) {
            addCriterion("code_extend_3 in", values, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3NotIn(List<String> values) {
            addCriterion("code_extend_3 not in", values, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3Between(String value1, String value2) {
            addCriterion("code_extend_3 between", value1, value2, "codeExtend3");
            return (Criteria) this;
        }
        
        public Criteria andCodeExtend3NotBetween(String value1, String value2) {
            addCriterion("code_extend_3 not between", value1, value2, "codeExtend3");
            return (Criteria) this;
        }
    }
    
    public static class Criteria extends GeneratedCriteria {
        
        protected Criteria() {
            super();
        }
    }
    
    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;
        
        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);
        }
        
        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;
        }
    }
}