--- old/src/share/classes/javax/sql/rowset/spi/SyncResolver.java 2013-06-27 12:46:11.000000000 -0400
+++ new/src/share/classes/javax/sql/rowset/spi/SyncResolver.java 2013-06-27 12:46:11.000000000 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -81,10 +81,13 @@
* SyncProviderException
method getSyncResolver
to get
* the SyncResolver
object resolver.
*
+ * {@code * } catch (SyncProviderException spe) { * SyncResolver resolver = spe.getSyncResolver(); * ... * } + * + * } **
* With resolver in hand, an application can use it to get the information
@@ -97,7 +100,7 @@
* The following kinds of information can be obtained from a SyncResolver
* object:
*
- *
SyncProvider
interface defines four constants
* describing states that may occur. Three
* constants describe the type of operation (update, delete, or insert) that a
@@ -106,10 +109,10 @@
* These constants are the possible return values when a SyncResolver
object
* calls the method getStatus
.
* - * int operation = resolver.getStatus(); + * {@code int operation = resolver.getStatus(); } **
- *
RowSet
object has changed
* and is attempting to write to the data source
* has also been changed in the data source since the last synchronization. An
@@ -122,7 +125,6 @@
*
* Note that the column in resolver can be designated by the column number,
* as is done in the preceding line of code, or by the column name.
- *
*
* With the information retrieved from the methods getStatus
and
* getConflictValue
, the application may make a determination as to
@@ -193,7 +195,8 @@
* code fragment, the value in crs is the one set as the resolved value, which means
* that it will be used to overwrite the conflict value in the data source.
*
- *
{@code + *+ * {@code * try { * * crs.acceptChanges(con);