提交 8b6b8192 编写于 作者: Z zyyang

change

上级 ff1ab88c
......@@ -246,17 +246,17 @@ public abstract class AbstractStatement implements Statement {
return this.closeOnCompletion;
}
// @Override
// public <T> T unwrap(Class<T> 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);
// }
@Override
public <T> T unwrap(Class<T> 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);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册