... |
* _cache-metadata_ |
Can be "true" or "false". defaults to "false" for -vdb.xml deployments otherwise "true". If "false", Teiid will obtain metadata once for every launch of the vdb. "true" will save a file containing the metadata into the PROFILE{{/data/teiid}} PROFILE/data/teiid directory |
* _query-timeout_ |
... |
By default this value is set to "true", when the value is set to "false", this model will not be visible to when JDBC metadata queries. Usually it is used to hide a model from client applications that should not directly issue queries against it. However, this does not prohibit either client application or other view models using this model, if they knew the schema for this model. |
*Property Elements* * _cache-metadata_ Can be "true" or "false". defaults to "false" for -vdb.xml deployments otherwise "true". If "false", Teiid will obtain metadata once for every launch of the vdb. "true" will save a file containing the metadata into the PROFILE/data/teiid directory Can be used to override the vdb level cache-metadata property. |
*Source 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
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