Class ConnectionSources

java.lang.Object
org.sql2o.connectionsources.ConnectionSources

public class ConnectionSources extends Object
Predefined implementations of ConnectionSource Created by nickl on 09.01.17.
  • Method Details

    • join

      public static ConnectionSource join(Connection connection)
      A ConnectionSource that will wrap externally managed connection with proxy that will omit Connection.close() or Connection.commit() calls. This is useful to make Connection work with externally managed transactions
      Parameters:
      connection - connection to wrap
      Returns:
      a connection wrapper that represent a nested connection