public class SelectPropertyProvider extends MapperTemplate
entityClassMap, mapperClass, mapperHelper, methodMap| Constructor and Description |
|---|
SelectPropertyProvider(Class<?> mapperClass,
MapperHelper mapperHelper) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
existsWhereCondition(Object value,
boolean notEmpty)
判断是否需要拼接 where 条件
|
String |
existsWithProperty(org.apache.ibatis.mapping.MappedStatement ms)
根据属性查询总数,查询条件使用等号
|
static String |
getColumnByProperty(Class<?> entityClass,
String property)
根据实体Class和属性名获取对应的表字段名
|
String |
selectBetweenByProperty(org.apache.ibatis.mapping.MappedStatement ms)
根据属性查询,查询条件使用 between
|
String |
selectByProperty(org.apache.ibatis.mapping.MappedStatement ms)
根据属性查询,查询条件使用等号
|
String |
selectCountByProperty(org.apache.ibatis.mapping.MappedStatement ms)
根据属性查询总数,查询条件使用等号
|
String |
selectInByProperty(org.apache.ibatis.mapping.MappedStatement ms)
根据属性查询,查询条件使用 in
|
String |
selectOneByProperty(org.apache.ibatis.mapping.MappedStatement ms)
Ba
根据属性查询,只能有一个返回值,有多个结果时抛出异常,查询条件使用等号
|
addMethodMap, createSqlSource, dynamicSQL, getConfig, getEntityClass, getIDENTITY, getIDENTITY, isBEFORE, isCheckExampleEntityClass, isNotEmpty, setResultType, setSqlSource, setSqlSource, supportMethod, tableNamepublic SelectPropertyProvider(Class<?> mapperClass, MapperHelper mapperHelper)
public String selectOneByProperty(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String selectByProperty(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String selectInByProperty(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String selectBetweenByProperty(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String existsWithProperty(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String selectCountByProperty(org.apache.ibatis.mapping.MappedStatement ms)
ms - public static String getColumnByProperty(Class<?> entityClass, String property)
entityClass - 实体Class对象property - 属性名public static boolean existsWhereCondition(Object value, boolean notEmpty)
value - notEmpty - Copyright © 2022. All rights reserved.