1 43 package org.exolab.jms.persistence; 44 45 46 import java.sql.Connection ; 47 48 49 58 public interface DBConnectionManager { 59 60 65 void setUser(String name); 66 67 72 void setPassword(String password); 73 74 79 void setDriver(String driver); 80 81 86 void setURL(String url); 87 88 94 void setMaxActive(int active); 95 96 102 void setMaxIdle(int idle); 103 104 110 void setMinIdleTime(long time); 111 112 119 void setEvictionInterval(long interval); 120 121 127 void setTestQuery(String query); 128 129 138 void setTestBeforeUse(boolean test); 139 140 147 void init() throws PersistenceException; 148 149 157 Connection getConnection() throws PersistenceException; 158 } 159 | Popular Tags |