1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 15 20 21 public class RJRef implements java.sql.Ref , java.io.Serializable 22 { 23 24 RJRefInterface rmiRef_; 25 26 public RJRef(RJRefInterface r) { 27 rmiRef_ = r; 28 } 29 30 public String getBaseTypeName() throws SQLException { 31 try { 32 return rmiRef_.getBaseTypeName(); 33 } catch(RemoteException e) { 34 throw new java.sql.SQLException (e.getMessage()); 35 } 36 } 37 38 public Object getObject(java.util.Map map) throws SQLException { 40 try { 41 return rmiRef_.getObject(map); 42 } catch(RemoteException e) { 43 throw new java.sql.SQLException (e.getMessage()); 44 } 45 } 46 47 public Object getObject() throws SQLException { 48 try { 49 return rmiRef_.getObject(); 50 } catch(RemoteException e) { 51 throw new java.sql.SQLException (e.getMessage()); 52 } 53 } 54 55 public void setObject(Object value) throws SQLException { 56 try { 57 rmiRef_.setObject(value); 58 } catch(RemoteException e) { 59 throw new java.sql.SQLException (e.getMessage()); 60 } 61 } 62 63 }; 64 65 | Popular Tags |