C - the generic ConnectionParamspublic interface SessionConnectionProvider<C extends ConnectionParams> extends ConnectionProvider<C>
ConnectionProvider| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection(C params,
boolean isNew)
Gets the connection.
|
void |
releaseConnection(C params)
Releases connection.
|
getConnection, releaseConnectionConnection getConnection(C params, boolean isNew) throws Exception
params - the ConnectionParamsisNew - the "is new" flag. If true returns new jdbc connection, otherwise - connection cached on the current session. params
used as a key for the cacheException - in case of any errorvoid releaseConnection(C params) throws Exception
params - the ConnectionParamsException - in case of any errorCopyright © 2010-2020 Toolsverse. All Rights Reserved.