package com.zhang.ssmschoolshop.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OrderExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public OrderExample() {
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 andOrderidIsNull() {
addCriterion("orderId is null");
return (Criteria) this;
}
public Criteria andOrderidIsNotNull() {
addCriterion("orderId is not null");
return (Criteria) this;
}
public Criteria andOrderidEqualTo(Integer value) {
addCriterion("orderId =", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotEqualTo(Integer value) {
addCriterion("orderId <>", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidGreaterThan(Integer value) {
addCriterion("orderId >", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidGreaterThanOrEqualTo(Integer value) {
addCriterion("orderId >=", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidLessThan(Integer value) {
addCriterion("orderId <", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidLessThanOrEqualTo(Integer value) {
addCriterion("orderId <=", value, "orderid");
return (Criteria) this;
}
public Criteria andOrderidIn(List<Integer> values) {
addCriterion("orderId in", values, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotIn(List<Integer> values) {
addCriterion("orderId not in", values, "orderid");
return (Criteria) this;
}
public Criteria andOrderidBetween(Integer value1, Integer value2) {
addCriterion("orderId between", value1, value2, "orderid");
return (Criteria) this;
}
public Criteria andOrderidNotBetween(Integer value1, Integer value2) {
addCriterion("orderId not between", value1, value2, "orderid");
return (Criteria) this;
}
public Criteria andUseridIsNull() {
addCriterion("userId is null");
return (Criteria) this;
}
public Criteria andUseridIsNotNull() {
addCriterion("userId is not null");
return (Criteria) this;
}
public Criteria andUseridEqualTo(Integer value) {
addCriterion("userId =", value, "userid");
return (Criteria) this;
}
public Criteria andUseridNotEqualTo(Integer value) {
addCriterion("userId <>", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThan(Integer value) {
addCriterion("userId >", value, "userid");
return (Criteria) this;
}
public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
addCriterion("userId >=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThan(Integer value) {
addCriterion("userId <", value, "userid");
return (Criteria) this;
}
public Criteria andUseridLessThanOrEqualTo(Integer value) {
addCriterion("userId <=", value, "userid");
return (Criteria) this;
}
public Criteria andUseridIn(List<Integer> values) {
addCriterion("userId in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridNotIn(List<Integer> values) {
addCriterion("userId not in", values, "userid");
return (Criteria) this;
}
public Criteria andUseridBetween(Integer value1, Integer value2) {
addCriterion("userId between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andUseridNotBetween(Integer value1, Integer value2) {
addCriterion("userId not between", value1, value2, "userid");
return (Criteria) this;
}
public Criteria andOrdertimeIsNull() {
addCriterion("orderTime is null");
return (Criteria) this;
}
public Criteria andOrdertimeIsNotNull() {
addCriterion("orderTime is not null");
return (Criteria) this;
}
public Criteria andOrdertimeEqualTo(Date value) {
addCriterion("orderTime =", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeNotEqualTo(Date value) {
addCriterion("orderTime <>", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeGreaterThan(Date value) {
addCriterion("orderTime >", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeGreaterThanOrEqualTo(Date value) {
addCriterion("orderTime >=", value, "ordertime");
return (Criteria) this;
}
public Criteria andOrdertimeLessThan(Date value) {
addCriterion("orderTime <", value, "ordertime");
return (Criteria) this;