1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 15 public class RJSavepoint implements java.sql.Savepoint , java.io.Serializable 16 { 17 18 RJSavepointInterface rmiSavepoint_; 19 20 public RJSavepoint(RJSavepointInterface s) { 21 rmiSavepoint_ = s; 22 } 23 24 public int getSavepointId() throws SQLException { 25 try { 26 return rmiSavepoint_.getSavepointId(); 27 } catch(RemoteException e) { 28 throw new java.sql.SQLException (e.getMessage()); 29 } 30 } 31 32 public String getSavepointName() throws SQLException { 33 try { 34 return rmiSavepoint_.getSavepointName(); 35 } catch(RemoteException e) { 36 throw new java.sql.SQLException (e.getMessage()); 37 } 38 } 39 40 }; 41 42 | Popular Tags |