1 21 package oracle.toplink.essentials.threetier; 23 24 import oracle.toplink.essentials.sessions.*; 25 import oracle.toplink.essentials.exceptions.*; 26 27 48 public interface Server extends oracle.toplink.essentials.sessions.DatabaseSession { 49 50 57 public ClientSession acquireClientSession() throws DatabaseException; 58 59 68 public ClientSession acquireClientSession(String poolName); 69 70 80 public ClientSession acquireClientSession(Login login); 81 82 87 public ClientSession acquireClientSession(ConnectionPolicy connectionPolicy); 88 89 94 public void addConnectionPool(String poolName, Login login, int minNumberOfConnections, int maxNumberOfConnections); 95 96 100 public void addConnectionPool(ConnectionPool pool); 101 102 106 public ConnectionPool getConnectionPool(String poolName); 107 108 113 public ConnectionPolicy getDefaultConnectionPolicy(); 114 115 119 public ConnectionPool getDefaultConnectionPool(); 120 121 127 public int getMaxNumberOfNonPooledConnections(); 128 129 142 public ConnectionPool getReadConnectionPool(); 143 144 148 public void setDatasourceLogin(Login login); 149 150 155 public void setDefaultConnectionPolicy(ConnectionPolicy defaultConnectionPolicy); 156 157 163 public void setMaxNumberOfNonPooledConnections(int maxNumberOfNonPooledConnections); 164 165 175 public void setReadConnectionPool(ConnectionPool readConnectionPool); 176 177 196 public void useExclusiveReadConnectionPool(int minNumberOfConnections, int maxNumberOfConnections); 197 198 210 public void useExternalReadConnectionPool(); 211 212 230 public void useReadConnectionPool(int minNumberOfConnections, int maxNumberOfConnections); 231 232 } 233 | Popular Tags |