Package org.sql2o.connectionsources
Class ConnectionSources
java.lang.Object
org.sql2o.connectionsources.ConnectionSources
Predefined implementations of
ConnectionSource
Created by nickl on 09.01.17.-
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionSource
join
(Connection connection) A ConnectionSource that will wrap externally managed connection with proxy that will omitConnection.close()
orConnection.commit()
calls.
-
Method Details
-
join
A ConnectionSource that will wrap externally managed connection with proxy that will omitConnection.close()
orConnection.commit()
calls. This is useful to makeConnection
work with externally managed transactions- Parameters:
connection
- connection to wrap- Returns:
- a connection wrapper that represent a nested connection
-