public class BaseProvider extends Object
| Constructor and Description |
|---|
BaseProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyOrderBy(org.apache.ibatis.jdbc.SQL sql,
org.apache.ibatis.reflection.MetaObject example)
Example条件
|
protected void |
applyWhere(org.apache.ibatis.jdbc.SQL sql,
org.apache.ibatis.reflection.MetaObject example)
Example条件
|
protected Object |
getEntity(Map<String,Object> params)
获取实体类
|
protected Class<?> |
getEntityClass(Map<String,Object> params)
获取实体类型
|
protected org.apache.ibatis.reflection.MetaObject |
getExample(Map<String,Object> params)
获取Example类 - 不在此校验是否为合法的Example类
|
protected boolean |
isEmpty(String value) |
protected boolean |
isNotEmpty(String value) |
protected void |
notNullKeyProperty(String property,
Object value)
主键字段不能为空
|
protected void |
throwNullKeyException(String property) |
protected void notNullKeyProperty(String property, Object value)
property - value - protected void throwNullKeyException(String property)
protected Class<?> getEntityClass(Map<String,Object> params)
params - protected org.apache.ibatis.reflection.MetaObject getExample(Map<String,Object> params)
params - protected void applyOrderBy(org.apache.ibatis.jdbc.SQL sql,
org.apache.ibatis.reflection.MetaObject example)
protected void applyWhere(org.apache.ibatis.jdbc.SQL sql,
org.apache.ibatis.reflection.MetaObject example)
protected boolean isEmpty(String value)
protected boolean isNotEmpty(String value)
Copyright © 2015–2020 cn.gtmap. All rights reserved.