1 7 8 package javax.sql.rowset.spi; 9 10 import javax.sql.*; 11 12 195 public abstract class SyncProvider { 196 197 200 public SyncProvider() { 201 } 202 203 209 public abstract String getProviderID(); 210 211 217 public abstract RowSetReader getRowSetReader(); 218 219 226 public abstract RowSetWriter getRowSetWriter(); 227 228 240 public abstract int getProviderGrade(); 241 242 243 262 public abstract void setDataSourceLock(int datasource_lock) 263 throws SyncProviderException ; 264 265 283 public abstract int getDataSourceLock() 284 throws SyncProviderException ; 285 286 298 public abstract int supportsUpdatableView(); 299 300 306 public abstract String getVersion(); 307 308 314 public abstract String getVendor(); 315 316 320 321 329 public static int GRADE_NONE = 1; 330 331 339 public static int GRADE_CHECK_MODIFIED_AT_COMMIT = 2; 340 341 349 public static int GRADE_CHECK_ALL_AT_COMMIT = 3; 350 351 359 public static int GRADE_LOCK_WHEN_MODIFIED = 4; 360 361 369 public static int GRADE_LOCK_WHEN_LOADED = 5; 370 371 376 public static int DATASOURCE_NO_LOCK = 1; 377 378 383 public static int DATASOURCE_ROW_LOCK = 2; 384 385 390 public static int DATASOURCE_TABLE_LOCK = 3; 391 392 397 public static int DATASOURCE_DB_LOCK = 4; 398 399 404 public static int UPDATABLE_VIEW_SYNC = 5; 405 406 411 public static int NONUPDATABLE_VIEW_SYNC = 6; 412 } 413 | Popular Tags |