public class DefaultMapperBuilder extends Object implements MapperBuilder
Modifier and Type | Field and Description |
---|---|
protected Map<Class<?>,Object> |
cache
The cache.
|
protected DBClient |
client
The db client.
|
Constructor and Description |
---|
DefaultMapperBuilder(DBClient client)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
buildInstance(Class<T> mapperInterface)
Builds the instance.
|
<T> T |
getMapper(Class<T> mapperInterface)
Gets the dao2.
|
protected DBClient client
public DefaultMapperBuilder(DBClient client)
client
- the db clientpublic <T> T getMapper(Class<T> mapperInterface)
MapperBuilder
getMapper
in interface MapperBuilder
T
- the generic typemapperInterface
- the dao interfacepublic <T> T buildInstance(Class<T> mapperInterface)
T
- the generic typemapperInterface
- the dao interfaceCopyright © 2020. All rights reserved.