6984864: Exception when running acceptChanges with custom SyncProvider
authorlancea
Fri, 17 Sep 2010 13:26:17 -0400
changeset 6665 dcdc89306375
parent 6664 979f457afd3a
child 6666 80571aeec9b0
6984864: Exception when running acceptChanges with custom SyncProvider Reviewed-by: darcy, ohair
jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java
--- a/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java	Fri Sep 17 13:23:33 2010 -0400
+++ b/jdk/src/share/classes/com/sun/rowset/JoinRowSetImpl.java	Fri Sep 17 13:26:17 2010 -0400
@@ -33,6 +33,8 @@
 import java.util.*;
 
 import javax.sql.rowset.*;
+import javax.sql.rowset.spi.SyncProvider;
+import javax.sql.rowset.spi.SyncProviderException;
 
 /**
  * The standard implementation of the <code>JoinRowSet</code>
@@ -4311,6 +4313,27 @@
          return crsInternal.createCopySchema();
      }
 
+     /**
+      * {@inheritDoc}
+      */
+     public void setSyncProvider(String providerStr) throws SQLException {
+         crsInternal.setSyncProvider(providerStr);
+     }
+
+     /**
+      * {@inheritDoc}
+      */
+     public void acceptChanges() throws SyncProviderException {
+         crsInternal.acceptChanges();
+     }
+
+     /**
+      * {@inheritDoc}
+      */
+     public SyncProvider getSyncProvider() throws SQLException {
+        return crsInternal.getSyncProvider();
+     }
+
     /**
      * This method re populates the resBundle
      * during the deserialization process