Class SelectPropertyProvider
java.lang.Object
org.miaixz.bus.mapper.builder.MapperTemplate
org.miaixz.bus.mapper.additional.select.SelectPropertyProvider
-
Field Summary
Fields inherited from class org.miaixz.bus.mapper.builder.MapperTemplate
entityClassMap, mapperBuilder, mapperClass, methodMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanexistsWhereCondition(Object value, boolean notEmpty) 判断是否需要拼接 where 条件existsWithProperty(org.apache.ibatis.mapping.MappedStatement ms) 根据属性查询总数,查询条件使用等号static StringgetColumnByProperty(Class<?> entityClass, String property) 根据实体Class和属性名获取对应的表字段名selectBetweenByProperty(org.apache.ibatis.mapping.MappedStatement ms) 根据属性查询,查询条件使用 betweenselectByProperty(org.apache.ibatis.mapping.MappedStatement ms) 根据属性查询,查询条件使用等号selectCountByProperty(org.apache.ibatis.mapping.MappedStatement ms) 根据属性查询总数,查询条件使用等号selectInByProperty(org.apache.ibatis.mapping.MappedStatement ms) 根据属性查询,查询条件使用 inselectOneByProperty(org.apache.ibatis.mapping.MappedStatement ms) 根据属性查询,只能有一个返回值,有多个结果时抛出异常,查询条件使用等号Methods inherited from class org.miaixz.bus.mapper.builder.MapperTemplate
addMethodMap, createSqlSource, dynamicSQL, getConfig, getEntityClass, getIDENTITY, getIDENTITY, isBEFORE, isCheckConditionEntityClass, isNotEmpty, setResultType, setSqlSource, setSqlSource, supportMethod, tableName
-
Constructor Details
-
SelectPropertyProvider
-
-
Method Details
-
getColumnByProperty
-
existsWhereCondition
判断是否需要拼接 where 条件- Parameters:
value- 值notEmpty- 是否为空- Returns:
- the boolean
-
selectOneByProperty
根据属性查询,只能有一个返回值,有多个结果时抛出异常,查询条件使用等号- Parameters:
ms- MappedStatement- Returns:
- the string
-
selectByProperty
根据属性查询,查询条件使用等号- Parameters:
ms- MappedStatement- Returns:
- the string
-
selectInByProperty
根据属性查询,查询条件使用 in- Parameters:
ms- MappedStatement- Returns:
- the string
-
selectBetweenByProperty
根据属性查询,查询条件使用 between- Parameters:
ms- MappedStatement- Returns:
- the string
-
existsWithProperty
根据属性查询总数,查询条件使用等号- Parameters:
ms- MappedStatement- Returns:
- the string
-
selectCountByProperty
根据属性查询总数,查询条件使用等号- Parameters:
ms- MappedStatement- Returns:
- the string
-