ibatis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbe...@apache.org
Subject svn commit: r705955 - in /ibatis/trunk/java/ibatis-3: ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/ ibatis-3-monarch/src/main/java/org/apache/ibatis/monarch/builder/
Date Sun, 19 Oct 2008 04:02:06 GMT
Author: cbegin
Date: Sat Oct 18 21:02:05 2008
New Revision: 705955

URL: http://svn.apache.org/viewvc?rev=705955&view=rev
Log:
Renamed external transaction to managed transaction
Changed path of dtd in entity resolver.

Added:
    ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/
      - copied from r705836, ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/external/
    ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/ManagedTransaction.java
Removed:
    ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/ExternalTransaction.java
Modified:
    ibatis/trunk/java/ibatis-3/ibatis-3-monarch/src/main/java/org/apache/ibatis/monarch/builder/MapperEntityResolver.java

Added: ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/ManagedTransaction.java
URL: http://svn.apache.org/viewvc/ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/ManagedTransaction.java?rev=705955&view=auto
==============================================================================
--- ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/ManagedTransaction.java
(added)
+++ ibatis/trunk/java/ibatis-3/ibatis-3-core/src/main/java/org/apache/ibatis/transaction/managed/ManagedTransaction.java
Sat Oct 18 21:02:05 2008
@@ -0,0 +1,27 @@
+package org.apache.ibatis.transaction.managed;
+
+import org.apache.ibatis.transaction.Transaction;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+public class ManagedTransaction implements Transaction {
+
+  private Connection connection;
+
+  public ManagedTransaction(Connection connection) {
+    this.connection = connection;
+  }
+
+  public Connection getConnection() {
+    return connection;
+  }
+
+  public void commit() throws SQLException {
+    // Does nothing
+  }
+
+  public void rollback() throws SQLException {
+    // Does nothing
+  }
+}

Modified: ibatis/trunk/java/ibatis-3/ibatis-3-monarch/src/main/java/org/apache/ibatis/monarch/builder/MapperEntityResolver.java
URL: http://svn.apache.org/viewvc/ibatis/trunk/java/ibatis-3/ibatis-3-monarch/src/main/java/org/apache/ibatis/monarch/builder/MapperEntityResolver.java?rev=705955&r1=705954&r2=705955&view=diff
==============================================================================
--- ibatis/trunk/java/ibatis-3/ibatis-3-monarch/src/main/java/org/apache/ibatis/monarch/builder/MapperEntityResolver.java
(original)
+++ ibatis/trunk/java/ibatis-3/ibatis-3-monarch/src/main/java/org/apache/ibatis/monarch/builder/MapperEntityResolver.java
Sat Oct 18 21:02:05 2008
@@ -11,8 +11,8 @@
  */
 public class MapperEntityResolver implements EntityResolver {
 
-  private static final String MAPPER_CONFIG_DTD_RESOURCE = "org/apache/ibatis/monarch/dtd/mapper-config.dtd";
-  private static final String MAPPER_DTD_RESOURCE = "org/apache/ibatis/monarch/dtd/mapper.dtd";
+  private static final String MAPPER_CONFIG_DTD_RESOURCE = "org/apache/ibatis/monarch/builder/mapper-config.dtd";
+  private static final String MAPPER_DTD_RESOURCE = "org/apache/ibatis/monarch/builder/mapper.dtd";
 
   private static final Map<String, String> doctypeMap = new HashMap<String, String>();
 



Mime
View raw message