Creates a new SessionProxy delegating to the given Session.
Creates a new SessionProxy delegating to the given Session.
The proxy adds prepared statement caching functionality.
Creates a new SessionProxy delegating to the given Session.
Creates a new SessionProxy delegating to the given Session.
Additionally registers a callback on Session#close method.
code to be invoked after the session has been closed