TMapper - public class MyBatisMapperIdentityInvoker<TMapper> extends MyBatisMapperInvoker<TMapper>
| Constructor and Description |
|---|
MyBatisMapperIdentityInvoker(TMapper mapper) |
| 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 MyBatisMapperIdentityInvoker(TMapper mapper)
public <TResult> TResult invoke(Function<TMapper,TResult> function)
WrappedInvokerinvoke in interface WrappedInvoker<TMapper>invoke in class MyBatisMapperInvoker<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)
MyBatisMapperInvokerinvoke in class MyBatisMapperInvoker<TMapper>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.