protected void getPlanInfo(Statement s) {
if (s == null) {
return;
}
TeiidStatement ts;
try {
ts = s.unwrap(TeiidStatement.class);
} catch (SQLException e) {
throw new RuntimeException(e);
}
plan = ts.getPlanDescription();
annotations = ts.getAnnotations();
debugLog = ts.getDebugLog();
try {
warnings = ts.getWarnings();
} catch (SQLException e) {
LOG.log(Level.WARNING, "Caught exception getting warnings: " + e, e);
}
}