package com.baidu.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class EmpExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public EmpExample() {
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));
}
protected void addCriterionForJDBCDate(String condition, Date value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value.getTime()), property);
}
protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty");
}
List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
Iterator<Date> iter = values.iterator();
while (iter.hasNext()) {
dateList.add(new java.sql.Date(iter.next().getTime()));
}
addCriterion(condition, dateList, property);
}
protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
}
public Criteria andEmpnoIsNull() {
addCriterion("EMPNO is null");
return (Criteria) this;
}
public Criteria andEmpnoIsNotNull() {
addCriterion("EMPNO is not null");
return (Criteria) this;
}
public Criteria andEmpnoEqualTo(Integer value) {
addCriterion("EMPNO =", value, "empno");
return (Criteria) this;
}
public Criteria andEmpnoNotEqualTo(Integer value) {
addCriterion("EMPNO <>", value, "empno");
return (Criteria) this;
}
public Criteria andEmpnoGreaterThan(Integer value) {
addCriterion("EMPNO >", value, "empno");
return (Criteria) this;
}
public Criteria andEmpnoGreaterThanOrEqualTo(Integer value) {
addCriterion("EMPNO >=", value, "empno");
return (Criteria) this;
}
public Criteria andEmpnoLessThan(Integer value) {
addCriterion("EMPNO <", value, "empno");
return (Criteria) this;
}
public Criteria andEmpnoLessThanOrEqualTo(Integer value) {
addCriterion("EMPNO <=", value, "empno");
return (Criteria) this;
}
public Criteria andEmpnoIn(List<Integer> values) {
addCriterion("EMPNO in", values, "empno");
return (Criteria) this;
}
public Criteria andEmpnoNotIn(List<Integer> values) {
addCriterion("EMPNO not in", values, "empno");
return (Criteria) this;
}
public Criteria andEmpnoBetween(Integer value1, Integer value2) {
addCriterion("EMPNO between", value1, value2, "empno");
return (Criteria) this;
}
public Criteria andEmpnoNotBetween(Integer value1, Integer value2) {
addCriterion("EMPNO not between", value1, value2, "empno");
return (Criteria) this;
}
public Criteria andEnameIsNull() {
addCriterion("ENAME is null");
return (Criteria) this;
}
public Criteria andEnameIsNotNull() {
addCriterion("ENAME is not null");
return (Criteria) this;
}
public Criteria andEnameEqualTo(String value) {
addCriterion("ENAME =", value, "ename");
return (Criteria) this;
}
public Criteria andEnameNotEqualTo(String value) {
addCriterion("ENAME <>", value, "ename");
return (Criteria) this;
}
public Criteria andEnameGreaterThan(String value) {
addCriterion("ENAME >", value, "ename");
return (Criteria) this;
}
public Criteria andEnameGreaterThanOrEqualTo(String value) {
addCriterion("ENAME >=", value, "ename");
return (Criteria) this;
}
public Criteria andEnameLessThan(String value) {
addCriterion("ENAME <", value, "ename");
return (Criteria) this;
}
public Criteria andEnameLessThanOrEqualTo(String value) {
addCriterion("ENAME <=", value, "ename");
return (Criteria) this;
}
public Criteria andEnameLike(String value) {
addCriterion("ENAME like", value, "ename");
return (Criteria) this;
}
public Criteria andEnameNotLike(String value) {
addCriterion("ENAME not like", value, "ename");
return (Criteria) this;
}
public Criteria andEnameIn(List<String> values) {
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SSM.zip (95个子文件)
SSM
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 500B
org.eclipse.jdt.core.prefs 330B
src
log4j.properties 2KB
com
baidu
pojo
Emp.java 2KB
Dept.java 620B
EmpExample.java 25KB
DeptExample.java 12KB
mapper
EmpMapper.java 798B
DeptMapper.java 816B
EmpMapper.xml 9KB
DeptMapper.xml 6KB
controller
EmpController.java 2KB
service
EmpService.java 233B
impl
EmpServiceImpl.java 966B
db.properties 111B
spring
applicationContext-transa.xml 2KB
springmvc.xml 1KB
applicationContext-dao.xml 2KB
applicationContext-service.xml 890B
mybatis
SqlMapConfig.xml 200B
.project 1KB
WebRoot
META-INF
MANIFEST.MF 36B
WEB-INF
web.xml 2KB
classes
log4j.properties 2KB
com
baidu
pojo
DeptExample$Criterion.class 2KB
EmpExample$Criteria.class 435B
DeptExample$Criteria.class 440B
EmpExample$GeneratedCriteria.class 18KB
EmpExample.class 2KB
EmpExample$Criterion.class 2KB
Emp.class 2KB
Dept.class 1019B
DeptExample.class 2KB
DeptExample$GeneratedCriteria.class 8KB
mapper
EmpMapper.class 903B
EmpMapper.xml 9KB
DeptMapper.class 913B
DeptMapper.xml 6KB
controller
EmpController.class 3KB
service
EmpService.class 314B
impl
EmpServiceImpl.class 1KB
db.properties 111B
spring
applicationContext-transa.xml 2KB
springmvc.xml 1KB
applicationContext-dao.xml 2KB
applicationContext-service.xml 890B
mybatis
SqlMapConfig.xml 200B
MyXml.xml 67B
lib
aopalliance-alpha1.jar 22KB
spring-webmvc.jar 393KB
freemarker-2.3.15.jar 859KB
org.springframework.context-3.1.4.RELEASE.jar 819KB
commons-logging-1.0.4.jar 37KB
org.springframework.orm-3.1.4.RELEASE.jar 372KB
org.springframework.asm-3.1.4.RELEASE.jar 52KB
org.springframework.test-3.1.4.RELEASE.jar 227KB
c3p0-0.9.1.2.jar 596KB
org.springframework.web.portlet-3.1.4.RELEASE.jar 186KB
org.springframework.aop-3.1.4.RELEASE.jar 325KB
org.springframework.core-3.1.4.RELEASE.jar 441KB
org.springframework.jdbc-3.1.4.RELEASE.jar 396KB
aopalliance-1.0.jar 4KB
org.springframework.instrument-3.1.4.RELEASE.jar 7KB
ojdbc14.jar 1.47MB
mybatis-spring-1.2.0.jar 48KB
org.springframework.transaction-3.1.4.RELEASE.jar 240KB
ognl-2.7.3.jar 234KB
org.springframework.jms-3.1.4.RELEASE.jar 199KB
commons-dbcp-1.2.1.jar 105KB
org.springframework.web-3.1.4.RELEASE.jar 542KB
org.springframework.oxm-3.1.4.RELEASE.jar 73KB
aspectjweaver.jar 1.8MB
org.springframework.web.servlet-3.1.4.RELEASE.jar 566KB
mybatis-3.2.2.jar 683KB
aspectjrt.jar 112KB
org.springframework.expression-3.1.4.RELEASE.jar 175KB
xwork-core-2.1.6.jar 1.49MB
commons-fileupload-1.2.1.jar 56KB
org.springframework.aspects-3.1.4.RELEASE.jar 50KB
org.springframework.context.support-3.1.4.RELEASE.jar 105KB
log4j-1.2.15.jar 383KB
org.springframework.web.struts-3.1.4.RELEASE.jar 30KB
classes12.jar 1.53MB
org.springframework.beans-3.1.4.RELEASE.jar 583KB
commons-io-1.3.2.jar 86KB
org.springframework.instrument.tomcat-3.1.4.RELEASE.jar 11KB
commons-pool-1.6.jar 109KB
emp
suc.jsp 885B
empList.jsp 1KB
editEmp.jsp 1KB
index.jsp 829B
.mymetadata 282B
.classpath 4KB
.myeclipse
共 95 条
- 1
资源评论
小波思基
- 粉丝: 70
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功