KickJava   Java API By Example, From Geeks To Geeks.

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


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 RJParameterMetaData
16 implements java.sql.ParameterMetaData JavaDoc, java.io.Serializable JavaDoc
17 {
18
19   RJParameterMetaDataInterface rmiParameterMetaData_;
20
21   public RJParameterMetaData(RJParameterMetaDataInterface s) {
22     rmiParameterMetaData_ = s;
23   }
24
25   public String JavaDoc getParameterClassName(int param) throws SQLException {
26     try {
27       return rmiParameterMetaData_.getParameterClassName(param);
28     } catch(RemoteException JavaDoc e) {
29       throw new java.sql.SQLException JavaDoc(e.getMessage());
30     }
31   }
32
33   public int getParameterCount() throws SQLException {
34     try {
35       return rmiParameterMetaData_.getParameterCount();
36     } catch(RemoteException JavaDoc e) {
37       throw new java.sql.SQLException JavaDoc(e.getMessage());
38     }
39   }
40
41   public int getParameterMode(int param) throws SQLException {
42     try {
43       return rmiParameterMetaData_.getParameterMode(param);
44     } catch(RemoteException JavaDoc e) {
45       throw new java.sql.SQLException JavaDoc(e.getMessage());
46     }
47   }
48
49   public int getParameterType(int param) throws SQLException {
50     try {
51       return rmiParameterMetaData_.getParameterType(param);
52     } catch(RemoteException JavaDoc e) {
53       throw new java.sql.SQLException JavaDoc(e.getMessage());
54     }
55   }
56
57   public String JavaDoc getParameterTypeName(int param) throws SQLException {
58     try {
59       return rmiParameterMetaData_.getParameterTypeName(param);
60     } catch(RemoteException JavaDoc e) {
61       throw new java.sql.SQLException JavaDoc(e.getMessage());
62     }
63   }
64
65   public int getPrecision(int param) throws SQLException {
66     try {
67       return rmiParameterMetaData_.getPrecision(param);
68     } catch(RemoteException JavaDoc e) {
69       throw new java.sql.SQLException JavaDoc(e.getMessage());
70     }
71   }
72
73   public int getScale(int param) throws SQLException {
74     try {
75       return rmiParameterMetaData_.getScale(param);
76     } catch(RemoteException JavaDoc e) {
77       throw new java.sql.SQLException JavaDoc(e.getMessage());
78     }
79   }
80
81   public int isNullable(int param) throws SQLException {
82     try {
83       return rmiParameterMetaData_.isNullable(param);
84     } catch(RemoteException JavaDoc e) {
85       throw new java.sql.SQLException JavaDoc(e.getMessage());
86     }
87   }
88
89   public boolean isSigned(int param) throws SQLException {
90     try {
91       return rmiParameterMetaData_.isSigned(param);
92     } catch(RemoteException JavaDoc e) {
93       throw new java.sql.SQLException JavaDoc(e.getMessage());
94     }
95   }
96
97 };
98
99
Popular Tags