diff -r 06df0b8bf209 -r bdf98f8db729 jdk/src/share/classes/javax/sql/rowset/spi/SyncProvider.java
--- a/jdk/src/share/classes/javax/sql/rowset/spi/SyncProvider.java Sat Sep 04 12:21:56 2010 -0400
+++ b/jdk/src/share/classes/javax/sql/rowset/spi/SyncProvider.java Sat Sep 04 13:56:27 2010 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2010, 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
@@ -344,7 +344,7 @@
* source without checking the validity of any data.
*
*/
- public static int GRADE_NONE = 1;
+ public static final int GRADE_NONE = 1;
/**
* Indicates a low level optimistic synchronization grade with
@@ -354,7 +354,7 @@
* returning this grade will check only rows that have changed.
*
*/
- public static int GRADE_CHECK_MODIFIED_AT_COMMIT = 2;
+ public static final int GRADE_CHECK_MODIFIED_AT_COMMIT = 2;
/**
* Indicates a high level optimistic synchronization grade with
@@ -364,7 +364,7 @@
* returning this grade will check all rows, including rows that have not
* changed.
*/
- public static int GRADE_CHECK_ALL_AT_COMMIT = 3;
+ public static final int GRADE_CHECK_ALL_AT_COMMIT = 3;
/**
* Indicates a pessimistic synchronization grade with
@@ -374,7 +374,7 @@
* implementation returning this grade will lock the row in the originating
* data source.
*/
- public static int GRADE_LOCK_WHEN_MODIFIED = 4;
+ public static final int GRADE_LOCK_WHEN_MODIFIED = 4;
/**
* Indicates the most pessimistic synchronization grade with
@@ -384,47 +384,47 @@
* table affected by the original statement used to populate a
* RowSet
object.
*/
- public static int GRADE_LOCK_WHEN_LOADED = 5;
+ public static final int GRADE_LOCK_WHEN_LOADED = 5;
/**
* Indicates that no locks remain on the originating data source. This is the default
* lock setting for all SyncProvider
implementations unless
* otherwise directed by a RowSet
object.
*/
- public static int DATASOURCE_NO_LOCK = 1;
+ public static final int DATASOURCE_NO_LOCK = 1;
/**
* Indicates that a lock is placed on the rows that are touched by the original
* SQL statement used to populate the RowSet
object
* that is using this SyncProvider
object.
*/
- public static int DATASOURCE_ROW_LOCK = 2;
+ public static final int DATASOURCE_ROW_LOCK = 2;
/**
* Indicates that a lock is placed on all tables that are touched by the original
* SQL statement used to populate the RowSet
object
* that is using this SyncProvider
object.
*/
- public static int DATASOURCE_TABLE_LOCK = 3;
+ public static final int DATASOURCE_TABLE_LOCK = 3;
/**
* Indicates that a lock is placed on the entire data source that is the source of
* data for the RowSet
object
* that is using this SyncProvider
object.
*/
- public static int DATASOURCE_DB_LOCK = 4;
+ public static final int DATASOURCE_DB_LOCK = 4;
/**
* Indicates that a SyncProvider
implementation
* supports synchronization between a RowSet
object and
* the SQL VIEW
used to populate it.
*/
- public static int UPDATABLE_VIEW_SYNC = 5;
+ public static final int UPDATABLE_VIEW_SYNC = 5;
/**
* Indicates that a SyncProvider
implementation
* does not support synchronization between a RowSet
* object and the SQL VIEW
used to populate it.
*/
- public static int NONUPDATABLE_VIEW_SYNC = 6;
+ public static final int NONUPDATABLE_VIEW_SYNC = 6;
}