TMapper - The type of your mapper interfacepublic class MyBatisMapperInvoker<TMapper> extends Object implements WrappedInvoker<TMapper>
| Constructor and Description |
|---|
MyBatisMapperInvoker(Class<TMapper> mapperClass,
SqlSessionFactoryProvider sqlSessionFactoryProvider) |
| Modifier and Type | Method and Description |
|---|---|
<TResult> TResult |
invoke(Function<TMapper,TResult> function)
Your implementation of this method should manufacture or reuse an instance of T, then apply function to it
|
<TResult> TResult |
invoke(Function<TMapper,TResult> function,
String environment)
In case you want to eschew cvent-pangea's contextual environment and pass it yourself, this overload is
available.
|
public MyBatisMapperInvoker(Class<TMapper> mapperClass, SqlSessionFactoryProvider sqlSessionFactoryProvider)
public <TResult> TResult invoke(Function<TMapper,TResult> function)
WrappedInvokerinvoke in interface WrappedInvoker<TMapper>TResult - The return type of your functionfunction - Your function that will execute given an instance of Tpublic <TResult> TResult invoke(Function<TMapper,TResult> function, String environment)
TResult - The result of the Function, usually the result of a mapper methodfunction - The Functionenvironment - The environment name as registered in the SqlSessionFactoryProviderCopyright © 2019. All rights reserved.