/** * SECURE: * set the login */ protected void setLogin(Login login) { this.login = login; this.usesExternalConnectionPooling = login.shouldUseExternalConnectionPooling(); }
/** * SECURE: * set the login */ protected void setLogin(Login login) { this.login = login; this.usesExternalConnectionPooling = login.shouldUseExternalConnectionPooling(); }
/** * SECURE: * set the login */ protected void setLogin(Login login) { this.login = login; this.usesExternalConnectionPooling = login.shouldUseExternalConnectionPooling(); }
/** * INTERNAL: * Checks for a conflict between pool's type and pool's login */ public boolean isThereConflictBetweenLoginAndType() { return !getLogin().shouldUseExternalConnectionPooling(); }
/** * INTERNAL: * Checks for a conflict between pool's type and pool's login */ public boolean isThereConflictBetweenLoginAndType() { return getLogin().shouldUseExternalConnectionPooling(); }
/** * INTERNAL: * Checks for a conflict between pool's type and pool's login */ public boolean isThereConflictBetweenLoginAndType() { return getLogin().shouldUseExternalConnectionPooling(); }
/** * INTERNAL: * Checks for a conflict between pool's type and pool's login */ public boolean isThereConflictBetweenLoginAndType() { return getLogin().shouldUseExternalConnectionPooling(); }
/** * INTERNAL: * Checks for a conflict between pool's type and pool's login */ public boolean isThereConflictBetweenLoginAndType() { return !getLogin().shouldUseExternalConnectionPooling(); }
/** * INTERNAL: * Checks for a conflict between pool's type and pool's login */ public boolean isThereConflictBetweenLoginAndType() { return !getLogin().shouldUseExternalConnectionPooling(); }
/** * PUBLIC: * Creates and sets the new read connection pool. * By default the same connection pool is used for read and write, * this allows a different login/pool to be used for reading. * By default 32 min/max connections are used in the pool with an initial of 1 connection. */ public void setReadConnectionPool(Login readLogin) throws ValidationException { if (isConnected()) { throw ValidationException.poolsMustBeConfiguredBeforeLogin(); } ConnectionPool pool = null; if (readLogin.shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool("read", readLogin, this); } else { pool = new ConnectionPool("read", readLogin, this); } this.readConnectionPool = pool; }
/** * PUBLIC: * Creates and sets the new read connection pool. * By default the same connection pool is used for read and write, * this allows a different login/pool to be used for reading. * By default 32 min/max connections are used in the pool with an initial of 1 connection. */ public void setReadConnectionPool(Login readLogin) throws ValidationException { if (isConnected()) { throw ValidationException.poolsMustBeConfiguredBeforeLogin(); } ConnectionPool pool = null; if (readLogin.shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool("read", readLogin, this); } else { pool = new ConnectionPool("read", readLogin, this); } this.readConnectionPool = pool; }
/** * PUBLIC: * Creates and sets the new read connection pool. * By default the same connection pool is used for read and write, * this allows a different login/pool to be used for reading. * By default 32 min/max connections are used in the pool with an initial of 1 connection. */ public void setReadConnectionPool(Login readLogin) throws ValidationException { if (isConnected()) { throw ValidationException.poolsMustBeConfiguredBeforeLogin(); } ConnectionPool pool = null; if (readLogin.shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool("read", readLogin, this); } else { pool = new ConnectionPool("read", readLogin, this); } this.readConnectionPool = pool; }
/** * PUBLIC: * Add the connection pool. * Connections are pooled to share and restrict the number of database connections. */ public void addConnectionPool(String poolName, Login login, int minNumberOfConnections, int maxNumberOfConnections) throws ValidationException { if (minNumberOfConnections > maxNumberOfConnections) { throw ValidationException.maxSizeLessThanMinSize(); } if (isConnected()) { throw ValidationException.poolsMustBeConfiguredBeforeLogin(); } ConnectionPool pool = null; if (login.shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool(poolName, login, this); } else { pool = new ConnectionPool(poolName, login, minNumberOfConnections, maxNumberOfConnections, this); } addConnectionPool(pool); }
/** * PUBLIC: * Add the connection pool. * Connections are pooled to share and restrict the number of database connections. */ public void addConnectionPool(String poolName, Login login, int minNumberOfConnections, int maxNumberOfConnections) throws ValidationException { if (minNumberOfConnections > maxNumberOfConnections) { throw ValidationException.maxSizeLessThanMinSize(); } if (isConnected()) { throw ValidationException.poolsMustBeConfiguredBeforeLogin(); } ConnectionPool pool = null; if (login.shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool(poolName, login, this); } else { pool = new ConnectionPool(poolName, login, minNumberOfConnections, maxNumberOfConnections, this); } addConnectionPool(pool); }
/** * PUBLIC: * Add the connection pool. * Connections are pooled to share and restrict the number of database connections. */ public void addConnectionPool(String poolName, Login login, int minNumberOfConnections, int maxNumberOfConnections) throws ValidationException { if (minNumberOfConnections > maxNumberOfConnections) { throw ValidationException.maxSizeLessThanMinSize(); } if (isConnected()) { throw ValidationException.poolsMustBeConfiguredBeforeLogin(); } ConnectionPool pool = null; if (login.shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool(poolName, login, this); } else { pool = new ConnectionPool(poolName, login, minNumberOfConnections, maxNumberOfConnections, this); } addConnectionPool(pool); }
if (project.getDatasourceLogin().shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool(DEFAULT_POOL, project.getDatasourceLogin(), this); } else {
if (project.getDatasourceLogin().shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool(DEFAULT_POOL, project.getDatasourceLogin(), this); } else {
ConnectionPool pool = null; if (this.connectionPool == null) { if (getLogin().shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool("sequencing", getLogin(), (ServerSession)getOwnerSession()); } else {
ConnectionPool pool = null; if (this.connectionPool == null) { if (getLogin().shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool("sequencing", getLogin(), (ServerSession)getOwnerSession()); } else {
ConnectionPool pool = null; if (this.connectionPool == null) { if (getLogin().shouldUseExternalConnectionPooling()) { pool = new ExternalConnectionPool("sequencing", getLogin(), (ServerSession)getOwnerSession()); } else {