Difference between revisions of "FieldFormatters"

From GreenVulcano Wiki
Jump to: navigation, search
(Created page with "'''FieldFormatters''': Contains the Description and the FieldFormatter(s) It has the parameter: * id: Must match the @id of the statement on which output apply the formatters. ...")
 
Line 1: Line 1:
'''FieldFormatters''': Contains the Description and the FieldFormatter(s)
+
=={{GVESB}} Configuration==
  
It has the parameter:
+
The FieldFormatters Element is used by:  
 +
* [[DBOFlatSelect]]
 +
* [[DBOMultiFlatSelect]]
 +
* [[DBOSelect]],
 +
* [[DBOThreadSelect]].
  
* id: Must match the @id of the statement on which output apply the formatters.
+
The following table shows its attributes:
 +
{|class="gvtable"
 +
! Attribute !! Type !! Description
 +
|-
 +
| id || required || Must match the @id of the statement on which output apply the formatters.
 +
The attribute's value cannot be null.
 +
|}
  
 +
Might contain the sub-elements:
 +
* [[Description]]
 +
* [[#FieldFormatter|FieldFormatter]]
  
'''FieldFormatter''' element: Used to force DB table field formatting. It has the child Description
 
  
Its parameters are:  
+
===FieldFormatter===
   
+
 
* type: Used by {{GVESB}} factory framework. Unmodifiable;
+
The FieldFormatter element is used to force the Database table fields formatting.
* field-id: Comma-separated list of 0-based positions of fields on which apply the formatter;
+
 
* field-name: Comma-separated list of names of fields on which apply the formatter;
+
It is used by: [[FieldFormatters]].
* number-format: Default to "#,##0.###";
+
 
* decimal-separator: Default to ",";
+
The following table shows the FieldFormatter element's attributes:
* grouping-separator: Default to ".";
+
{|class="gvtable"
* date-format: Default to "yyyyMMdd HH:mm:ss";
+
! Attribute !! Type !! Description
* field-length: Default to "64";
+
|-
* filler-char: Default to " ";
+
| type || fixed || Unmodifiable. Used by {{GVESB}} factory framework.
* terminator-char: Default to "";
+
This attribute must assume the value '''field-formatter'''.
* trim (none|both|right|left)Default to "none";
+
|-
* paddingDefault to "none".
+
| field-id || optional || Comma-separated list of 0-based positions of fields on which apply the formatter
 +
|-
 +
| field-name || optional || Comma-separated list of names of fields on which apply the formatter
 +
|-
 +
| number-format || optional || Default to "#,##0.###"
 +
|-
 +
| decimal-separator || optional || Default to ","
 +
|-
 +
| grouping-separator || optional || Default to "."
 +
|-
 +
| date-format || optional || Default to "yyyyMMdd HH:mm:ss"
 +
|-
 +
| field-length || optional || Default to "64"
 +
|-
 +
| filler-char || optional || Default to " "
 +
|-
 +
| terminator-char || optional || Default to ""
 +
|-
 +
| trim (none|both|right|left) || optional || Default to "none"
 +
|-
 +
| padding || optional || Default to "none"
 +
|}
 +
 
 +
Might contain the sub-element:
 +
* [[Description]]

Revision as of 13:09, 3 April 2012

GreenVulcano® ESB Configuration

The FieldFormatters Element is used by:

The following table shows its attributes:

Attribute Type Description
id required Must match the @id of the statement on which output apply the formatters.

The attribute's value cannot be null.

Might contain the sub-elements:


FieldFormatter

The FieldFormatter element is used to force the Database table fields formatting.

It is used by: FieldFormatters.

The following table shows the FieldFormatter element's attributes:

Attribute Type Description
type fixed Unmodifiable. Used by GreenVulcano® ESB factory framework.

This attribute must assume the value field-formatter.

field-id optional Comma-separated list of 0-based positions of fields on which apply the formatter
field-name optional Comma-separated list of names of fields on which apply the formatter
number-format optional Default to "#,##0.###"
decimal-separator optional Default to ","
grouping-separator optional Default to "."
date-format optional Default to "yyyyMMdd HH:mm:ss"
field-length optional Default to "64"
filler-char optional Default to " "
terminator-char optional Default to ""
both|right|left) optional Default to "none"
padding optional Default to "none"

Might contain the sub-element: