1 7 8 package javax.sql.rowset.spi; 9 10 import java.sql.SQLException ; 11 import javax.sql.rowset.*; 12 13 47 public class SyncProviderException extends java.sql.SQLException { 48 49 54 private SyncResolver syncResolver = null; 55 56 59 public SyncProviderException() { 60 super(); 61 } 62 63 69 public SyncProviderException(String msg) { 70 super(msg); 71 } 72 73 82 public SyncProviderException(SyncResolver syncResolver) { 83 if (syncResolver == null) { 84 throw new IllegalArgumentException ("Cannot instantiate a SyncProviderException " + 85 "with a null SyncResolver object"); 86 } else { 87 this.syncResolver = syncResolver; 88 } 89 } 90 91 110 public SyncResolver getSyncResolver() { 111 if (syncResolver != null) { 112 return syncResolver; 113 } else { 114 try { 115 syncResolver = new com.sun.rowset.internal.SyncResolverImpl(); 116 } catch (SQLException sqle) { 117 } 118 return syncResolver; 119 } 120 } 121 122 135 public void setSyncResolver(SyncResolver syncResolver) { 136 if (syncResolver == null) { 137 throw new IllegalArgumentException ("Cannot set a null SyncResolver " + 138 "object"); 139 } else { 140 this.syncResolver = syncResolver; 141 } 142 } 143 144 static final long serialVersionUID = -939908523620640692L; 145 146 } 147 148 149 | Popular Tags |