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