Search in sources :

Example 1 with DatasourceConnectionImpl

use of lucee.runtime.db.DatasourceConnectionImpl in project Lucee by lucee.

the class Admin method _doVerifyDatasource.

private void _doVerifyDatasource(DataSource ds, String username, String password) throws PageException {
    try {
        DataSourceManager manager = pageContext.getDataSourceManager();
        DatasourceConnectionImpl dc = new DatasourceConnectionImpl(ds.getConnection(config, username, password), ds, username, password);
        manager.releaseConnection(pageContext, dc);
    } catch (Exception e) {
        throw Caster.toPageException(e);
    }
}
Also used : DatasourceConnectionImpl(lucee.runtime.db.DatasourceConnectionImpl) DataSourceManager(lucee.runtime.db.DataSourceManager) PageException(lucee.runtime.exp.PageException) SecurityException(lucee.runtime.exp.SecurityException) IOException(java.io.IOException) DeprecatedException(lucee.runtime.exp.DeprecatedException) BundleException(org.osgi.framework.BundleException) MalformedURLException(java.net.MalformedURLException) SMTPException(lucee.runtime.net.mail.SMTPException) ApplicationException(lucee.runtime.exp.ApplicationException)

Aggregations

IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 DataSourceManager (lucee.runtime.db.DataSourceManager)1 DatasourceConnectionImpl (lucee.runtime.db.DatasourceConnectionImpl)1 ApplicationException (lucee.runtime.exp.ApplicationException)1 DeprecatedException (lucee.runtime.exp.DeprecatedException)1 PageException (lucee.runtime.exp.PageException)1 SecurityException (lucee.runtime.exp.SecurityException)1 SMTPException (lucee.runtime.net.mail.SMTPException)1 BundleException (org.osgi.framework.BundleException)1