Package tk.mybatis.mapper.entity
Class Example.GeneratedCriteria
java.lang.Object
tk.mybatis.mapper.entity.Example.GeneratedCriteria
- Direct Known Subclasses:
Example.Criteria
- Enclosing class:
- Example
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected List<Example.Criterion>protected booleanprotected booleanprotected Map<String,EntityColumn> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeneratedCriteria(Map<String, EntityColumn> propertyMap, boolean exists, boolean notNull) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCriterion(String condition) protected voidaddCriterion(String condition, Object value1, Object value2, String property) protected voidaddCriterion(String condition, Object value, String property) protected voidaddOrCriterion(String condition) protected voidaddOrCriterion(String condition, Object value1, Object value2, String property) protected voidaddOrCriterion(String condition, Object value, String property) andAllEqualTo(Object param) 将此对象的所有字段参数作为相等查询条件,如果字段为 null,则为 is nullandBetween(String property, Object value1, Object value2) andCondition(String condition) 手写条件andCondition(String condition, Object value) 手写左边条件,右边用value值andEqualTo(Object param) 将此对象的不为空的字段参数作为相等查询条件andEqualTo(String property, Object value) andGreaterThan(String property, Object value) andGreaterThanOrEqualTo(String property, Object value) andIsNotNull(String property) andLessThan(String property, Object value) andLessThanOrEqualTo(String property, Object value) andNotBetween(String property, Object value1, Object value2) andNotEqualTo(String property, Object value) andNotLike(String property, String value) getAndOr()booleanisValid()orAllEqualTo(Object param) 将此对象的所有字段参数作为相等查询条件,如果字段为 null,则为 is nullorCondition(String condition) 手写条件orCondition(String condition, Object value) 手写左边条件,右边用value值将此对象的不为空的字段参数作为相等查询条件orGreaterThan(String property, Object value) orGreaterThanOrEqualTo(String property, Object value) orIsNotNull(String property) orLessThan(String property, Object value) orLessThanOrEqualTo(String property, Object value) orNotBetween(String property, Object value1, Object value2) orNotEqualTo(String property, Object value) void
-
Field Details
-
criteria
-
exists
protected boolean exists -
notNull
protected boolean notNull -
andOr
-
propertyMap
-
-
Constructor Details
-
GeneratedCriteria
-
-
Method Details
-
addCriterion
-
addCriterion
-
addCriterion
-
addOrCriterion
-
addOrCriterion
-
addOrCriterion
-
andIsNull
-
andIsNotNull
-
andEqualTo
-
andNotEqualTo
-
andGreaterThan
-
andGreaterThanOrEqualTo
-
andLessThan
-
andLessThanOrEqualTo
-
andIn
-
andNotIn
-
andBetween
-
andNotBetween
-
andLike
-
andNotLike
-
andCondition
手写条件- Parameters:
condition- 例如 "length(countryname)<5"- Returns:
-
andCondition
手写左边条件,右边用value值- Parameters:
condition- 例如 "length(countryname)="value- 例如 5- Returns:
-
andEqualTo
将此对象的不为空的字段参数作为相等查询条件- Parameters:
param- 参数对象
-
andAllEqualTo
将此对象的所有字段参数作为相等查询条件,如果字段为 null,则为 is null- Parameters:
param- 参数对象
-
orIsNull
-
orIsNotNull
-
orEqualTo
-
orNotEqualTo
-
orGreaterThan
-
orGreaterThanOrEqualTo
-
orLessThan
-
orLessThanOrEqualTo
-
orIn
-
orNotIn
-
orBetween
-
orNotBetween
-
orLike
-
orNotLike
-
orCondition
手写条件- Parameters:
condition- 例如 "length(countryname)<5"- Returns:
-
orCondition
手写左边条件,右边用value值- Parameters:
condition- 例如 "length(countryname)="value- 例如 5- Returns:
-
orEqualTo
将此对象的不为空的字段参数作为相等查询条件- Parameters:
param- 参数对象
-
orAllEqualTo
将此对象的所有字段参数作为相等查询条件,如果字段为 null,则为 is null- Parameters:
param- 参数对象
-
getAllCriteria
-
getAndOr
-
setAndOr
-
getCriteria
-
isValid
public boolean isValid()
-