1 16 17 package org.springframework.jdbc.datasource; 18 19 import java.sql.Connection ; 20 21 import org.springframework.util.Assert; 22 23 30 public class SimpleConnectionHandle implements ConnectionHandle { 31 32 private final Connection connection; 33 34 35 39 public SimpleConnectionHandle(Connection connection) { 40 Assert.notNull(connection, "Connection must not be null"); 41 this.connection = connection; 42 } 43 44 47 public Connection getConnection() { 48 return connection; 49 } 50 51 55 public void releaseConnection(Connection con) { 56 } 57 58 59 public String toString() { 60 return "SimpleConnectionHandle: " + this.connection; 61 } 62 63 } 64 | Popular Tags |