package com.newfiber.api.pc.model.EventsManage; import java.util.ArrayList; import java.util.Date; import java.util.List; public class AdministrativeDivisionQuery { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; protected Integer pageNo = 1; protected Integer startRow; protected Integer pageSize = 10; protected String fields; public AdministrativeDivisionQuery() { 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; } public void setPageNo(Integer pageNo) { this.pageNo=pageNo; this.startRow = (pageNo-1)*this.pageSize; } public Integer getPageNo() { return pageNo; } public void setStartRow(Integer startRow) { this.startRow=startRow; } public Integer getStartRow() { return startRow; } public void setPageSize(Integer pageSize) { this.pageSize=pageSize; this.startRow = (pageNo-1)*this.pageSize; } public Integer getPageSize() { return pageSize; } public void setFields(String fields) { this.fields=fields; } public String getFields() { return fields; } 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 andSerialIsNull() { addCriterion("Serial is null"); return (Criteria) this; } public Criteria andSerialIsNotNull() { addCriterion("Serial is not null"); return (Criteria) this; } public Criteria andSerialEqualTo(Long value) { addCriterion("Serial =", value, "serial"); return (Criteria) this; } public Criteria andSerialNotEqualTo(Long value) { addCriterion("Serial <>", value, "serial"); return (Criteria) this; } public Criteria andSerialGreaterThan(Long value) { addCriterion("Serial >", value, "serial"); return (Criteria) this; } public Criteria andSerialGreaterThanOrEqualTo(Long value) { addCriterion("Serial >=", value, "serial"); return (Criteria) this; } public Criteria andSerialLessThan(Long value) { addCriterion("Serial <", value, "serial"); return (Criteria) this; } public Criteria andSerialLessThanOrEqualTo(Long value) { addCriterion("Serial <=", value, "serial"); return (Criteria) this; } public Criteria andSerialIn(List<Long> values) { addCriterion("Serial in", values, "serial"); return (Criteria) this; } public Criteria andSerialNotIn(List<Long> values) { addCriterion("Serial not in", values, "serial"); return (Criteria) this; } public Criteria andSerialBetween(Long value1, Long value2) { addCriterion("Serial between", value1, value2, "serial"); return (Criteria) this; } public Criteria andSerialNotBetween(Long value1, Long value2) { addCriterion("Serial not between", value1, value2, "serial"); return (Criteria) this; } public Criteria andDivisionNoIsNull() { addCriterion("Division_No is null"); return (Criteria) this; } public Criteria andDivisionNoIsNotNull() { addCriterion("Division_No is not null"); return (Criteria) this; } public Criteria andDivisionNoEqualTo(String value) { addCriterion("a.Division_No =", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoNotEqualTo(String value) { addCriterion("Division_No <>", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoGreaterThan(String value) { addCriterion("Division_No >", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoGreaterThanOrEqualTo(String value) { addCriterion("Division_No >=", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoLessThan(String value) { addCriterion("Division_No <", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoLessThanOrEqualTo(String value) { addCriterion("Division_No <=", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoLike(String value) { addCriterion("Division_No like", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoNotLike(String value) { addCriterion("Division_No not like", value, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoIn(List<String> values) { addCriterion("Division_No in", values, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoNotIn(List<String> values) { addCriterion("Division_No not in", values, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoBetween(String value1, String value2) { addCriterion("Division_No between", value1, value2, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNoNotBetween(String value1, String value2) { addCriterion("Division_No not between", value1, value2, "divisionNo"); return (Criteria) this; } public Criteria andDivisionNameIsNull() { addCriterion("Division_Name is null"); return (Criteria) this; } public Criteria andDivisionNameIsNotNull() { addCriterion("Division_Name is not null"); return (Criteria) this; } public Criteria andDivisionNameEqualTo(String value) { addCriterion("Division_Name =", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameNotEqualTo(String value) { addCriterion("Division_Name <>", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameGreaterThan(String value) { addCriterion("Division_Name >", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameGreaterThanOrEqualTo(String value) { addCriterion("Division_Name >=", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameLessThan(String value) { addCriterion("Division_Name <", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameLessThanOrEqualTo(String value) { addCriterion("Division_Name <=", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameLike(String value) { addCriterion("a.Division_Name like", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameNotLike(String value) { addCriterion("Division_Name not like", value, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameIn(List<String> values) { addCriterion("Division_Name in", values, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameNotIn(List<String> values) { addCriterion("Division_Name not in", values, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameBetween(String value1, String value2) { addCriterion("Division_Name between", value1, value2, "divisionName"); return (Criteria) this; } public Criteria andDivisionNameNotBetween(String value1, String value2) { addCriterion("Division_Name not between", value1, value2, "divisionName"); return (Criteria) this; } public Criteria andParentDivisionNoIsNull() { addCriterion("Parent_Division_No is null"); return (Criteria) this; } public Criteria andParentDivisionNoIsNotNull() { addCriterion("Parent_Division_No is not null"); return (Criteria) this; } public Criteria andParentDivisionNoEqualTo(String value) { addCriterion("a.Parent_Division_No =", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoNotEqualTo(String value) { addCriterion("Parent_Division_No <>", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoGreaterThan(String value) { addCriterion("Parent_Division_No >", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoGreaterThanOrEqualTo(String value) { addCriterion("Parent_Division_No >=", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoLessThan(String value) { addCriterion("Parent_Division_No <", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoLessThanOrEqualTo(String value) { addCriterion("Parent_Division_No <=", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoLike(String value) { addCriterion("Parent_Division_No like", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoNotLike(String value) { addCriterion("Parent_Division_No not like", value, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoIn(List<String> values) { addCriterion("Parent_Division_No in", values, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoNotIn(List<String> values) { addCriterion("Parent_Division_No not in", values, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoBetween(String value1, String value2) { addCriterion("Parent_Division_No between", value1, value2, "parentDivisionNo"); return (Criteria) this; } public Criteria andParentDivisionNoNotBetween(String value1, String value2) { addCriterion("Parent_Division_No not between", value1, value2, "parentDivisionNo"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("Create_Time is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("Create_Time is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("Create_Time =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("Create_Time <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("Create_Time >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("Create_Time >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("Create_Time <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("Create_Time <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("Create_Time in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("Create_Time not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("Create_Time between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("Create_Time not between", value1, value2, "createTime"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }