changeset 2800:1cb444a3d5cd

6984864: Exception when running acceptChanges with custom SyncProvider Reviewed-by: darcy, ohair
author lancea
date Fri, 17 Sep 2010 13:26:17 -0400
parents 7794d718ffe2
children 095a5e5a025a
files src/share/classes/com/sun/rowset/JoinRowSetImpl.java
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/rowset/JoinRowSetImpl.java	Fri Sep 17 13:23:33 2010 -0400
+++ b/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