The DatabaseCapabilities, accessed through a Session and created by the first Session that needs them.
The DatabaseCapabilities, accessed through a Session and created by the first Session that needs them. Access does not need to be synchronized because, in the worst case, capabilities will be determined multiple times by different concurrent sessions but the result should always be the same.
Create a new session.
Create a new session. The session needs to be closed explicitly by calling its close() method.
Run the supplied thunk with a new session and automatically close the session at the end.
Run the supplied thunk with a new session and automatically close the session at the end. The session is stored in a thread-local variable which can be accessed with the implicit function in Database.Implicit.
Run the supplied function with a new session and automatically close the session at the end.
Run the supplied thunk with a new session in a transaction and automatically close the session at the end.
Run the supplied thunk with a new session in a transaction and automatically close the session at the end. The session is stored in a thread-local variable which can be accessed with the implicit function in Database.Implicit.
Run the supplied function with a new session in a transaction and automatically close the session at the end.
A database instance to which connections can be created. Encapsulates either a DataSource or parameters for DriverManager.getConnection().