From 267c7b1af11ec8f306b37c58c7190c57fd906dc5 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Thu, 23 Oct 2014 13:17:16 +0200 Subject: Config : all enum values in CAPS. --- src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java | 2 +- src/connectors/src/data/io/sql/SQLConnectionWrapper.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/connectors') diff --git a/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java b/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java index a97a98d..f22671d 100644 --- a/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java +++ b/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java @@ -67,7 +67,7 @@ public class SQLRelDataReaderTest { File currentFolder = new File(main.getPath()).getParentFile(); // Build a connection and two readers on it - builder = new SQLConnectionWrapper(DBMSType.mysql, "localhost", 3306, null, "root", "secret", "sssync"); + builder = new SQLConnectionWrapper(DBMSType.MYSQL, "localhost", 3306, null, "root", "secret", "sssync"); reader1 = builder.newReader("testMysql1", TEST_REQUEST); reader2 = builder.newReader("testMysql2", new File(currentFolder, "req_test.sql")); } diff --git a/src/connectors/src/data/io/sql/SQLConnectionWrapper.java b/src/connectors/src/data/io/sql/SQLConnectionWrapper.java index e4bbf10..de9b2cc 100644 --- a/src/connectors/src/data/io/sql/SQLConnectionWrapper.java +++ b/src/connectors/src/data/io/sql/SQLConnectionWrapper.java @@ -40,7 +40,7 @@ public class SQLConnectionWrapper implements Closeable { /** * Enumeration of supported DBMS. Each use a particular JDBC driver. */ - public enum DBMSType { oracle, mysql } + public enum DBMSType { ORACLE, MYSQL } private final Connection conn; @@ -60,11 +60,11 @@ public class SQLConnectionWrapper implements Closeable { String url; switch ( dbms ) { - case oracle: + case ORACLE: driverClassName="oracle.jdbc.driver.OracleDriver"; url="jdbc:oracle:thin:@" + host + ":" + port + ":" + ress + "/" + db; break; - case mysql: + case MYSQL: driverClassName="com.mysql.jdbc.Driver"; url="jdbc:mysql://" + host + ":" + port + "/" + db; break; -- cgit v1.2.3