Package org.openbel.framework.common.enums

Examples of org.openbel.framework.common.enums.DatabaseType


     */
    @Override
    public DBConnection dbConnection(final String url, final String user,
            final String pass) throws SQLException {

        final DatabaseType type = getDatabaseTypeForURL(url);
        if (type == null) {
            final String err = "failed to determine database type (URL: %s)";
            throw new UnsupportedOperationException(format(err, url));
        }
        try {
            Class.forName(type.getDriverClassName());
        } catch (ClassNotFoundException e) {
            final String err = "failed to load database driver (URL: %s)";
            final String msg = format(err, url);
            throw new UnsupportedOperationException(msg, e);
        }
View Full Code Here


     */
    @Override
    public DBConnection dbConnection(final String url, final String user,
            final String pass) throws SQLException {

        final DatabaseType type = getDatabaseTypeForURL(url);
        if (type == null) {
            final String err = "failed to determine database type (URL: %s)";
            throw new UnsupportedOperationException(format(err, url));
        }
        try {
            Class.forName(type.getDriverClassName());
        } catch (ClassNotFoundException e) {
            final String err = "failed to load database driver (URL: %s)";
            final String msg = format(err, url);
            throw new UnsupportedOperationException(msg, e);
        }
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.enums.DatabaseType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.