summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-analytics/src/main/java/org
diff options
context:
space:
mode:
authorIndrijeet kumar <indriku1@in.ibm.com>2020-05-15 09:25:13 +0530
committerIndrijeet kumar <indriku1@in.ibm.com>2020-05-15 09:26:58 +0530
commit33fa72041a1220e4bbf9d598964bd8d792581bc0 (patch)
tree24d39b485b3b9256c8c3d99dc810c9bba9bab869 /ecomp-sdk/epsdk-analytics/src/main/java/org
parente1dce346175ec18962e8687479da76b59ca75ab2 (diff)
lowered code smells in DBColumnInfo & ReportDefini
lowered code smells in DBColumnInfo.java & ReportDefinition.java Issue-ID: PORTAL-813 Change-Id: I6c435ba777ca7d858e4f5c6a02ece84b040882e4 Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-analytics/src/main/java/org')
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/DBColumnInfo.java2
-rw-r--r--ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportDefinition.java40
2 files changed, 1 insertions, 41 deletions
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/DBColumnInfo.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/DBColumnInfo.java
index 2b04fd46..20edc5b7 100644
--- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/DBColumnInfo.java
+++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/DBColumnInfo.java
@@ -48,8 +48,6 @@ public class DBColumnInfo extends RaptorObject {
private String label = null;
- // public DBColumnInfo() {}
-
public DBColumnInfo(String tableName, String colName, String colType, String label) {
super();
diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportDefinition.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportDefinition.java
index e51913e4..0f53729d 100644
--- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportDefinition.java
+++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/model/definition/ReportDefinition.java
@@ -492,7 +492,6 @@ public class ReportDefinition extends ReportWrapper implements Serializable {
dct.setOrderSeq(getAllColumns().size() + 1);
dct.setVisible(visible);
dct.setCalculated(calculated);
- // dct.setColType(colType);
if (nvl(colFormat).length() > 0)
dct.setColFormat(colFormat);
dct.setGroupBreak(groupBreak);
@@ -519,10 +518,7 @@ public class ReportDefinition extends ReportWrapper implements Serializable {
dct.setDbColType(colType);
adjustColumnType(dct);
-
- // ColFilterList colFilterList = objFactory.createColFilterList();
- // dct.setColFilterList(colFilterList);
-
+
getTableById(tableId).getDataColumnList().getDataColumn().add(dct);
resetCache(false);
@@ -833,7 +829,6 @@ public class ReportDefinition extends ReportWrapper implements Serializable {
}
}
- //return null;
}
public JavascriptItemType addJavascriptType(ObjectFactory objFactory, String id) throws RaptorException {
@@ -924,16 +919,11 @@ public class ReportDefinition extends ReportWrapper implements Serializable {
fft.setOrderBySeq((getFormFieldList() == null) ? 1 : getFormFieldList().getFormField()
.size() + 1);
fft.setFieldSQL(fieldSQL);
- //fft.setRangeStartDate(rangeStartDate);
- //fft.setRangeEndDate(rangeEndDate);
-
try {
fft.setRangeStartDate(DatatypeFactory.newInstance()
.newXMLGregorianCalendar(rangeStartDate.YEAR, rangeStartDate.MONTH, rangeStartDate.DAY_OF_WEEK, rangeStartDate.HOUR, rangeStartDate.MINUTE, rangeStartDate.SECOND, rangeStartDate.MILLISECOND, rangeStartDate.ZONE_OFFSET));
fft.setRangeStartDate(DatatypeFactory.newInstance()
.newXMLGregorianCalendar(rangeEndDate.YEAR, rangeEndDate.MONTH, rangeEndDate.DAY_OF_WEEK, rangeEndDate.HOUR, rangeEndDate.MINUTE, rangeEndDate.SECOND, rangeEndDate.MILLISECOND, rangeEndDate.ZONE_OFFSET));
- /*currField.setRangeEndDate(DatatypeFactory.newInstance()
- .newXMLGregorianCalendar(end));*/
} catch (DatatypeConfigurationException ex) {
}
@@ -1037,7 +1027,6 @@ public class ReportDefinition extends ReportWrapper implements Serializable {
FormFieldType fft = (FormFieldType) iter.next();
if (fieldId.equals(fft.getFieldId())) {
- //orderBySeq = fft.getOrderBySeq();
fieldDisplayName = getFormFieldDisplayName(fft);
iter.remove();
} else if (fft.getOrderBySeq()!=null && (fft.getOrderBySeq().intValue() > orderBySeq))
@@ -1588,32 +1577,5 @@ public class ReportDefinition extends ReportWrapper implements Serializable {
DataminingOptions dataminingOptions = objFactory.createDataminingOptions();
cr.setDataminingOptions(dataminingOptions);
}
- /*public void addChartAdditionalOptions(ObjectFactory objFactory, String chartType, String chartMultiplePieOrder, String chartMultiplePieLabelDisplay,
- String chartOrientation, String secondaryChartRenderer, String chartDisplay, String legendPosition,
- String labelAngle) throws RaptorException {
- try {
- ChartAdditionalOptions chartOptions = objFactory.createChartAdditionalOptions();
-
- if (nvl(chartMultiplePieOrder).length() > 0)
- chartOptions.setChartMultiplePieOrder(chartMultiplePieOrder);
- if (nvl(chartMultiplePieLabelDisplay).length() > 0)
- chartOptions.setChartMultiplePieLabelDisplay(chartMultiplePieLabelDisplay);
- if (nvl(chartOrientation).length() > 0)
- chartOptions.setChartOrientation(chartOrientation);
- if (nvl(secondaryChartRenderer).length() > 0)
- chartOptions.setSecondaryChartRenderer(secondaryChartRenderer);
- if (nvl(chartDisplay).length() > 0)
- chartOptions.setChartDisplay(chartDisplay);
- if (nvl(legendPosition).length() > 0)
- chartOptions.setLegendPosition(legendPosition);
- if (nvl(labelAngle).length() > 0)
- chartOptions.setLabelAngle(labelAngle);
-
- cr.setChartAdditionalOptions(chartOptions);
- } catch (JAXBException ex) {
- throw new RaptorException(ex.getMessage(), ex.getCause());
- }
- } // addChartAdditionalOptions*/
-
} // ReportDefinition