All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duckdb.JdbcUtils Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package org.duckdb;

import java.sql.SQLException;

final class JdbcUtils {

    @SuppressWarnings("unchecked")
    static  T unwrap(Object obj, Class iface) throws SQLException {
        if (!iface.isInstance(obj)) {
            throw new SQLException(obj.getClass().getName() + " not unwrappable from " + iface.getName());
        }
        return (T) obj;
    }

    private JdbcUtils() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy