... |
<metadata type="${repository-type}">raw text</metadata> |
<!-- additional metadata <metadata type="${repository-type}">raw text</metadata> --> |
</model> |
... |
* _type_ |
The metadata repository type. Defaults to INDEX for Designer VDBs and NATIVE for non-Designer VDB source models. For all other deployments/models a value must be specified. Built-in types include DDL, NATIVE, INDEX, and DDL-FILE. The usage of the raw text varies with the by type and is currently only recommended when a single type is being used. NATIVE and INDEX (only for Designer VDBs) metadata repositories do not use the raw text or any model properties. The raw text for DDL (or a "ddl" model property) is expected to be be a series of DDL statements that define the schema - see also [DDL Metadata]. DDL-FILE (used only with zip deployments) is similar to DDL, except that the raw text (or a "ddl-file" model property) specifies an absolute path relative to the vdb root of the location of a file containing the DDL. See also [Custom Metadata Repository]. |
The metadata repository type. Defaults to INDEX for Designer VDBs and NATIVE for non-Designer VDB source models. For all other deployments/models a value must be specified. Built-in types include DDL, NATIVE, INDEX, and DDL-FILE. The usage of the raw text varies with the by type. NATIVE and INDEX (only for Designer VDBs) metadata repositories do not use the raw text. The raw text for DDL is expected to be be a series of DDL statements that define the schema - see also [DDL Metadata]. DDL-FILE (used only with zip deployments) is similar to DDL, except that the raw text specifies an absolute path relative to the vdb root of the location of a file containing the DDL. See also [Custom Metadata Repository]. Use more than 1 metadata element to define multiple sources of metadata. |
h1. Translator 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> <!-- additional metadata <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
<property name="security-domain" value="custom-security" />
An admin needs to configure a matching "custom-security" login module in standalone-teiid.xml configuration file before the VDB is deployed. |
<property name="connection.partialResultsMode" value="true" />
Attributes
Attributes
Property Elements
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