1 16 19 20 package org.apache.xalan.lib.sql; 21 22 import java.sql.Connection ; 23 import java.sql.SQLException ; 24 import java.util.Properties ; 25 26 33 public interface ConnectionPool 34 { 35 36 41 public boolean isEnabled( ); 42 43 48 public void setDriver( String d ); 49 50 54 public void setURL( String url ); 55 56 62 public void freeUnused( ); 63 64 65 70 public boolean hasActiveConnections( ); 71 72 83 public void setPassword( String p ); 84 85 89 public void setUser( String u ); 90 91 92 98 public void setMinConnections( int n ); 99 100 106 public boolean testConnection( ); 107 108 113 public Connection getConnection( )throws SQLException ; 114 115 122 public void releaseConnection( Connection con )throws SQLException ; 123 124 133 public void releaseConnectionOnError( Connection con )throws SQLException ; 134 135 136 146 public void setPoolEnabled( final boolean flag ); 147 148 152 public void setProtocol(Properties p); 153 154 155 } 156 | Popular Tags |