Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEIIDSB-132: adding the source definitions and translators for Amazon… #137

Merged
merged 1 commit into from
Oct 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 31 additions & 20 deletions common/src/main/java/org/teiid/spring/common/ExternalSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@
import org.teiid.translator.Translator;

public enum ExternalSource {
ACTIAN("Actian", new String[] { "com.ingres.jdbc.IngresDriver" }, new String[] {}, "actian-vector",
"org.hibernate.dialect.Ingres10Dialect", new String[] {"com.ingres.jdbc:iijdbc"}),
DB2("DB2", new String[] { "com.ibm.db2.jcc.DB2Driver" }, new String[] { "com.ibm.db2.jcc.DB2XADataSource" }, "db2",
"org.hibernate.dialect.DB2Dialect", new String[] {"com.ibm.db2.jcc:db2jcc4"}),
DERBY("Derby", new String[] { "org.apache.derby.jdbc.ClientDriver" }, new String[] {}, "derby",
"org.hibernate.dialect.DerbyTenSevenDialect", new String[] {"org.apache.derby:derbyclient"}),
EXASOL("Exasol", new String[] { "com.exasol.jdbc.EXADriver" }, new String[] {}, "exasol",
null, new String[] {"com.exasol:exasol-jdbc"}),
H2("H2", new String[] { "org.h2.Driver" }, new String[] { "org.h2.jdbcx.JdbcDataSource" }, "h2",
"org.hibernate.dialect.H2Dialect", new String[] {"com.h2database:h2"}),
HANA("Hana", new String[] { "com.sap.db.jdbc.Driver" }, new String[] {}, "hana",
"org.hibernate.dialect.HANARowStoreDialect", new String[] {"com.sap.cloud.db.jdbc:ngdbc"}),
HBASE("HBase", new String[] { "org.apache.phoenix.jdbc.PhoenixDriver" }, new String[] {}, "hbase", null,
new String[] {"org.apache.phoenix:phoenix-queryserver-client"}),
HIVE("Hive", new String[] { "org.apache.hive.jdbc.HiveDriver" }, new String[] {}, "hive", null,
new String[] {"org.apache.hive:hive-jdbc"}),
HSQL("HSQL", new String[] { "org.hsqldb.jdbc.JDBCDriver" },
Expand All @@ -43,56 +49,61 @@ public enum ExternalSource {
"org.hibernate.dialect.InformixDialect", new String[] {"com.ibm.informix:jdbc"}),
INGRES("Ingres", new String[] { "com.ingres.jdbc.IngresDriver" }, new String[] {}, "ingres",
"org.hibernate.dialect.Ingres10Dialect", new String[] {"com.ingres.jdbc:iijdbc"}),
JTDS("MS-SQL Server", new String[] { "net.sourceforge.jtds.jdbc.Driver" }, new String[] {}, "sqlserver",
"org.hibernate.dialect.SQLServer2012Dialect", new String[] {"net.sourceforge.jtds:jtds"}),
MYSQL("MySQL", new String[] { "com.mysql.jdbc.Driver" },
new String[] { "com.mysql.jdbc.jdbc2.optional.MysqlXADataSource" }, "mysql5",
"org.hibernate.dialect.MySQL5InnoDBDialect", new String[] {"mysql:mysql-connector-java"}),
NETEZZA("Netezza", new String[] { "org.netezza.Driver " }, new String[] {}, "netezza", null, null),
ORACLE("Oracle", new String[] { "oracle.jdbc.OracleDriver" },
new String[] { "oracle.jdbc.xa.client.OracleXADataSource" }, "oracle",
"org.hibernate.dialect.Oracle12cDialect", new String[] {"com.oracle:ojdbc"}),
OSISOFTPI("OSISOFT PI", new String[] { "com.osisoft.jdbc.Driver" }, new String[] {}, "osisoft-pi", null,
null),
PHOENIX("Phoenix", new String[] { "org.apache.phoenix.jdbc.PhoenixDriver" }, new String[] {}, "phoenix", null,
new String[] {"org.apache.phoenix:phoenix-queryserver-client"}),
OSISOFTPI("OSISOFT PI", new String[] { "com.osisoft.jdbc.Driver" }, new String[] {}, "osisoft-pi", null, null),
POSTGRESQL("PostgreSQL", new String[] { "org.postgresql.Driver" },
new String[] { "org.postgresql.xa.PGXADataSource" }, "postgresql",
"org.hibernate.dialect.PostgreSQL9Dialect", new String[] {"org.postgresql:postgresql"}),
PHOENIX("Phoenix", new String[] { "org.apache.phoenix.jdbc.PhoenixDriver" }, new String[] {}, "phoenix", null,
new String[] {"org.apache.phoenix:phoenix-queryserver-client"}),
PRESTODB("PrestoDB", new String[] { "com.facebook.presto.jdbc.PrestoDriver" }, new String[] {}, "prestodb", null,
new String[] {"com.facebook.presto:presto-jdbc"}),
REDSHIFT("RedShift", new String[] { "com.amazon.redshift.jdbc42.Driver" },
new String[] {}, "redshift", null, new String[] {"com.amazon.redshift:redshift-jdbc42"}),
SAPIQ("SapIQ", new String[] { "com.sybase.jdbc4.jdbc.SybDriver" },new String[] {}, "sap-iq", null, null),
SQLSERVER("MS-SQL Server", new String[] { "com.microsoft.sqlserver.jdbc.SQLServerDriver" },
new String[] { "com.microsoft.sqlserver.jdbc.SQLServerXADataSource" }, "sqlserver",
"org.hibernate.dialect.SQLServer2012Dialect", new String[] {"com.microsoft.sqlserver:mssql-jdbc"}),
JTDS("MS-SQL Server", new String[] { "net.sourceforge.jtds.jdbc.Driver" }, new String[] {}, "sqlserver",
"org.hibernate.dialect.SQLServer2012Dialect", new String[] {"net.sourceforge.jtds:jtds"}),
SYBASE("Sybase", new String[] { "com.sybase.jdbc2.jdbc.SybDriver", "com.sybase.jdbc4.jdbc.SybDriver" },
new String[] {}, "sybase", "org.hibernate.dialect.SybaseDialect", null),
TEIID("Teiid", new String[] { "org.teiid.jdbc.TeiidDriver" }, new String[] {}, "teiid",
"org.teiid.dialect.TeiidDialect", new String[] {"org.teiid:teiid"}),
VERTICA("Vertica", new String[] { "com.vertica.jdbc.Driver" }, new String[] {}, "vertica", null,
new String[] {"org.clojars.erp12:jdbc-vertica"}),
NETEZZA("Netezza", new String[] { "org.netezza.Driver " }, new String[] {}, "netezza", null, null),
TERADATA("Teradata", new String[] { "com.teradata.jdbc.TeraDriver" }, new String[] {}, "teradata",
"org.hibernate.dialect.Teradata14Dialect", new String[] {"com.teradata.jdbc:terajdbc4"}),
UCANACCESS("UCanAccess", new String[] { "net.ucanaccess.jdbc.UcanaccessDriver" }, new String[] {}, "ucanaccess", null,
new String[] {"net.sf.ucanaccess:ucanaccess"}),
VERTICA("Vertica", new String[] { "com.vertica.jdbc.Driver" }, new String[] {}, "vertica", null,
new String[] {"org.clojars.erp12:jdbc-vertica"}),

EXCEL("excel", new String[] { "org.teiid.spring.data.excel.ExcelConnectionFactory" }, new String[] {}, "excel",
null, new String[] {"org.teiid:spring-data-excel"}),
FILE("file", new String[] { "org.teiid.spring.data.fileFileConnectionFactory" }, new String[] {}, "file", null,
new String[] {"org.teiid:teiid-spring-boot-starter"}),
GOOGLESHEETS("google-spreadsheet", new String[] { "org.teiid.spring.data.google.SpreadsheetConnectionFactory" },
new String[] {}, "google-spreadsheet", null, new String[] {"org.teiid:spring-data-google"}),
LOOPBACK("loopback", new String[] {}, new String[] {}, "loopback", null, new String[] {"org.teiid:teiid-spring-boot-starter"}),
REST("rest", new String[] { "org.teiid.spring.data.rest.RestConnectionFactory" }, new String[] {}, "rest", null,
new String[] {"org.teiid:spring-data-rest"}),
EXCEL("excel", new String[] { "org.teiid.spring.data.excel.ExcelConnectionFactory" }, new String[] {}, "excel",
null, new String[] {"org.teiid:spring-data-excel"}),
MONGODB("mongodb", new String[] { "org.teiid.spring.data.mongodb.MongoDBConnectionFactory" }, new String[] {},
"mongodb", null, new String[] {"org.teiid:spring-data-mongodb"}),
SALESFORCE("salesforce", new String[] { "org.teiid.spring.data.salesforce.SalesforceConnectionFactory" },
new String[] {}, "salesforce", null, new String[] {"org.teiid:spring-data-salesforce"}),
GOOGLESHEETS("google-spreadsheet", new String[] { "org.teiid.spring.data.google.SpreadsheetConnectionFactory" },
new String[] {}, "google-spreadsheet", null, new String[] {"org.teiid:spring-data-google"}),
ODATA("odata", new String[] { "org.teiid.spring.data.rest.RestConnectionFactory" }, new String[] {}, "odata", null,
new String[] {"org.teiid:spring-data-rest", "org.teiid.connectors:translator-odata"}),
SAP_GATEWAY("sap-gateway", new String[] { "org.teiid.spring.data.rest.RestConnectionFactory" }, new String[] {}, "sap-gateway", null,
new String[] {"org.teiid:spring-data-rest", "org.teiid.connectors:translator-odata"}),
ODATA4("odata4", new String[] { "org.teiid.spring.data.rest.RestConnectionFactory" }, new String[] {}, "odata4",
null, new String[] {"org.teiid:spring-data-rest", "org.teiid.connectors:translator-odata4"}),
OPENAPI("openapi", new String[] { "org.teiid.spring.data.rest.RestConnectionFactory" }, new String[] {}, "openapi",
null, new String[] {"org.teiid:spring-data-rest", "org.teiid.connectors:translator-swagger"});
null, new String[] {"org.teiid:spring-data-rest", "org.teiid.connectors:translator-swagger"}),
REST("rest", new String[] { "org.teiid.spring.data.rest.RestConnectionFactory" }, new String[] {}, "rest", null,
new String[] {"org.teiid:spring-data-rest"}),
SALESFORCE("salesforce", new String[] { "org.teiid.spring.data.salesforce.SalesforceConnectionFactory" },
new String[] {}, "salesforce", null, new String[] {"org.teiid:spring-data-salesforce"}),
SAP_GATEWAY("sap-gateway", new String[] { "org.teiid.spring.data.rest.RestConnectionFactory" }, new String[] {}, "sap-gateway", null,
new String[] {"org.teiid:spring-data-rest", "org.teiid.connectors:translator-odata"});

private String name;
private String[] driverNames;
Expand Down