package com.amtf.bean;
import java.util.ArrayList;
import java.util.List;
public class EmployeeExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public EmployeeExample() {
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 andEmpIdIsNull() {
addCriterion("emp_id is null");
return (Criteria) this;
}
public Criteria andEmpIdIsNotNull() {
addCriterion("emp_id is not null");
return (Criteria) this;
}
public Criteria andEmpIdEqualTo(Integer value) {
addCriterion("emp_id =", value, "empId");
return (Criteria) this;
}
public Criteria andEmpIdNotEqualTo(Integer value) {
addCriterion("emp_id <>", value, "empId");
return (Criteria) this;
}
public Criteria andEmpIdGreaterThan(Integer value) {
addCriterion("emp_id >", value, "empId");
return (Criteria) this;
}
public Criteria andEmpIdGreaterThanOrEqualTo(Integer value) {
addCriterion("emp_id >=", value, "empId");
return (Criteria) this;
}
public Criteria andEmpIdLessThan(Integer value) {
addCriterion("emp_id <", value, "empId");
return (Criteria) this;
}
public Criteria andEmpIdLessThanOrEqualTo(Integer value) {
addCriterion("emp_id <=", value, "empId");
return (Criteria) this;
}
public Criteria andEmpIdIn(List<Integer> values) {
addCriterion("emp_id in", values, "empId");
return (Criteria) this;
}
public Criteria andEmpIdNotIn(List<Integer> values) {
addCriterion("emp_id not in", values, "empId");
return (Criteria) this;
}
public Criteria andEmpIdBetween(Integer value1, Integer value2) {
addCriterion("emp_id between", value1, value2, "empId");
return (Criteria) this;
}
public Criteria andEmpIdNotBetween(Integer value1, Integer value2) {
addCriterion("emp_id not between", value1, value2, "empId");
return (Criteria) this;
}
public Criteria andENameIsNull() {
addCriterion("e_name is null");
return (Criteria) this;
}
public Criteria andENameIsNotNull() {
addCriterion("e_name is not null");
return (Criteria) this;
}
public Criteria andENameEqualTo(String value) {
addCriterion("e_name =", value, "eName");
return (Criteria) this;
}
public Criteria andENameNotEqualTo(String value) {
addCriterion("e_name <>", value, "eName");
return (Criteria) this;
}
public Criteria andENameGreaterThan(String value) {
addCriterion("e_name >", value, "eName");
return (Criteria) this;
}
public Criteria andENameGreaterThanOrEqualTo(String value) {
addCriterion("e_name >=", value, "eName");
return (Criteria) this;
}
public Criteria andENameLessThan(String value) {
addCriterion("e_name <", value, "eName");
return (Criteria) this;
}
public Criteria andENameLessThanOrEqualTo(String value) {
addCriterion("e_name <=", value, "eName");
return (Criteria) this;
}
public Criteria andENameLike(String value) {
addCriterion("e_name like", value, "eName");
return (Criteria) this;
}
public Criteria andENameNotLike(String value) {
addCriterion("e_name not like", value, "eName");
return (Criteria) this;
}
public Criteria andENameIn(List<String> values) {
addCriterion("e_name in", values, "eName");
return (Criteria) this;
}
public Criteria andENameNotIn(List<String> values) {
addCriterion("e_name not in", values, "eName");
return (Criteria) this;
}
public Criteria andENameBetween(String value1, String value2) {
addCriterion("e_name between", value1, value2, "eName");
return (Criteria) this;
}
public Criteria andENameNotBetween(String value1, String value2) {
addCriterion("e_name not between", value1, value2, "eName");
return (Criteria) this;
}
public Criteria andAgeIsNull() {
addCriterion("age is null");
return (Criteria) this;
}
public Criteria andAgeIsNotNull() {
addCriterion("age is not null");
return (Criteria) this;
}
public Criteria andAgeEqualTo(Integer value) {
addCriterion("age =", value, "age");
return (Criteria) this;
}
public Criteria andAgeNotEqualTo(Integer value) {
addCriterion("age <>", value, "age");
return (Criteria) this;
}
public Criteria andAgeGreaterThan(Integer value) {
addCriterion("age >", value, "age");
没有合适的资源?快使用搜索试试~ 我知道了~
基于Eclipse、Maven搭建SSM
共56个文件
class:15个
xml:15个
java:9个
需积分: 26 14 下载量 164 浏览量
2018-03-31
16:48:35
上传
评论 2
收藏 54KB ZIP 举报
温馨提示
基于Eclipse、Maven搭建SSM,数据库为mysql,实现了一个简单的查询功能。
资源推荐
资源详情
资源评论
收起资源包目录
ssm.zip (56个子文件)
ssm
pom.xml 5KB
.springBeans 532B
target
test-classes
m2e-wtp
web-resources
META-INF
maven
amituofo
ssm
pom.xml 5KB
pom.properties 190B
MANIFEST.MF 120B
classes
mybatis-config.xml 545B
dbconfig.properties 102B
com
amtf
dao
DepartmentMapper.class 1000B
EmployeeMapper.class 1KB
test
MBGTest.class 2KB
bean
EmployeeExample.class 2KB
DepartmentExample$Criteria.class 3KB
DepartmentExample$Criterion.class 2KB
EmployeeExample$GeneratedCriteria.class 11KB
EmployeeExample$Criterion.class 2KB
DepartmentExample$GeneratedCriteria.class 6KB
EmployeeExample$Criteria.class 6KB
DepartmentExample.class 2KB
Department.class 883B
Employee.class 2KB
controller
EmployeeController.class 1KB
service
EmployeeService.class 874B
springMvc.xml 1KB
mapper
EmployeeMapper.xml 8KB
DepartmentMapper.xml 6KB
applicationContext.xml 3KB
ssm.sql 2KB
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.common.component 665B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.validation.prefs 50B
.jsdtscope 639B
org.eclipse.jdt.core.prefs 736B
src
test
resources
java
main
webapp
META-INF
MANIFEST.MF 39B
WEB-INF
web.xml 2KB
queryALL.jsp 2KB
lib
resources
mybatis-config.xml 545B
dbconfig.properties 102B
springMvc.xml 1KB
mapper
EmployeeMapper.xml 8KB
DepartmentMapper.xml 6KB
applicationContext.xml 3KB
java
com
amtf
dao
DepartmentMapper.java 901B
EmployeeMapper.java 904B
test
MBGTest.java 874B
bean
DepartmentExample.java 9KB
Employee.java 1KB
EmployeeExample.java 16KB
Department.java 417B
controller
EmployeeController.java 745B
service
EmployeeService.java 534B
.project 1KB
mbg.xml 2KB
.classpath 1KB
共 56 条
- 1
资源评论
仲翎逸仙
- 粉丝: 85
- 资源: 28
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功