Database Editor
The Database Editor allows to define SQL queries for database connection components in order to retrieve data from a relational database. The logical separation of the process components SQL statement and database connection allows these components to be used flexibly and multiple times within the X4 Designer.
To open the Database Editor, create a new SQL statement file (.stm
) or open an already existing SQL statement file.
The Database Editor's structure
The Database Editor provides two different tools:
Statement Editor: Allows to connect to a database and displays the structure of the connected database. This structure can be used to create an SQL statement for the database.
Mapping Editor: Allows to define a mapping for elements of an input XML document to the named parameters of the statement previously created with the Statement Editor. This mapping is subsequently used to create an XSL mapping, which generates a dynamically created input for the (7.4.0-en) JDBC Connector using a suitable input XML document.

Statement Editor
The Statement Editor is divided into the following areas:
Connection area | Within this area a connection to a database can be established by means of a JDBC Connector.
| |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Database area | The database's structure is displayed here after establishing the connection. The following icons are used to visualize the structure:
| |||||||||||||||||||||||||||||
Statement area | Here, different statements can be created for the connected database via the context menu:
For further information on how to create and edit statements, see section Creating Statements for a Connected Database. Drag&Drop actions The following Drag&Drop actions can be performed within the Statement area:
|
Mapping Editor
The Mapping Editor allows to define a mapping for elements of an input XML document to the named parameters of the statement previously created with the Statement Editor. This mapping is subsequently used to create an XSL mapping, which generates a dynamically created input for the (7.4.0-en) JDBC Connector using a suitable input XML document.
The Mapping Editor is divided into the following areas:

Source area | The Source area is on the Mapping Editor's left side. The input XML file can be displayed here and assigned by drag & drop. The context menu provides the following options:
|
---|---|
Linking area | The Linking area is located in the Mapping Editor's middle column. It visualizes the |
Statements area | The Statements area is located on the Mapping Editor's right side. The complete structure of the statement file is displayed here. Moreover, elements of an input XML file can be mapped to the child elements of a |