...
Date: | Author: | Version: | Changes: | Ext. | Int. | Is in Core | Jira Ref. |
---|---|---|---|---|---|---|---|
21 December 2010 | Davide Silvestre | 0.1 | Doc. created | x |
| N/A |
|
02 November 2015 | Karuna Thulluri | 0.2 | Added details about GenericXMLFiller | N/A | |||
26 November 2015 | Karuna Thulluri | 0.3 | Updated Value Formatter details |
Description
The purpose of this document is to provide a description of the configuration of XML Cdr files, so that they can be read correctly by the Service Providers.
...
Code Block | ||
---|---|---|
| ||
Select vrrec.* from VOUCHER_EXPORT_RECORD vr where vr.VOUCHER_EXPORT_RECORDS recwhere rec.SOURCE_ID = <BILLING_SOURCE_ID> order by vrrec.id; |
Example value for XML_DOCUMENT_DEF.SQL_RELOAD_RECORDS column can be:
Code Block | ||
---|---|---|
| ||
Select vrrec.* from VOUCHER_EXPORT_RECORD vr where vr.VOUCHER_EXPORT_RECORDS recwhere rec.SOURCE_ID = <BILLING_SOURCE_ID> and vrrec.id > <MAX_LOADED_ID> order by vrrec.id; |
If there are 20,000 records, then the GenericXMLFiller uses the SQL-queries configured in the corresponding XML_DOCUMENT_DEF entry like this:
...
NAME | Formatter name | |
CODE | Formatter code | |
DESCRIPTION | Describes the purpose of the formatter | |
VALUE_CLASS | Defines the input for the formatter (i.e. java.util.Date or java.lang.Number or java.lang.String) Important Note: The formatter should be chosen based on the actual value type. If the value type is not compatible with the java type defined in VALUE_FORMATTER | _CLASSClass used .VALUE_CLASS, the formatting fails and hence file generation fails.
|
FORMATTER_CLASS | Class used to format (i.e. com.CDRator.billing.utils.formatter.DateFormatter) | |
FORMATTER_METHOD | Usually it is format | |
FORMATTER_EXPRESSION | Pattern used to convert the object in theto formatted string (i.e.. This is optional for the formatters that do not require a pattern to be defined. Examples:
| |
NULL_VALUE | Value returned if the input object is null. This is optional and defaults to null. |
4 - Example of Generation
...