public interface GetHandle
Modifier and Type | Method and Description |
---|---|
Handle |
getHandle()
Obtain the handle associated to this sql object.
|
<ReturnType> |
withHandle(HandleCallback<ReturnType> 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()
<ReturnType> ReturnType withHandle(HandleCallback<ReturnType> callback) throws CallbackFailedException
callback
- A callback which will receive the handle associated to this sql objectCallbackFailedException
- Will be thrown if callback raises an exception. This exception will
wrap the exception thrown by the callback.Copyright © 2018. All rights reserved.