package com.cg.domain;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class PitayaStockExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public PitayaStockExample() {
oredCriteria = new ArrayList<>();
}
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<>();
}
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 andStockIdIsNull() {
addCriterion("stock_id is null");
return (Criteria) this;
}
public Criteria andStockIdIsNotNull() {
addCriterion("stock_id is not null");
return (Criteria) this;
}
public Criteria andStockIdEqualTo(Integer value) {
addCriterion("stock_id =", value, "stockId");
return (Criteria) this;
}
public Criteria andStockIdNotEqualTo(Integer value) {
addCriterion("stock_id <>", value, "stockId");
return (Criteria) this;
}
public Criteria andStockIdGreaterThan(Integer value) {
addCriterion("stock_id >", value, "stockId");
return (Criteria) this;
}
public Criteria andStockIdGreaterThanOrEqualTo(Integer value) {
addCriterion("stock_id >=", value, "stockId");
return (Criteria) this;
}
public Criteria andStockIdLessThan(Integer value) {
addCriterion("stock_id <", value, "stockId");
return (Criteria) this;
}
public Criteria andStockIdLessThanOrEqualTo(Integer value) {
addCriterion("stock_id <=", value, "stockId");
return (Criteria) this;
}
public Criteria andStockIdIn(List<Integer> values) {
addCriterion("stock_id in", values, "stockId");
return (Criteria) this;
}
public Criteria andStockIdNotIn(List<Integer> values) {
addCriterion("stock_id not in", values, "stockId");
return (Criteria) this;
}
public Criteria andStockIdBetween(Integer value1, Integer value2) {
addCriterion("stock_id between", value1, value2, "stockId");
return (Criteria) this;
}
public Criteria andStockIdNotBetween(Integer value1, Integer value2) {
addCriterion("stock_id not between", value1, value2, "stockId");
return (Criteria) this;
}
public Criteria andCommodityIdIsNull() {
addCriterion("commodity_id is null");
return (Criteria) this;
}
public Criteria andCommodityIdIsNotNull() {
addCriterion("commodity_id is not null");
return (Criteria) this;
}
public Criteria andCommodityIdEqualTo(Integer value) {
addCriterion("commodity_id =", value, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdNotEqualTo(Integer value) {
addCriterion("commodity_id <>", value, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdGreaterThan(Integer value) {
addCriterion("commodity_id >", value, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdGreaterThanOrEqualTo(Integer value) {
addCriterion("commodity_id >=", value, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdLessThan(Integer value) {
addCriterion("commodity_id <", value, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdLessThanOrEqualTo(Integer value) {
addCriterion("commodity_id <=", value, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdIn(List<Integer> values) {
addCriterion("commodity_id in", values, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdNotIn(List<Integer> values) {
addCriterion("commodity_id not in", values, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdBetween(Integer value1, Integer value2) {
addCriterion("commodity_id between", value1, value2, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityIdNotBetween(Integer value1, Integer value2) {
addCriterion("commodity_id not between", value1, value2, "commodityId");
return (Criteria) this;
}
public Criteria andCommodityNameIsNull() {
addCriterion("commodity_name is null");
return (Criteria) this;
}
public Criteria andCommodityNameIsNotNull() {
addCriterion("commodity_name is not null");
return (Criteria) this;
}
public Criteria andCommodityNameEqualTo(String value) {
addCriterion("commodity_name =", value, "commodityName");
return (Criteria) this;
}
public Criteria andCommodityNameNotEqualTo(String value) {
addCriterion("commodity_name <>", value, "commodityName");
return (Criteria) this;
}
public Criteria andCommodityNameGreaterThan(String value) {
addCriterion("commodity_name >", value, "commodityName");
return (Criteria) this;
}
public Criteria andCommodityNameGreaterThanOrEqualTo(String value) {