support JDK 1.7 features

This commit is contained in:
高铁
2019-10-19 19:30:46 +08:00
parent e91f383fed
commit b2f914bd15
4 changed files with 8 additions and 8 deletions
@@ -1068,11 +1068,11 @@ public class DruidPooledCallableStatement extends DruidPooledPreparedStatement i
}
public <T> T getObject(int parameterIndex, Class<T> type) throws SQLException {
throw new SQLFeatureNotSupportedException();
return stmt.getObject(parameterIndex, type);
}
public <T> T getObject(String parameterName, Class<T> type) throws SQLException {
throw new SQLFeatureNotSupportedException();
return stmt.getObject(parameterName, type);
}
@SuppressWarnings("unchecked")
@@ -879,10 +879,10 @@ public class DruidPooledStatement extends PoolableWrapper implements Statement {
}
public void closeOnCompletion() throws SQLException {
throw new SQLFeatureNotSupportedException();
stmt.closeOnCompletion();
}
public boolean isCloseOnCompletion() throws SQLException {
throw new SQLFeatureNotSupportedException();
stmt.isCloseOnCompletion();
}
}
@@ -603,11 +603,11 @@ public class CallableStatementProxyImpl extends PreparedStatementProxyImpl imple
}
public <T> T getObject(int parameterIndex, Class<T> type) throws SQLException {
throw new SQLFeatureNotSupportedException();
return statement.getObject(parameterIndex, type);
}
public <T> T getObject(String parameterName, Class<T> type) throws SQLException {
throw new SQLFeatureNotSupportedException();
return statement.getObject(parameterName, type);
}
@SuppressWarnings("unchecked")
@@ -503,11 +503,11 @@ public class StatementProxyImpl extends WrapperProxyImpl implements StatementPro
}
public void closeOnCompletion() throws SQLException {
throw new SQLFeatureNotSupportedException();
statement.closeOnCompletion();
}
public boolean isCloseOnCompletion() throws SQLException {
throw new SQLFeatureNotSupportedException();
statement.isCloseOnCompletion();
}
@Override