public interface SqlObject
SqlObject.
Custom mixins may be written as subinterfaces of this class with default methods.| Modifier and Type | Method and Description |
|---|---|
Handle |
getHandle() |
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.
|
<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()
<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 © 2020. All rights reserved.