package com.gyee.frame.model.auto;

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

public class GyeePermissionExample {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    protected String orderByClause;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    protected boolean distinct;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    protected List<Criteria> oredCriteria;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public GyeePermissionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    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 GYEEPERMISSION
     *
     * @mbg.generated
     */
    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 GYEEPERMISSION
     *
     * @mbg.generated
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    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(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

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

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

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

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

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

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

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

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

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

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

        public Criteria andPermisssionlevelIsNull() {
            addCriterion("PERMISSSIONLEVEL is null");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelIsNotNull() {
            addCriterion("PERMISSSIONLEVEL is not null");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelEqualTo(String value) {
            addCriterion("PERMISSSIONLEVEL =", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelNotEqualTo(String value) {
            addCriterion("PERMISSSIONLEVEL <>", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelGreaterThan(String value) {
            addCriterion("PERMISSSIONLEVEL >", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelGreaterThanOrEqualTo(String value) {
            addCriterion("PERMISSSIONLEVEL >=", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelLessThan(String value) {
            addCriterion("PERMISSSIONLEVEL <", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelLessThanOrEqualTo(String value) {
            addCriterion("PERMISSSIONLEVEL <=", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelLike(String value) {
            addCriterion("PERMISSSIONLEVEL like", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelNotLike(String value) {
            addCriterion("PERMISSSIONLEVEL not like", value, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelIn(List<String> values) {
            addCriterion("PERMISSSIONLEVEL in", values, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelNotIn(List<String> values) {
            addCriterion("PERMISSSIONLEVEL not in", values, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelBetween(String value1, String value2) {
            addCriterion("PERMISSSIONLEVEL between", value1, value2, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionlevelNotBetween(String value1, String value2) {
            addCriterion("PERMISSSIONLEVEL not between", value1, value2, "permisssionlevel");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameIsNull() {
            addCriterion("PERMISSSIONNAME is null");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameIsNotNull() {
            addCriterion("PERMISSSIONNAME is not null");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameEqualTo(String value) {
            addCriterion("PERMISSSIONNAME =", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameNotEqualTo(String value) {
            addCriterion("PERMISSSIONNAME <>", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameGreaterThan(String value) {
            addCriterion("PERMISSSIONNAME >", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameGreaterThanOrEqualTo(String value) {
            addCriterion("PERMISSSIONNAME >=", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameLessThan(String value) {
            addCriterion("PERMISSSIONNAME <", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameLessThanOrEqualTo(String value) {
            addCriterion("PERMISSSIONNAME <=", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameLike(String value) {
            addCriterion("PERMISSSIONNAME like", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameNotLike(String value) {
            addCriterion("PERMISSSIONNAME not like", value, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameIn(List<String> values) {
            addCriterion("PERMISSSIONNAME in", values, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameNotIn(List<String> values) {
            addCriterion("PERMISSSIONNAME not in", values, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameBetween(String value1, String value2) {
            addCriterion("PERMISSSIONNAME between", value1, value2, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andPermisssionnameNotBetween(String value1, String value2) {
            addCriterion("PERMISSSIONNAME not between", value1, value2, "permisssionname");
            return (Criteria) this;
        }

        public Criteria andDescribesIsNull() {
            addCriterion("DESCRIBES is null");
            return (Criteria) this;
        }

        public Criteria andDescribesIsNotNull() {
            addCriterion("DESCRIBES is not null");
            return (Criteria) this;
        }

        public Criteria andDescribesEqualTo(String value) {
            addCriterion("DESCRIBES =", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesNotEqualTo(String value) {
            addCriterion("DESCRIBES <>", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesGreaterThan(String value) {
            addCriterion("DESCRIBES >", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesGreaterThanOrEqualTo(String value) {
            addCriterion("DESCRIBES >=", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesLessThan(String value) {
            addCriterion("DESCRIBES <", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesLessThanOrEqualTo(String value) {
            addCriterion("DESCRIBES <=", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesLike(String value) {
            addCriterion("DESCRIBES like", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesNotLike(String value) {
            addCriterion("DESCRIBES not like", value, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesIn(List<String> values) {
            addCriterion("DESCRIBES in", values, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesNotIn(List<String> values) {
            addCriterion("DESCRIBES not in", values, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesBetween(String value1, String value2) {
            addCriterion("DESCRIBES between", value1, value2, "describes");
            return (Criteria) this;
        }

        public Criteria andDescribesNotBetween(String value1, String value2) {
            addCriterion("DESCRIBES not between", value1, value2, "describes");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNull() {
            addCriterion("REMARK1 is null");
            return (Criteria) this;
        }

        public Criteria andRemark1IsNotNull() {
            addCriterion("REMARK1 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark1EqualTo(String value) {
            addCriterion("REMARK1 =", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotEqualTo(String value) {
            addCriterion("REMARK1 <>", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThan(String value) {
            addCriterion("REMARK1 >", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1GreaterThanOrEqualTo(String value) {
            addCriterion("REMARK1 >=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThan(String value) {
            addCriterion("REMARK1 <", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1LessThanOrEqualTo(String value) {
            addCriterion("REMARK1 <=", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Like(String value) {
            addCriterion("REMARK1 like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotLike(String value) {
            addCriterion("REMARK1 not like", value, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1In(List<String> values) {
            addCriterion("REMARK1 in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotIn(List<String> values) {
            addCriterion("REMARK1 not in", values, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1Between(String value1, String value2) {
            addCriterion("REMARK1 between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark1NotBetween(String value1, String value2) {
            addCriterion("REMARK1 not between", value1, value2, "remark1");
            return (Criteria) this;
        }

        public Criteria andRemark2IsNull() {
            addCriterion("REMARK2 is null");
            return (Criteria) this;
        }

        public Criteria andRemark2IsNotNull() {
            addCriterion("REMARK2 is not null");
            return (Criteria) this;
        }

        public Criteria andRemark2EqualTo(String value) {
            addCriterion("REMARK2 =", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotEqualTo(String value) {
            addCriterion("REMARK2 <>", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2GreaterThan(String value) {
            addCriterion("REMARK2 >", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2GreaterThanOrEqualTo(String value) {
            addCriterion("REMARK2 >=", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2LessThan(String value) {
            addCriterion("REMARK2 <", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2LessThanOrEqualTo(String value) {
            addCriterion("REMARK2 <=", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2Like(String value) {
            addCriterion("REMARK2 like", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotLike(String value) {
            addCriterion("REMARK2 not like", value, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2In(List<String> values) {
            addCriterion("REMARK2 in", values, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotIn(List<String> values) {
            addCriterion("REMARK2 not in", values, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2Between(String value1, String value2) {
            addCriterion("REMARK2 between", value1, value2, "remark2");
            return (Criteria) this;
        }

        public Criteria andRemark2NotBetween(String value1, String value2) {
            addCriterion("REMARK2 not between", value1, value2, "remark2");
            return (Criteria) this;
        }

        public Criteria andParentIsNull() {
            addCriterion("PARENT is null");
            return (Criteria) this;
        }

        public Criteria andParentIsNotNull() {
            addCriterion("PARENT is not null");
            return (Criteria) this;
        }

        public Criteria andParentEqualTo(String value) {
            addCriterion("PARENT =", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotEqualTo(String value) {
            addCriterion("PARENT <>", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentGreaterThan(String value) {
            addCriterion("PARENT >", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentGreaterThanOrEqualTo(String value) {
            addCriterion("PARENT >=", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentLessThan(String value) {
            addCriterion("PARENT <", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentLessThanOrEqualTo(String value) {
            addCriterion("PARENT <=", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentLike(String value) {
            addCriterion("PARENT like", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotLike(String value) {
            addCriterion("PARENT not like", value, "parent");
            return (Criteria) this;
        }

        public Criteria andParentIn(List<String> values) {
            addCriterion("PARENT in", values, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotIn(List<String> values) {
            addCriterion("PARENT not in", values, "parent");
            return (Criteria) this;
        }

        public Criteria andParentBetween(String value1, String value2) {
            addCriterion("PARENT between", value1, value2, "parent");
            return (Criteria) this;
        }

        public Criteria andParentNotBetween(String value1, String value2) {
            addCriterion("PARENT not between", value1, value2, "parent");
            return (Criteria) this;
        }

        public Criteria andIsableIsNull() {
            addCriterion("ISABLE is null");
            return (Criteria) this;
        }

        public Criteria andIsableIsNotNull() {
            addCriterion("ISABLE is not null");
            return (Criteria) this;
        }

        public Criteria andIsableEqualTo(String value) {
            addCriterion("ISABLE =", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableNotEqualTo(String value) {
            addCriterion("ISABLE <>", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableGreaterThan(String value) {
            addCriterion("ISABLE >", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableGreaterThanOrEqualTo(String value) {
            addCriterion("ISABLE >=", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableLessThan(String value) {
            addCriterion("ISABLE <", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableLessThanOrEqualTo(String value) {
            addCriterion("ISABLE <=", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableLike(String value) {
            addCriterion("ISABLE like", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableNotLike(String value) {
            addCriterion("ISABLE not like", value, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableIn(List<String> values) {
            addCriterion("ISABLE in", values, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableNotIn(List<String> values) {
            addCriterion("ISABLE not in", values, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableBetween(String value1, String value2) {
            addCriterion("ISABLE between", value1, value2, "isable");
            return (Criteria) this;
        }

        public Criteria andIsableNotBetween(String value1, String value2) {
            addCriterion("ISABLE not between", value1, value2, "isable");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table GYEEPERMISSION
     *
     * @mbg.generated
     */
    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);
        }
    }
}