1 22 package org.enhydra.jdbc.sybase; 23 24 import org.enhydra.jdbc.standard.StandardConnectionPoolDataSource; 25 26 import javax.sql.PooledConnection ; 27 import java.sql.SQLException ; 28 29 public class SybaseConnectionPoolDataSource extends StandardConnectionPoolDataSource { 30 31 34 public PooledConnection getPooledConnection () throws SQLException { 35 log.debug("SybaseConnectionPoolDataSource:getPooledConnection(0) return a pooled connection"); 36 return getPooledConnection (user, password); 37 } 38 39 42 public PooledConnection getPooledConnection (String user, String password) throws SQLException { 43 log.debug("SybaseConnectionPoolDataSource:getPooledConnection(2) return a pooled connection"); 44 return new SybasePooledConnection (this, user, password); 45 } 46 47 } 48 | Popular Tags |