public DB acquire(final String iURL, final String iUserName, final String iUserPassword) throws OLockException { return acquire(iURL, iUserName, iUserPassword, null); }
/** * Acquires a connection from the pool using the configured URL, user-name and user-password. If the pool is empty, then the * caller thread will wait for it. * * @return A pooled database instance */ public DB acquire() { setup(); return dbPool.acquire(url, userName, userPassword); }
/** * Acquires a connection from the pool. If the pool is empty, then the caller thread will wait for it. * * @param iName * Database name * @param iUserName * User name * @param iUserPassword * User password * @return A pooled database instance */ public DB acquire(final String iName, final String iUserName, final String iUserPassword) { setup(); return dbPool.acquire(iName, iUserName, iUserPassword); }
/** * Acquires a connection from the pool specifying options. If the pool is empty, then the caller thread will wait for it. * * @param iName * Database name * @param iUserName * User name * @param iUserPassword * User password * @return A pooled database instance */ public DB acquire(final String iName, final String iUserName, final String iUserPassword, final Map<String, Object> iOptionalParams) { setup(); return dbPool.acquire(iName, iUserName, iUserPassword, iOptionalParams); }