Purpose | Mapping to Adabas. The
subtree is mapped to Adabas, must contain the
tsd:nodeAdabasField
below.
|
Parent element | tsd:map |
Child elements | None |
Attributes | dbid ,
password , fnr and
encoding |
Restrictions | tsd:subTreeAdabas is only valid if
the containing tsd:map element
belongs to a logical node that has child nodes, i.e. it must be a descendant
element of a tsd:elementInfo , not a
tsd:attributeInfo .
|
Name | Type | Description |
---|---|---|
dbid |
xs:string |
Specifies the Adabas database ID. |
password |
xs:string |
Specifies the password required to access the Adabas database. |
fnr |
xs:string |
Specifies the file number of the external Adabas file to access (see example below). |
encoding |
xs:string |
Specifies the encoding for the node and its children (see example below). The default encoding is ISO-8859-1. |
The valid values for the encoding
attribute are listed in the table below (each of these denoting a special
encoding):
big-5 | |
euc-kr | |
extended_unix_code_packed_format_for_japanese | |
gb2312 | |
ibm037 | |
ibm1026 | |
ibm273 | |
ibm277 | |
ibm278 | |
ibm280 | |
ibm284 | |
ibm285 | |
ibm420 | |
ibm424 | |
ibm437 | |
ibm500 | |
ibm775 | |
ibm850 | |
ibm852 | |
ibm855 | |
ibm857 | |
ibm860 | |
ibm862 | |
ibm863 | |
ibm864 | |
ibm865 | |
ibm866 | |
ibm868 | |
ibm869 | |
ibm870 | |
ibm871 | |
ibm918 | |
iso-10646-ucs-2 | |
iso-2022-jp | |
iso-8859-1 (default) | |
iso-8859-13 | |
iso-8859-15 | |
iso_8859-2 | |
iso_8859-3 | |
iso_8859-4 | |
iso_8859-5 | |
iso_8859-6 | |
iso_8859-7 | |
iso_8859-8 | |
jis_encoding | |
koi8-r | |
ks_c_5608-1987 | |
shift_jis | |
unicode-1-1 | |
utf-16 | |
utf-16be | |
utf-16le | |
utf-8 | |
windows-1250 | |
windows-1251 | |
windows-1252 | |
windows-1253 | |
windows-1254 | |
windows-1255 | |
windows-1256 | |
windows-1257 | |
windows-1258 | |
windows-31j |
This example maps an element with all its descendants to
Adabas. It illustrates the use of the
tsd:subTreeAdabas
element in conjunction with the
tsd:nodeAdabasField
element of TSD:
<xs:element name = "employee"> <xs:annotation> <xs:appinfo> <tsd:elementInfo> <tsd:physical> <tsd:map> <tsd:subTreeAdabas dbid = "3" fnr = "21"></tsd:subTreeAdabas> </tsd:map> </tsd:physical> </tsd:elementInfo> </xs:appinfo> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name = "name"> <xs:complexType> <xs:sequence> <xs:element name = "firstname" type = "xs:string"> <xs:annotation> <xs:appinfo> <tsd:elementInfo> <tsd:physical> <tsd:map> <tsd:nodeAdabasField shortname = "AC" format = "A" length = "20"/> </tsd:map> </tsd:physical> </tsd:elementInfo> </xs:appinfo> </xs:annotation> </xs:element> <xs:element name = "surname" type = "xs:string"> <xs:annotation> <xs:appinfo> <tsd:elementInfo> <tsd:physical> <tsd:map> <tsd:nodeAdabasField shortname = "AE" format = "A" length = "20"/> </tsd:map> </tsd:physical> </tsd:elementInfo> </xs:appinfo> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:sequence> </xs:complexType> </xs:element>