summaryrefslogtreecommitdiff
path: root/src/connectors
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2014-10-23 13:17:16 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2015-04-14 07:44:59 +0200
commit267c7b1af11ec8f306b37c58c7190c57fd906dc5 (patch)
tree28d3702fd32993c926b1f2057a91419ff9845b2b /src/connectors
parent177a7ece545dd0de3dd6de2042ae2491a523193b (diff)
downloadsssync-267c7b1af11ec8f306b37c58c7190c57fd906dc5.tar.gz
sssync-267c7b1af11ec8f306b37c58c7190c57fd906dc5.tar.bz2
sssync-267c7b1af11ec8f306b37c58c7190c57fd906dc5.zip
Config : all enum values in CAPS.
Diffstat (limited to 'src/connectors')
-rw-r--r--src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java2
-rw-r--r--src/connectors/src/data/io/sql/SQLConnectionWrapper.java6
2 files changed, 4 insertions, 4 deletions
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;