public class MapperJavaProxy extends Object implements InvocationHandler
# 54 封装sqlmanager
| 限定符和类型 | 字段和说明 |
|---|---|
protected DefaultMapperBuilder |
builder |
protected Class<?> |
entityClass
The entity class.
|
protected MapperConfig |
mapperConfig |
protected SQLManager |
sqlManager
The sql manager.
|
| 构造器和说明 |
|---|
MapperJavaProxy()
The Constructor.
|
MapperJavaProxy(DefaultMapperBuilder builder,
SQLManager sqlManager,
Class<?> mapperInterface) |
| 限定符和类型 | 方法和说明 |
|---|---|
MapperJavaProxy |
build()
Builds the.
|
protected void |
checkArgs()
Check args.
|
MapperJavaProxy |
entityClass(Class<?> entityClass)
Entity class.
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invoke.
|
MapperJavaProxy |
mapperInterface(Class<?> mapperInterface)
Mapper interface.
|
protected void |
onResolveEntityClassFromMapperInterface(Class<?> mapperInterface)
获取BaseMapper<EntityClass>接口的泛型实体参数类.
|
String |
toString() |
protected SQLManager sqlManager
protected Class<?> entityClass
protected DefaultMapperBuilder builder
protected MapperConfig mapperConfig
public MapperJavaProxy()
public MapperJavaProxy(DefaultMapperBuilder builder, SQLManager sqlManager, Class<?> mapperInterface)
builder - sqlManager - mapperInterface - public MapperJavaProxy mapperInterface(Class<?> mapperInterface)
mapperInterface - the dao2 interfacepublic MapperJavaProxy entityClass(Class<?> entityClass)
entityClass - the entity classprotected void checkArgs()
public MapperJavaProxy build()
protected void onResolveEntityClassFromMapperInterface(Class<?> mapperInterface)
mapperInterface - the dao2 interfacepublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke 在接口中 InvocationHandlerproxy - the proxymethod - the methodargs - the argsThrowable - the throwableCopyright © 2018. All rights reserved.