KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nilostep > xlsql > jdbc > xlSavepoint


1 /*
2  * x l S Q L
3  * (c) Jim Caprioli, NiLOSTEP.com
4  * See xlSQL-license.txt for license details
5  *
6  */

7 package com.nilostep.xlsql.jdbc;
8
9 import java.sql.*;
10
11
12 public class xlSavepoint implements Savepoint {
13
14     xlConnection xlCon;
15     Savepoint dbSave;
16     
17     //~ Constructors ···························································
18

19     /** Creates a new instance of SavepointImpl */
20     public xlSavepoint(xlConnection con, Savepoint save) {
21         xlCon = con;
22         dbSave = save;
23     }
24
25     //~ Methods ································································
26

27     /**
28     * Implements method in interface java.sql.Connection
29     * @see java.sql.Savepoint#getSavepointId
30     */

31     public int getSavepointId() throws SQLException {
32         return dbSave.getSavepointId();
33     }
34
35     /**
36     * Implements method in interface java.sql.Connection
37     * @see java.sql.Savepoint#getSavepointName
38     */

39     public String JavaDoc getSavepointName() throws SQLException {
40         return dbSave.getSavepointName();
41     }
42 }
Popular Tags