-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat JBoss Data Virtualization
Chapter 4. Extending the JDBC Translator
4.1. Extensions
New custom Translators can be created by extending the JDBC Translator. This is one of the most common use-cases for custom Translator development and is often done to add support for JDBC drivers and database versions.
To design a JDBC Translator for any relational database management system (RDBMS) that is not already supported by Red Hat JBoss Data Virtualization, extend the
org.teiid.translator.jdbc.JDBCExecutionFactory
class in the translator-jdbc
module. There are three types of methods that you can override from the base class to define the behavior of the Translator.
Table 4.1. Extensions
Extension
|
Purpose
|
---|---|
Capabilities
|
Specify the SQL syntax and functions the source supports.
|
SQL Translation
|
Customize what SQL syntax is used, how source-specific functions are supported, how procedures are executed.
|
Results Translation
|
Customize how results are retrieved from JDBC and translated.
|