
com.alicloud.openservices.tablestore.jdbc.WrapperAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tablestore-jdbc Show documentation
Show all versions of tablestore-jdbc Show documentation
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