package xyz.suancaiyu.mybatisgeneratordemo.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.joda.money.Money;
public class CoffeeExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public CoffeeExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
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 T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
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 T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table T_COFFEE
*
* @mbg.generated Tue Feb 26 22:54:22 CST 2019
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> priceCriteria;
protected List<Criterion> allCriteria;
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
priceCriteria = new ArrayList<Criterion>();
}
public List<Criterion> getPriceCriteria() {
return priceCriteria;
}
protected void addPriceCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
priceCriteria.add(new Criterion(condition, value, "xyz.suancaiyu.mybatisgeneratordemo.handler.MoneyTypeHandler"));
allCriteria = null;
}
protected void addPriceCriterion(String condition, Money value1, Money value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
priceCriteria.add(new Criterion(condition, value1, value2, "xyz.suancaiyu.mybatisgeneratordemo.handler.MoneyTypeHandler"));
allCriteria = null;
}
public boolean isValid() {
return criteria.size() > 0
|| priceCriteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
if (allCriteria == null) {
allCriteria = new ArrayList<Criterion>();
allCriteria.addAll(criteria);
allCriteria.addAll(priceCriteria);
}
return allCriteria;
}
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));
allCriteria = null;
}
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));
allCriteria = null;
}
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));
allCriteria = null;
}
public Criteria andIdIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("ID =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("ID <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("ID >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("ID >=", value, "id");
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该项目为极客时间《玩转Spring全家桶》课程提供的设计源码,共计包含1724个文件,涵盖1154个Java源代码文件、153个属性文件、128个XML配置文件、119个Git忽略文件、97个SQL脚本文件以及少量HTML、Markdown、YAML等其他类型文件。这些文件构成了一个全面的学习和实践资源,旨在帮助开发者深入理解和掌握Spring全家桶的相关技术。
资源推荐
资源详情
资源评论
收起资源包目录
基于Java和HTML的FunSpringFamily极客时间课程《玩转Spring全家桶》设计源码 (1711个子文件)
jar-demo.conf 41B
Dockerfile 318B
Dockerfile 146B
Dockerfile 138B
Dockerfile 135B
Dockerfile 133B
spring.factories 146B
spring.factories 146B
spring.factories 115B
question.gif 302KB
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 303B
.gitignore 295B
.gitignore 295B
.gitignore 295B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
.gitignore 277B
共 1711 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
lsx202406
- 粉丝: 2795
- 资源: 5661
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功