Ce contenu n'est pas disponible dans la langue sélectionnée.
6.2. VDB Definition: The VDB Element
Attributes
- nameThe name of the VDB. The VDB name referenced through the driver or datasource during the connection time.
- versionThe version of the VDB (should be an positive integer). This determines the deployed directory location (see Name), and provides an explicit versioning mechanism to the VDB name.
Property Elements
- cache-metadataCan be "true" or "false". If "false", JBoss Data Virtualization will obtain metadata once for every launch of the VDB. "true" will save a file containing the metadata into the
EAP_HOME/MODE/data
directory. Defaults to "false" for-vdb.xml
deployments otherwise "true". - query-timeoutSets the default query timeout in milliseconds for queries executed against this VDB. 0 indicates that the server default query timeout should be used. Defaults to 0. Will have no effect if the server default query timeout is set to a lesser value. Note that clients can still set their own timeouts that will be managed on the client side.
- libSet to a list of modules for the VDB classpath for user defined function loading. See also Support for Non-Pushdown User Defined Functions in Red Hat JBoss Data Virtualization Development Guide: Server Development.
- security-domainSet to the security domain to use if a specific security domain is applicable to the VDB. Otherwise the security domain list from the transport will be used.
<property name="security-domain" value="custom-security" />
Important
An administrator needs to configure a matching "custom-security" login module in the standalone.xml configuration file before the VDB is deployed. - connection.XXXThis is for use by the ODBC transport and OData. They use it to set the default connection/execution properties. Note that the properties are set on the connection after it has been established.
<property name="connection.partialResultsMode" value="true" />
- authentication-typeAuthentication type of configured security domain. Allowed values currently are (GSS, USERPASSWORD). The default is set on the transport (typically USERPASSWORD).
- password-patternRegular expression matched against the connecting user's name that determines if USERPASSWORD authentication is used. password-pattern Takes precedence of over authentication-type. The default is authentication-type.
- gss-patternRegular expression matched against the connecting user's name that determines if GSS authentication is used. gss-pattern Takes precedence of over password-pattern. The default is password-pattern.
- model.visibleUsed to override the visibility of imported vdb models, where model is the name of the imported model..
- include-pg-metadataBy default, PG metadata is always added to VDB unless System Properties set property org.teiid.addPGMetadata to false. This property enables adding PG metadata per VDB. Please note that if you are using ODBC to access your VDB, the VDB must include PG metadata.
- lazy-invalidateBy default TTL expiration will be invalidating. Setting lazy-invalidate to true makes ttl refreshes non-invalidating.