package com.example.demo.entity;
import java.util.ArrayList;
import java.util.List;
public class DishesExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DishesExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return 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;
}
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 andDishIdIsNull() {
addCriterion("dish_id is null");
return (Criteria) this;
}
public Criteria andDishIdIsNotNull() {
addCriterion("dish_id is not null");
return (Criteria) this;
}
public Criteria andDishIdEqualTo(Integer value) {
addCriterion("dish_id =", value, "dishId");
return (Criteria) this;
}
public Criteria andDishIdNotEqualTo(Integer value) {
addCriterion("dish_id <>", value, "dishId");
return (Criteria) this;
}
public Criteria andDishIdGreaterThan(Integer value) {
addCriterion("dish_id >", value, "dishId");
return (Criteria) this;
}
public Criteria andDishIdGreaterThanOrEqualTo(Integer value) {
addCriterion("dish_id >=", value, "dishId");
return (Criteria) this;
}
public Criteria andDishIdLessThan(Integer value) {
addCriterion("dish_id <", value, "dishId");
return (Criteria) this;
}
public Criteria andDishIdLessThanOrEqualTo(Integer value) {
addCriterion("dish_id <=", value, "dishId");
return (Criteria) this;
}
public Criteria andDishIdIn(List<Integer> values) {
addCriterion("dish_id in", values, "dishId");
return (Criteria) this;
}
public Criteria andDishIdNotIn(List<Integer> values) {
addCriterion("dish_id not in", values, "dishId");
return (Criteria) this;
}
public Criteria andDishIdBetween(Integer value1, Integer value2) {
addCriterion("dish_id between", value1, value2, "dishId");
return (Criteria) this;
}
public Criteria andDishIdNotBetween(Integer value1, Integer value2) {
addCriterion("dish_id not between", value1, value2, "dishId");
return (Criteria) this;
}
public Criteria andDishNameIsNull() {
addCriterion("dish_name is null");
return (Criteria) this;
}
public Criteria andDishNameIsNotNull() {
addCriterion("dish_name is not null");
return (Criteria) this;
}
public Criteria andDishNameEqualTo(String value) {
addCriterion("dish_name =", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameNotEqualTo(String value) {
addCriterion("dish_name <>", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameGreaterThan(String value) {
addCriterion("dish_name >", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameGreaterThanOrEqualTo(String value) {
addCriterion("dish_name >=", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameLessThan(String value) {
addCriterion("dish_name <", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameLessThanOrEqualTo(String value) {
addCriterion("dish_name <=", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameLike(String value) {
addCriterion("dish_name like", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameNotLike(String value) {
addCriterion("dish_name not like", value, "dishName");
return (Criteria) this;
}
public Criteria andDishNameIn(List<String> values) {
addCriterion("dish_name in", values, "dishName");
return (Criteria) this;
}
public Criteria andDishNameNotIn(List<String> values) {
addCriterion("dish_name not in", values, "dishName");
return (Criteria) this;
}
public Criteria andDishNameBetween(String value1, String value2) {
addCriterion("dish_name between", value1, value2, "dishName");
return (Criteria) this;
}
public Criteria andDishNameNotBetween(String value1, String value2) {
addCriterion("dish_name not between", value1, value2, "dishName");
return (Criteria) this;
}
public Criteria andPriceIsNull() {
addCriterion("price is null");
return (Criteria) this;
}
public Criteria andPriceIsNotNull() {
addCriterion("price is not null");
return (Criteria) this;
}
public Criteria andPriceEqualTo(Double value) {
addCriterion("price =", value, "price");
return (Criteria) this;
}
public Criteria andPriceNotEqualTo(Double value) {
addCriterion("price <>", value, "price");
return (Criteria) this;
}
public Criteria andPriceGreaterThan(Double value) {
addCriterion("price >", value, "price");
return (Criteria) this;
}
public Criteria andPriceG