cn.gtmap.estateplat.core.support.mybatis.mapper
类 BaseProvider

java.lang.Object
  继承者 cn.gtmap.estateplat.core.support.mybatis.mapper.BaseProvider
直接已知子类:
CommonProvider

public class BaseProvider
extends Object

基础类

作者:
liuzh

构造方法摘要
BaseProvider()
           
 
方法摘要
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)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BaseProvider

public BaseProvider()
方法详细信息

notNullKeyProperty

protected void notNullKeyProperty(String property,
                                  Object value)
主键字段不能为空

参数:
property -
value -

throwNullKeyException

protected void throwNullKeyException(String property)

getEntityClass

protected Class<?> getEntityClass(Map<String,Object> params)
获取实体类型

参数:
params -
返回:

getEntity

protected Object getEntity(Map<String,Object> params)
获取实体类

参数:
params -
返回:

getExample

protected org.apache.ibatis.reflection.MetaObject getExample(Map<String,Object> params)
获取Example类 - 不在此校验是否为合法的Example类

参数:
params -
返回:

applyOrderBy

protected void applyOrderBy(org.apache.ibatis.jdbc.SQL sql,
                            org.apache.ibatis.reflection.MetaObject example)
Example条件


applyWhere

protected void applyWhere(org.apache.ibatis.jdbc.SQL sql,
                          org.apache.ibatis.reflection.MetaObject example)
Example条件


isEmpty

protected boolean isEmpty(String value)

isNotEmpty

protected boolean isNotEmpty(String value)


Copyright © 2015–2020 cn.gtmap. All rights reserved.