Merge pull request #4119 from mdeinum/gh-4114

* pr/4119:
  Polish
  Add support for the DB2 Universal JDBC driver
This commit is contained in:
Stephane Nicoll
2015-10-09 17:05:18 +02:00

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,6 +24,7 @@ import org.springframework.util.StringUtils;
*
* @author Phillip Webb
* @author Maciej Walkowiak
* @author Marten Deinum
* @since 1.2.0
*/
enum DatabaseDriver {
@@ -87,7 +88,12 @@ enum DatabaseDriver {
* SQL Server.
*/
SQLSERVER("com.microsoft.sqlserver.jdbc.SQLServerDriver",
"com.microsoft.sqlserver.jdbc.SQLServerXADataSource");
"com.microsoft.sqlserver.jdbc.SQLServerXADataSource"),
/**
* DB2 Server.
*/
DB2("com.ibm.db2.jcc.DB2Driver", "com.ibm.db2.jcc.DB2XADataSource");
private final String driverClassName;