public interface GetHandle
| Modifier and Type | Method and Description |
|---|---|
Handle |
getHandle()
Obtain the handle associated to this sql object.
|
default <X extends Exception> |
useHandle(HandleConsumer<X> consumer)
A convenience function which manages the lifecycle of the handle associated to this sql object,
and yields it to a consumer for use by clients.
|
default <R,X extends Exception> |
withHandle(HandleCallback<R,X> callback)
A convenience function which manages the lifecycle of the handle associated to this sql object,
and yields it to a callback for use by clients.
|
Handle getHandle()
default <R,X extends Exception> R withHandle(HandleCallback<R,X> callback) throws X extends Exception
R - type returned by the callbackX - exception type thrown by the callback, if any.callback - A callback which will receive the handle associated to this sql objectX - any exception thrown by the callbackX extends Exceptiondefault <X extends Exception> void useHandle(HandleConsumer<X> consumer) throws X extends Exception
X - exception type thrown by the callback, if any.consumer - A consumer which will receive the handle associated to this sql objectX - any exception thrown by the callbackX extends ExceptionCopyright © 2016. All rights reserved.