summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics/src/main
diff options
context:
space:
mode:
authorMadheswaran, Saravanan <msaravanan@in.ibm.com>2018-03-22 15:05:25 -0400
committerMadheswaran, Saravanan <msaravanan@in.ibm.com>2018-03-22 15:05:25 -0400
commit17891f3aac1fa48f3cc1b2b858024d4edbd1f38c (patch)
tree656751b54f030b52c156fd0d88dec24b38d8945d /ecomp-sdk/epsdk-analytics/src/main
parent3303a979e1730e9b999a5090f769a6e6811224b3 (diff)
Added Junits
Issue-ID: PORTAL-136 Includes JUNITS, Analytics module Change-Id: I294bc657a2f0008a6ef889da2635525c77abc809 Change-Id: I294bc657a2f0008a6ef889da2635525c77abc809 Signed-off-by: Madheswaran, Saravanan <msaravanan@in.ibm.com>
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.java10
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 {