This commit is contained in:
xiusiyan
2012-03-18 22:57:34 +08:00
1153 changed files with 145776 additions and 145758 deletions
@@ -1,38 +1,38 @@
package com.alibaba.druid.pool;
import java.sql.SQLException;
import java.sql.Wrapper;
public class WrapperAdapter implements Wrapper {
public WrapperAdapter(){
}
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
if (iface == null) {
return false;
}
if (iface.isInstance(this)) {
return true;
}
return false;
}
@SuppressWarnings("unchecked")
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
if (iface == null) {
return null;
}
if (iface.isInstance(this)) {
return (T) this;
}
return null;
}
}
package com.alibaba.druid.pool;
import java.sql.SQLException;
import java.sql.Wrapper;
public class WrapperAdapter implements Wrapper {
public WrapperAdapter(){
}
@Override
public boolean isWrapperFor(Class<?> iface) throws SQLException {
if (iface == null) {
return false;
}
if (iface.isInstance(this)) {
return true;
}
return false;
}
@SuppressWarnings("unchecked")
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
if (iface == null) {
return null;
}
if (iface.isInstance(this)) {
return (T) this;
}
return null;
}
}