diff options
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/main')
-rw-r--r-- | ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportSchedule.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportSchedule.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportSchedule.java index 5ffb1326..1cd9b918 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportSchedule.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportSchedule.java @@ -1311,7 +1311,7 @@ public class ReportSchedule extends RaptorObject implements Serializable{ stmt = connection.prepareStatement(sql); stmt.setString(1,scheduleId); rs = stmt.executeQuery(); - Writer out = null; + //Writer out = null; /*if(Globals.isWeblogicServer()) { java.sql.Clob clob = null; if (rs.next()) @@ -1345,9 +1345,9 @@ public class ReportSchedule extends RaptorObject implements Serializable{ throw new RaptorException("only maria db support for this "); } - out.write(conditional_sql); - out.flush(); - out.close(); + //out.write(conditional_sql); + //out.flush(); + //out.close(); } catch (RaptorException ex) { if(ex.getMessage().indexOf("invalid identifier")!= -1) { try { @@ -1377,7 +1377,7 @@ public class ReportSchedule extends RaptorObject implements Serializable{ } catch (SQLException ex2) { throw new ReportSQLException (ex2.getMessage(), ex2.getCause()); } - } catch (IOException ex) { + } catch (Exception ex) { throw new RaptorRuntimeException (ex.getMessage(), ex.getCause()); } finally { try { |