package com.gyee.frame.model.auto;

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

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

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

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

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

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

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

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

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

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

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

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

        public Criteria andTimeIsNotNull() {
            addCriterion("time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(String value) {
            addCriterion("time =", value, "time");
            return (Criteria) this;
        }

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

        public Criteria andTimeGreaterThan(String value) {
            addCriterion("time >", value, "time");
            return (Criteria) this;
        }

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

        public Criteria andTimeLessThan(String value) {
            addCriterion("time <", value, "time");
            return (Criteria) this;
        }

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

        public Criteria andTimeLike(String value) {
            addCriterion("time like", value, "time");
            return (Criteria) this;
        }

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

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

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

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

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

        public Criteria andWtidIsNull() {
            addCriterion("wtid is null");
            return (Criteria) this;
        }

        public Criteria andWtidIsNotNull() {
            addCriterion("wtid is not null");
            return (Criteria) this;
        }

        public Criteria andWtidEqualTo(String value) {
            addCriterion("wtid =", value, "wtid");
            return (Criteria) this;
        }

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

        public Criteria andWtidGreaterThan(String value) {
            addCriterion("wtid >", value, "wtid");
            return (Criteria) this;
        }

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

        public Criteria andWtidLessThan(String value) {
            addCriterion("wtid <", value, "wtid");
            return (Criteria) this;
        }

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

        public Criteria andWtidLike(String value) {
            addCriterion("wtid like", value, "wtid");
            return (Criteria) this;
        }

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

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

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

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

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

        public Criteria andRealpowerIsNull() {
            addCriterion("realpower is null");
            return (Criteria) this;
        }

        public Criteria andRealpowerIsNotNull() {
            addCriterion("realpower is not null");
            return (Criteria) this;
        }

        public Criteria andRealpowerEqualTo(Double value) {
            addCriterion("realpower =", value, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerNotEqualTo(Double value) {
            addCriterion("realpower <>", value, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerGreaterThan(Double value) {
            addCriterion("realpower >", value, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerGreaterThanOrEqualTo(Double value) {
            addCriterion("realpower >=", value, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerLessThan(Double value) {
            addCriterion("realpower <", value, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerLessThanOrEqualTo(Double value) {
            addCriterion("realpower <=", value, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerIn(List<Double> values) {
            addCriterion("realpower in", values, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerNotIn(List<Double> values) {
            addCriterion("realpower not in", values, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerBetween(Double value1, Double value2) {
            addCriterion("realpower between", value1, value2, "realpower");
            return (Criteria) this;
        }

        public Criteria andRealpowerNotBetween(Double value1, Double value2) {
            addCriterion("realpower not between", value1, value2, "realpower");
            return (Criteria) this;
        }

        public Criteria andLosspowerIsNull() {
            addCriterion("losspower is null");
            return (Criteria) this;
        }

        public Criteria andLosspowerIsNotNull() {
            addCriterion("losspower is not null");
            return (Criteria) this;
        }

        public Criteria andLosspowerEqualTo(Double value) {
            addCriterion("losspower =", value, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerNotEqualTo(Double value) {
            addCriterion("losspower <>", value, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerGreaterThan(Double value) {
            addCriterion("losspower >", value, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerGreaterThanOrEqualTo(Double value) {
            addCriterion("losspower >=", value, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerLessThan(Double value) {
            addCriterion("losspower <", value, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerLessThanOrEqualTo(Double value) {
            addCriterion("losspower <=", value, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerIn(List<Double> values) {
            addCriterion("losspower in", values, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerNotIn(List<Double> values) {
            addCriterion("losspower not in", values, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerBetween(Double value1, Double value2) {
            addCriterion("losspower between", value1, value2, "losspower");
            return (Criteria) this;
        }

        public Criteria andLosspowerNotBetween(Double value1, Double value2) {
            addCriterion("losspower not between", value1, value2, "losspower");
            return (Criteria) this;
        }

        public Criteria andRateIsNull() {
            addCriterion("rate is null");
            return (Criteria) this;
        }

        public Criteria andRateIsNotNull() {
            addCriterion("rate is not null");
            return (Criteria) this;
        }

        public Criteria andRateEqualTo(Double value) {
            addCriterion("rate =", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotEqualTo(Double value) {
            addCriterion("rate <>", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateGreaterThan(Double value) {
            addCriterion("rate >", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateGreaterThanOrEqualTo(Double value) {
            addCriterion("rate >=", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateLessThan(Double value) {
            addCriterion("rate <", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateLessThanOrEqualTo(Double value) {
            addCriterion("rate <=", value, "rate");
            return (Criteria) this;
        }

        public Criteria andRateIn(List<Double> values) {
            addCriterion("rate in", values, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotIn(List<Double> values) {
            addCriterion("rate not in", values, "rate");
            return (Criteria) this;
        }

        public Criteria andRateBetween(Double value1, Double value2) {
            addCriterion("rate between", value1, value2, "rate");
            return (Criteria) this;
        }

        public Criteria andRateNotBetween(Double value1, Double value2) {
            addCriterion("rate not between", value1, value2, "rate");
            return (Criteria) this;
        }

        public Criteria andWpidIsNull() {
            addCriterion("wpid is null");
            return (Criteria) this;
        }

        public Criteria andWpidIsNotNull() {
            addCriterion("wpid is not null");
            return (Criteria) this;
        }

        public Criteria andWpidEqualTo(String value) {
            addCriterion("wpid =", value, "wpid");
            return (Criteria) this;
        }

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

        public Criteria andWpidGreaterThan(String value) {
            addCriterion("wpid >", value, "wpid");
            return (Criteria) this;
        }

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

        public Criteria andWpidLessThan(String value) {
            addCriterion("wpid <", value, "wpid");
            return (Criteria) this;
        }

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

        public Criteria andWpidLike(String value) {
            addCriterion("wpid like", value, "wpid");
            return (Criteria) this;
        }

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

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

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

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

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

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