package com.gyee.frame.model.auto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

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

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

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

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

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

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

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

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

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

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

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table WINDTURBINEPOWERCURVEFITTING
     *
     * @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 WINDTURBINEPOWERCURVEFITTING
     *
     * @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 WINDTURBINEPOWERCURVEFITTING
     *
     * @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 WINDTURBINEPOWERCURVEFITTING
     *
     * @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 WINDTURBINEPOWERCURVEFITTING
     *
     * @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 andWindturbineidIsNull() {
            addCriterion("WINDTURBINEID is null");
            return (Criteria) this;
        }

        public Criteria andWindturbineidIsNotNull() {
            addCriterion("WINDTURBINEID is not null");
            return (Criteria) this;
        }

        public Criteria andWindturbineidEqualTo(String value) {
            addCriterion("WINDTURBINEID =", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidNotEqualTo(String value) {
            addCriterion("WINDTURBINEID <>", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidGreaterThan(String value) {
            addCriterion("WINDTURBINEID >", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidGreaterThanOrEqualTo(String value) {
            addCriterion("WINDTURBINEID >=", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidLessThan(String value) {
            addCriterion("WINDTURBINEID <", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidLessThanOrEqualTo(String value) {
            addCriterion("WINDTURBINEID <=", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidLike(String value) {
            addCriterion("WINDTURBINEID like", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidNotLike(String value) {
            addCriterion("WINDTURBINEID not like", value, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidIn(List<String> values) {
            addCriterion("WINDTURBINEID in", values, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidNotIn(List<String> values) {
            addCriterion("WINDTURBINEID not in", values, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidBetween(String value1, String value2) {
            addCriterion("WINDTURBINEID between", value1, value2, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andWindturbineidNotBetween(String value1, String value2) {
            addCriterion("WINDTURBINEID not between", value1, value2, "windturbineid");
            return (Criteria) this;
        }

        public Criteria andSpeedIsNull() {
            addCriterion("SPEED is null");
            return (Criteria) this;
        }

        public Criteria andSpeedIsNotNull() {
            addCriterion("SPEED is not null");
            return (Criteria) this;
        }

        public Criteria andSpeedEqualTo(BigDecimal value) {
            addCriterion("SPEED =", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedNotEqualTo(BigDecimal value) {
            addCriterion("SPEED <>", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedGreaterThan(BigDecimal value) {
            addCriterion("SPEED >", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SPEED >=", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedLessThan(BigDecimal value) {
            addCriterion("SPEED <", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SPEED <=", value, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedIn(List<BigDecimal> values) {
            addCriterion("SPEED in", values, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedNotIn(List<BigDecimal> values) {
            addCriterion("SPEED not in", values, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SPEED between", value1, value2, "speed");
            return (Criteria) this;
        }

        public Criteria andSpeedNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SPEED not between", value1, value2, "speed");
            return (Criteria) this;
        }

        public Criteria andActualpowerIsNull() {
            addCriterion("ACTUALPOWER is null");
            return (Criteria) this;
        }

        public Criteria andActualpowerIsNotNull() {
            addCriterion("ACTUALPOWER is not null");
            return (Criteria) this;
        }

        public Criteria andActualpowerEqualTo(BigDecimal value) {
            addCriterion("ACTUALPOWER =", value, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerNotEqualTo(BigDecimal value) {
            addCriterion("ACTUALPOWER <>", value, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerGreaterThan(BigDecimal value) {
            addCriterion("ACTUALPOWER >", value, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ACTUALPOWER >=", value, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerLessThan(BigDecimal value) {
            addCriterion("ACTUALPOWER <", value, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ACTUALPOWER <=", value, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerIn(List<BigDecimal> values) {
            addCriterion("ACTUALPOWER in", values, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerNotIn(List<BigDecimal> values) {
            addCriterion("ACTUALPOWER not in", values, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ACTUALPOWER between", value1, value2, "actualpower");
            return (Criteria) this;
        }

        public Criteria andActualpowerNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ACTUALPOWER not between", value1, value2, "actualpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerIsNull() {
            addCriterion("OPTIMALPOWER is null");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerIsNotNull() {
            addCriterion("OPTIMALPOWER is not null");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerEqualTo(BigDecimal value) {
            addCriterion("OPTIMALPOWER =", value, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerNotEqualTo(BigDecimal value) {
            addCriterion("OPTIMALPOWER <>", value, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerGreaterThan(BigDecimal value) {
            addCriterion("OPTIMALPOWER >", value, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("OPTIMALPOWER >=", value, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerLessThan(BigDecimal value) {
            addCriterion("OPTIMALPOWER <", value, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerLessThanOrEqualTo(BigDecimal value) {
            addCriterion("OPTIMALPOWER <=", value, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerIn(List<BigDecimal> values) {
            addCriterion("OPTIMALPOWER in", values, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerNotIn(List<BigDecimal> values) {
            addCriterion("OPTIMALPOWER not in", values, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("OPTIMALPOWER between", value1, value2, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andOptimalpowerNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("OPTIMALPOWER not between", value1, value2, "optimalpower");
            return (Criteria) this;
        }

        public Criteria andMainidIsNull() {
            addCriterion("MAINID is null");
            return (Criteria) this;
        }

        public Criteria andMainidIsNotNull() {
            addCriterion("MAINID is not null");
            return (Criteria) this;
        }

        public Criteria andMainidEqualTo(String value) {
            addCriterion("MAINID =", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidNotEqualTo(String value) {
            addCriterion("MAINID <>", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidGreaterThan(String value) {
            addCriterion("MAINID >", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidGreaterThanOrEqualTo(String value) {
            addCriterion("MAINID >=", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidLessThan(String value) {
            addCriterion("MAINID <", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidLessThanOrEqualTo(String value) {
            addCriterion("MAINID <=", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidLike(String value) {
            addCriterion("MAINID like", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidNotLike(String value) {
            addCriterion("MAINID not like", value, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidIn(List<String> values) {
            addCriterion("MAINID in", values, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidNotIn(List<String> values) {
            addCriterion("MAINID not in", values, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidBetween(String value1, String value2) {
            addCriterion("MAINID between", value1, value2, "mainid");
            return (Criteria) this;
        }

        public Criteria andMainidNotBetween(String value1, String value2) {
            addCriterion("MAINID not between", value1, value2, "mainid");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerIsNull() {
            addCriterion("OPTMALPOWER is null");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerIsNotNull() {
            addCriterion("OPTMALPOWER is not null");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerEqualTo(Double value) {
            addCriterion("OPTMALPOWER =", value, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerNotEqualTo(Double value) {
            addCriterion("OPTMALPOWER <>", value, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerGreaterThan(Double value) {
            addCriterion("OPTMALPOWER >", value, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerGreaterThanOrEqualTo(Double value) {
            addCriterion("OPTMALPOWER >=", value, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerLessThan(Double value) {
            addCriterion("OPTMALPOWER <", value, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerLessThanOrEqualTo(Double value) {
            addCriterion("OPTMALPOWER <=", value, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerIn(List<Double> values) {
            addCriterion("OPTMALPOWER in", values, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerNotIn(List<Double> values) {
            addCriterion("OPTMALPOWER not in", values, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerBetween(Double value1, Double value2) {
            addCriterion("OPTMALPOWER between", value1, value2, "optmalpower");
            return (Criteria) this;
        }

        public Criteria andOptmalpowerNotBetween(Double value1, Double value2) {
            addCriterion("OPTMALPOWER not between", value1, value2, "optmalpower");
            return (Criteria) this;
        }
    }

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