package com.huimv.xt.dataobject; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class XtWxhExample { /** * This field was generated by Apache iBATIS ibator. * This field corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ protected String orderByClause; /** * This field was generated by Apache iBATIS ibator. * This field corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ protected List oredCriteria; /** * This field was generated by Apache iBATIS ibator. * This field corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ protected int start = -1; /** * This field was generated by Apache iBATIS ibator. * This field corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ protected int limit = -1; /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public XtWxhExample() { oredCriteria = new ArrayList(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ protected XtWxhExample(XtWxhExample example) { this.orderByClause = example.orderByClause; this.oredCriteria = example.oredCriteria; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public String getOrderByClause() { return orderByClause; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public List getOredCriteria() { return oredCriteria; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public void or(Criteria criteria) { oredCriteria.add(criteria); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public void clear() { oredCriteria.clear(); } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public void setStart(int start) { this.start=start; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public int getStart() { return start; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public void setLimit(int limit) { this.limit=limit; } /** * This method was generated by Apache iBATIS ibator. * This method corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public int getLimit() { return limit; } /** * This class was generated by Apache iBATIS ibator. * This class corresponds to the database table xt_wxh * * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015 */ public static class Criteria { protected List criteriaWithoutValue; protected List> criteriaWithSingleValue; protected List> criteriaWithListValue; protected List> criteriaWithBetweenValue; protected Criteria() { super(); criteriaWithoutValue = new ArrayList(); criteriaWithSingleValue = new ArrayList>(); criteriaWithListValue = new ArrayList>(); criteriaWithBetweenValue = new ArrayList>(); } public boolean isValid() { return criteriaWithoutValue.size() > 0 || criteriaWithSingleValue.size() > 0 || criteriaWithListValue.size() > 0 || criteriaWithBetweenValue.size() > 0; } public List getCriteriaWithoutValue() { return criteriaWithoutValue; } public List> getCriteriaWithSingleValue() { return criteriaWithSingleValue; } public List> getCriteriaWithListValue() { return criteriaWithListValue; } public List> getCriteriaWithBetweenValue() { return criteriaWithBetweenValue; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteriaWithoutValue.add(condition); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } Map map = new HashMap(); map.put("condition", condition); map.put("value", value); criteriaWithSingleValue.add(map); } protected void addCriterion(String condition, List values, String property) { if (values == null || values.size() == 0) { throw new RuntimeException("Value list for " + property + " cannot be null or empty"); } Map map = new HashMap(); map.put("condition", condition); map.put("values", values); criteriaWithListValue.add(map); } 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"); } List list = new ArrayList(); list.add(value1); list.add(value2); Map map = new HashMap(); map.put("condition", condition); map.put("values", list); criteriaWithBetweenValue.add(map); } public Criteria andYhidIsNull() { addCriterion("YHID is null"); return this; } public Criteria andYhidIsNotNull() { addCriterion("YHID is not null"); return this; } public Criteria andYhidEqualTo(Integer value) { addCriterion("YHID =", value, "yhid"); return this; } public Criteria andYhidNotEqualTo(Integer value) { addCriterion("YHID <>", value, "yhid"); return this; } public Criteria andYhidGreaterThan(Integer value) { addCriterion("YHID >", value, "yhid"); return this; } public Criteria andYhidGreaterThanOrEqualTo(Integer value) { addCriterion("YHID >=", value, "yhid"); return this; } public Criteria andYhidLessThan(Integer value) { addCriterion("YHID <", value, "yhid"); return this; } public Criteria andYhidLessThanOrEqualTo(Integer value) { addCriterion("YHID <=", value, "yhid"); return this; } public Criteria andYhidIn(List values) { addCriterion("YHID in", values, "yhid"); return this; } public Criteria andYhidNotIn(List values) { addCriterion("YHID not in", values, "yhid"); return this; } public Criteria andYhidBetween(Integer value1, Integer value2) { addCriterion("YHID between", value1, value2, "yhid"); return this; } public Criteria andYhidNotBetween(Integer value1, Integer value2) { addCriterion("YHID not between", value1, value2, "yhid"); return this; } public Criteria andWxhIsNull() { addCriterion("WXH is null"); return this; } public Criteria andWxhIsNotNull() { addCriterion("WXH is not null"); return this; } public Criteria andWxhEqualTo(String value) { addCriterion("WXH =", value, "wxh"); return this; } public Criteria andWxhNotEqualTo(String value) { addCriterion("WXH <>", value, "wxh"); return this; } public Criteria andWxhGreaterThan(String value) { addCriterion("WXH >", value, "wxh"); return this; } public Criteria andWxhGreaterThanOrEqualTo(String value) { addCriterion("WXH >=", value, "wxh"); return this; } public Criteria andWxhLessThan(String value) { addCriterion("WXH <", value, "wxh"); return this; } public Criteria andWxhLessThanOrEqualTo(String value) { addCriterion("WXH <=", value, "wxh"); return this; } public Criteria andWxhLike(String value) { addCriterion("WXH like", value, "wxh"); return this; } public Criteria andWxhNotLike(String value) { addCriterion("WXH not like", value, "wxh"); return this; } public Criteria andWxhIn(List values) { addCriterion("WXH in", values, "wxh"); return this; } public Criteria andWxhNotIn(List values) { addCriterion("WXH not in", values, "wxh"); return this; } public Criteria andWxhBetween(String value1, String value2) { addCriterion("WXH between", value1, value2, "wxh"); return this; } public Criteria andWxhNotBetween(String value1, String value2) { addCriterion("WXH not between", value1, value2, "wxh"); return this; } public Criteria andSfbdIsNull() { addCriterion("SFBD is null"); return this; } public Criteria andSfbdIsNotNull() { addCriterion("SFBD is not null"); return this; } public Criteria andSfbdEqualTo(Integer value) { addCriterion("SFBD =", value, "sfbd"); return this; } public Criteria andSfbdNotEqualTo(Integer value) { addCriterion("SFBD <>", value, "sfbd"); return this; } public Criteria andSfbdGreaterThan(Integer value) { addCriterion("SFBD >", value, "sfbd"); return this; } public Criteria andSfbdGreaterThanOrEqualTo(Integer value) { addCriterion("SFBD >=", value, "sfbd"); return this; } public Criteria andSfbdLessThan(Integer value) { addCriterion("SFBD <", value, "sfbd"); return this; } public Criteria andSfbdLessThanOrEqualTo(Integer value) { addCriterion("SFBD <=", value, "sfbd"); return this; } public Criteria andSfbdIn(List values) { addCriterion("SFBD in", values, "sfbd"); return this; } public Criteria andSfbdNotIn(List values) { addCriterion("SFBD not in", values, "sfbd"); return this; } public Criteria andSfbdBetween(Integer value1, Integer value2) { addCriterion("SFBD between", value1, value2, "sfbd"); return this; } public Criteria andSfbdNotBetween(Integer value1, Integer value2) { addCriterion("SFBD not between", value1, value2, "sfbd"); return this; } public Criteria andYhmEqualTo(String value) { addCriterion("czyh.YHM =", value, "yhm"); return this; } } }