geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r958395 - /geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/datasource/deployment/DataSourceBuilder.java
Date Sun, 27 Jun 2010 16:47:13 GMT
Author: djencks
Date: Sun Jun 27 16:47:13 2010
New Revision: 958395

URL: http://svn.apache.org/viewvc?rev=958395&view=rev
Log:
fix translation between Connection flags and jaxb tree isolation level

Modified:
    geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/datasource/deployment/DataSourceBuilder.java

Modified: geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/datasource/deployment/DataSourceBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/datasource/deployment/DataSourceBuilder.java?rev=958395&r1=958394&r2=958395&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/datasource/deployment/DataSourceBuilder.java
(original)
+++ geronimo/server/trunk/plugins/connector-1_6/geronimo-connector-builder-1_6/src/main/java/org/apache/geronimo/datasource/deployment/DataSourceBuilder.java
Sun Jun 27 16:47:13 2010
@@ -259,8 +259,8 @@ public class DataSourceBuilder extends A
             dataSource.setLoginTimeout(dsDefinition.loginTimeout());
         }
         
-        if (dataSource.getIsolationLevel() == null && dsDefinition.isolationLevel()
!= -1) {
-            dataSource.setIsolationLevel(IsolationLevel.values()[dsDefinition.isolationLevel()]);

+        if (dataSource.getIsolationLevel() == null) {
+            dataSource.setIsolationLevel(IsolationLevel.fromFlag(dsDefinition.isolationLevel()));

         }
         
         if (dataSource.getTransactional() == null) {



Mime
View raw message