KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > rmijdbc > RJSavepoint


1
2 /**
3  * RmiJdbc client/server JDBC Driver
4  * (C) ObjectWeb 1999-2003
5  *
6  * @version 3.0
7  * @author Pierre-Yves Gibello (pierreyves.gibello@experlog.com)
8  */

9
10 package org.objectweb.rmijdbc;
11
12 import java.sql.*;
13 import java.rmi.RemoteException JavaDoc;
14
15 public class RJSavepoint implements java.sql.Savepoint JavaDoc, java.io.Serializable JavaDoc
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 JavaDoc e) {
28       throw new java.sql.SQLException JavaDoc(e.getMessage());
29     }
30   }
31
32   public String JavaDoc getSavepointName() throws SQLException {
33     try {
34       return rmiSavepoint_.getSavepointName();
35     } catch(RemoteException JavaDoc e) {
36       throw new java.sql.SQLException JavaDoc(e.getMessage());
37     }
38   }
39
40 };
41
42
Popular Tags