Entering content frame

Object documentation db-init.dtd Locate the document in its SAP Library structure

Use

Use this document type definition (DTD) to produce XML file for initializing the database you use with the necessary data.

Structure

The db-init.dtd has the following structure:

This graphic is explained in the accompanying text

The use of each element is explained in detail as follows:

<!--

Db-init element contains a set of database initialization statements. They are associated to particular DataSource objects.

-->

<!ELEMENT db-init (init-statements+)>

 

<!--

Init-statements element contains data for database initialization and enables you to perform database operations.

-->

<!ELEMENT init-statements (data-source-name, sql-statement+)>

 

<!--

Data-source-name element defines the name of the DataSource for which you use the database initialization information.

Used in: database-initialization

Example: <data-source-name>myDataSource</data-source-name >

-->

<!ELEMENT data-source-name (#PCDATA)>

 

<!--

Sql-statement element contains the SQL statement for the database initialization. It specifies the operation that is to be performed on the database.

Used in: database-initialization

Example: <sql-statement>create table TEST</sql-statement>

-->

<!ELEMENT sql-statement (#PCDATA)>

 

<!--

This tag defines an attribute “ignore-error” for the sql statement, which takes a value of CDATA type (String) and is not required. The attribute takes either “true” or “false” value. If it is set to “false”, and the system throws an SQLException, the execution of the SQL statement(s) within the database-initialization tag is stopped. The same is the result when the ignore-error attribute is not set at all. If it is set to “true”, the execution of the SQL statements continues even after an SQLException is thrown.

Used in: sql-statement

-->

<!ATTLIST sql-statement ignore-error CDATA #IMPLIED>

 

Leaving content frame