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

com.taosdata.jdbc.WrapperImpl Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package com.taosdata.jdbc;

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

public class WrapperImpl implements Wrapper {

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy