public class JDBCMapperConnector extends Object implements InvocationHandler
Modifier and Type | Field and Description |
---|---|
protected Function<Supplier<Object>,Object> |
defaultRunner |
protected Mapper |
mapper |
protected boolean |
noSharing |
Modifier | Constructor and Description |
---|---|
protected |
JDBCMapperConnector(Mapper mapper,
boolean noSharing) |
Modifier and Type | Method and Description |
---|---|
protected Object |
doConnectAndInvoke(Method method,
Object[] args) |
protected Object |
doDirectInvoke(Method method,
Object[] args) |
protected Object |
doInvoke(Method method,
Object[] args) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static Mapper |
newConnector(Mapper mapper,
boolean noSharing) |
protected boolean |
noSharingOf(String name) |
protected Function<Supplier<Object>,Object> |
runnerOf(String name) |
protected static void |
throwIfThrowable(Object result) |
static Mapper |
unwrap(Mapper mapper) |
protected final boolean noSharing
protected final Function<Supplier<Object>,Object> defaultRunner
protected JDBCMapperConnector(Mapper mapper, boolean noSharing)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
protected Object doDirectInvoke(Method method, Object[] args) throws Throwable
Throwable
protected Object doConnectAndInvoke(Method method, Object[] args) throws Throwable
Throwable
protected static void throwIfThrowable(Object result) throws Throwable
Throwable
protected boolean noSharingOf(String name)
public static Mapper newConnector(Mapper mapper, boolean noSharing)
Copyright © 2018 Nuxeo. All rights reserved.