package ibatis;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class UsersExample {
/**
* This field was generated by Abator for iBATIS.
* This field corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
protected String orderByClause;
/**
* This field was generated by Abator for iBATIS.
* This field corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
protected List oredCriteria;
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
public UsersExample() {
oredCriteria = new ArrayList();
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
protected UsersExample(UsersExample example) {
this.orderByClause = example.orderByClause;
this.oredCriteria = example.oredCriteria;
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
public List getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
public void clear() {
oredCriteria.clear();
}
/**
* This class was generated by Abator for iBATIS.
* This class corresponds to the database table users
*
* @abatorgenerated Sat May 02 03:37:10 CST 2009
*/
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 andUidIsNull() {
addCriterion("uid is null");
return this;
}
public Criteria andUidIsNotNull() {
addCriterion("uid is not null");
return this;
}
public Criteria andUidEqualTo(Integer value) {
addCriterion("uid =", value, "uid");
return this;
}
public Criteria andUidNotEqualTo(Integer value) {
addCriterion("uid <>", value, "uid");
return this;
}
public Criteria andUidGreaterThan(Integer value) {
addCriterion("uid >", value, "uid");
return this;
}
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
addCriterion("uid >=", value, "uid");
return this;
}
public Criteria andUidLessThan(Integer value) {
addCriterion("uid <", value, "uid");
return this;
}
public Criteria andUidLessThanOrEqualTo(Integer value) {
addCriterion("uid <=", value, "uid");
return this;
}
public Criteria andUidIn(List values) {
addCriterion("uid in", values, "uid");
return this;
}
public Criteria andUidNotIn(List values) {
addCriterion("uid not in", values, "uid");
return this;
}
public Criteria andUidBetween(Integer value1, Integer value2) {
- 1
- 2
前往页