MCPcopy Index your code
hub / github.com/apache/groovy / getConnection

Method getConnection

subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java:3987–3989  ·  view source on GitHub ↗

If this instance was created with a single Connection then the connection is returned. Otherwise if this instance was created with a DataSource then this method returns null @return the connection wired into this object, or null if this object uses a DataSource

()

Source from the content-addressed store, hash-verified

3985 * uses a DataSource
3986 */
3987 public Connection getConnection() {
3988 return useConnection;
3989 }
3990
3991 private void setConnection(Connection connection) {
3992 useConnection = connection;

Callers 2

newInstanceMethod · 0.80
createConnectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected