6984864: Exception when running acceptChanges with custom SyncProvider
Reviewed-by: darcy, ohair
--- 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