1 22 23 24 package com.mchange.v2.c3p0.filter; 25 26 import java.io.PrintWriter ; 27 import java.lang.String ; 28 import java.sql.Connection ; 29 import java.sql.SQLException ; 30 import javax.sql.DataSource ; 31 32 33 public abstract class FilterDataSource implements DataSource 34 { 35 protected DataSource inner; 36 37 public FilterDataSource(DataSource inner) 38 { 39 this.inner = inner; 40 } 41 42 public Connection getConnection() throws SQLException 43 { 44 return inner.getConnection(); 45 } 46 47 public Connection getConnection(String a, String b) throws SQLException 48 { 49 return inner.getConnection(a, b); 50 } 51 52 public PrintWriter getLogWriter() throws SQLException 53 { 54 return inner.getLogWriter(); 55 } 56 57 public int getLoginTimeout() throws SQLException 58 { 59 return inner.getLoginTimeout(); 60 } 61 62 public void setLogWriter(PrintWriter a) throws SQLException 63 { 64 inner.setLogWriter(a); 65 } 66 67 public void setLoginTimeout(int a) throws SQLException 68 { 69 inner.setLoginTimeout(a); 70 } 71 72 } 73 74 | Popular Tags |