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

com.alicloud.openservices.tablestore.jdbc.WrapperAdapter Maven / Gradle / Ivy

Go to download

Aliyun TableStore JDBC Driver Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

The newest version!
package com.alicloud.openservices.tablestore.jdbc;

import java.sql.Wrapper;

public class WrapperAdapter implements Wrapper {

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

    @SuppressWarnings("unchecked")
    @Override
    public  T unwrap(Class iface) {
        if (iface == null) {
            return null;
        }
        if (iface.isInstance(this)) {
            return (T) this;
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy