Пример #1
0
 private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
   // Default state initialization happens here
   ois.defaultReadObject();
   // Initialization of transient Res Bundle happens here .
   try {
     resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
   } catch (IOException ioe) {
     throw new RuntimeException(ioe);
   }
 }
Пример #2
0
 /**
  * Creates an <code>RIOptimisticProvider</code> object initialized with the fully qualified class
  * name of this <code>SyncProvider</code> implementation and a default reader and writer.
  *
  * <p>This provider is available to all disconnected <code>RowSet</code> implementations as the
  * default persistence provider.
  */
 public RIOptimisticProvider() {
   providerID = this.getClass().getName();
   reader = new CachedRowSetReader();
   writer = new CachedRowSetWriter();
   try {
     resBundle = JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle();
   } catch (IOException ioe) {
     throw new RuntimeException(ioe);
   }
 }