public class ReportDisplayHelper
extends java.lang.Object
This helper class is used for getting friendly displayable strings from the ReportDataBean.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ReportDisplayHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getColumnName(java.util.ResourceBundle reportsRB,
java.util.Hashtable columnAttributes)
Get the NL column name of the current column.
|
static java.lang.String |
getEnvAttribute(com.ibm.commerce.tools.reporting.reports.ReportDataBean reportDB,
java.lang.String key)
Get the environment attribute.
|
static java.lang.String |
getFormattedDate(java.lang.String value,
java.util.Locale locale)
Get the formatted date.
|
static java.util.Vector |
getReportColumnAttributes(com.ibm.commerce.tools.reporting.reports.ReportDataBean reportDB)
Get all column attributes of the report.
|
static java.lang.String |
retrieveColumnEntryString(int iRowNumber,
java.util.Hashtable columnAttributes,
java.util.Hashtable reportsRB,
com.ibm.commerce.tools.reporting.reports.ReportDataBean reportDB,
com.ibm.commerce.common.objects.StoreAccessBean storeAB,
java.lang.Integer languageId,
java.util.Locale locale,
java.lang.String currency)
Retrieve the data in the particular entry of the report data bean
|
public static final java.lang.String COPYRIGHT
public static java.lang.String getColumnName(java.util.ResourceBundle reportsRB, java.util.Hashtable columnAttributes)
Get the NL column name of the current column.
reportsRB
- ResourceBundle The resource bundle with the NL mappingscolumnAttributes
- Hashtable The report's current column attributespublic static java.lang.String getEnvAttribute(com.ibm.commerce.tools.reporting.reports.ReportDataBean reportDB, java.lang.String key)
Get the environment attribute.
reportDB
- ReportDataBean The report data beankey
- String The key of the attributepublic static java.lang.String getFormattedDate(java.lang.String value, java.util.Locale locale)
Get the formatted date.
value
- String The value that neeeds to be formattedlocale
- Locale The locale to format the value aspublic static java.util.Vector getReportColumnAttributes(com.ibm.commerce.tools.reporting.reports.ReportDataBean reportDB)
Get all column attributes of the report.
reportDB
- ReportDataBean The report data beanpublic static java.lang.String retrieveColumnEntryString(int iRowNumber, java.util.Hashtable columnAttributes, java.util.Hashtable reportsRB, com.ibm.commerce.tools.reporting.reports.ReportDataBean reportDB, com.ibm.commerce.common.objects.StoreAccessBean storeAB, java.lang.Integer languageId, java.util.Locale locale, java.lang.String currency)
Retrieve the data in the particular entry of the report data bean
rowIndex
- int The index of the report's row being displayedcolumnAttributes
- Hashtable The report's current column attributesreportsRB
- Hashtable The NL properties hashtablereportDB
- ReportDataBean The report data beanstoreAB
- StoreAccessBean The store access beanlanguageId
- Integer The language idlocale
- Locale The locale to format the value asdefaultCurrency
- String A default currency in case the report column attribute does not specify currency