Package org.miaixz.bus.mapper.entity
Class Condition.GeneratedCriteria
java.lang.Object
org.miaixz.bus.mapper.entity.Condition.GeneratedCriteria
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String连接条件protected List<Condition.Criterion> protected boolean字段是否必须存在protected boolean值是否不能为空protected 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- 条件- Returns:
- the object
-
andCondition
手写左边条件,右边用value值- Parameters:
condition- 条件value- 值- Returns:
- the object
-
andEqualTo
将此对象的不为空的字段参数作为相等查询条件- Parameters:
param- 参数对象- Returns:
- the object
-
andAllEqualTo
将此对象的所有字段参数作为相等查询条件,如果字段为 null,则为 is null- Parameters:
param- 参数对象- Returns:
- the object
-
orIsNull
-
orIsNotNull
-
orEqualTo
-
orNotEqualTo
-
orGreaterThan
-
orGreaterThanOrEqualTo
-
orLessThan
-
orLessThanOrEqualTo
-
orIn
-
orNotIn
-
orBetween
-
orNotBetween
-
orLike
-
orNotLike
-
orCondition
手写条件- Parameters:
condition- 条件- Returns:
- the object
-
orCondition
手写左边条件,右边用value值- Parameters:
condition- 例如 "length(countryname)="value- 例如 5- Returns:
- the object
-
orEqualTo
将此对象的不为空的字段参数作为相等查询条件- Parameters:
param- 参数对象- Returns:
- the object
-
orAllEqualTo
将此对象的所有字段参数作为相等查询条件,如果字段为 null,则为 is null- Parameters:
param- 参数对象- Returns:
- the string
-
getAllCriteria
-
getAndOr
-
setAndOr
-
getCriteria
-
isValid
public boolean isValid()
-