... |
{code} |
{tip:title=Property Substitution} If a -vdb.xml file has defined property values like $\{my.property.name.value\}, these can be replaced by actual values that are defined through JAVA system properties. To define system properties on a JBoss AS server, please consult JBoss AS documentation. {tip} |
h1. VDB Element |
... |
A VDB or virtual database definition is contained in an XML file. For .vdb archive files created in the design tool, this file is embedded in the archive and most fields can be updated through tooling. The XML schema for this file can be found in the docs/teiid/schema directory.
<vdb name="${vdb-name}" version="${vdb-version}"> <!-- VDB properties --> <property name="${property-name}" value="${property-value}" /> <!-- UDF defined in an AS module, see Developers Guide --> <property name ="lib" value ="{module-name}"></property> <import-vdb name="..." version="..." import-data-policies="true|false"/> <!-- define a model fragment for each data source --> <model visible="true" name="${model-name}" type="${model-type}" > <property name="..." value="..." /> <source name="${source-name}" translator-name="${translator-name}" connection-jndi-name="${deployed-jndi-name}"> <metadata type="${repository-type}">raw text</metadata> </model> <!-- define a model with multiple sources - see Multi-Source Models --> <model name="${model-name}" path="/Test/Customers.xmi"> <property name="multisource" value="true"/> . . . <source name="${source-name}" translator-name="${translator-name}" connection-jndi-name="${deployed-jndi-name}"/> <source . . . /> <source . . . /> </model> <!-- see Reference Guide - Data Roles --> <data-role name="${role-name}"> <description>${role-description}</description> …. </data-role> <!-- create translator instances that override default properties --> <translator name="${translator-name}" type="${translator-type}" /> <property name="..." value="..." /> </translator> </vdb>
Property Substitution If a -vdb.xml file has defined property values like ${my.property.name.value}, these can be replaced by actual values that are defined through JAVA system properties. To define system properties on a JBoss AS server, please consult JBoss AS documentation. |
Attributes
Property Elements
Attributes
Attributes
Source Element
A source is a named binding of a translator and connection source to a model.
Property Elements
Metadata Element
The optional metadata element defines the metadata repository type and optional raw metadata to be consumed by the metadata repository.
Attributes
Property Elements