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

org.rx.jdbc.SuperJdbc Maven / Gradle / Ivy

package org.rx.jdbc;

import org.rx.core.Disposable;

import java.sql.SQLException;
import java.sql.Wrapper;

public abstract class SuperJdbc extends Disposable implements Wrapper {
    public static final String CATALOG = "def";

    @Override
    protected void freeObjects() {
    }

    @Override
    public  T unwrap(Class iface) throws SQLException {
        try {
            return iface.cast(this);
        } catch (ClassCastException e) {
            throw new SQLException("Unable to unwrap to " + iface);
        }
    }

    @Override
    public boolean isWrapperFor(Class iface) {
        return iface.isInstance(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy