1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 import java.rmi.server.UnicastRemoteObject ; 15 import java.rmi.server.Unreferenced ; 16 17 public class RJParameterMetaDataServer 18 extends UnicastRemoteObject 19 implements RJParameterMetaDataInterface, Unreferenced { 20 21 ParameterMetaData jdbcParameterMetaData_; 22 23 public RJParameterMetaDataServer(ParameterMetaData s) throws RemoteException { 24 super(RJJdbcServer.rmiJdbcListenerPort, 25 RJJdbcServer.rmiClientSocketFactory, RJJdbcServer.rmiServerSocketFactory); 26 jdbcParameterMetaData_ = s; 27 } 28 29 public void unreferenced() { Runtime.getRuntime().gc(); } 30 31 public String getParameterClassName(int param) 32 throws RemoteException , SQLException { 33 return jdbcParameterMetaData_.getParameterClassName(param); 34 } 35 36 public int getParameterCount() throws RemoteException , SQLException { 37 return jdbcParameterMetaData_.getParameterCount(); 38 } 39 40 public int getParameterMode(int param) throws RemoteException , SQLException { 41 return jdbcParameterMetaData_.getParameterMode(param); 42 } 43 44 public int getParameterType(int param) throws RemoteException , SQLException { 45 return jdbcParameterMetaData_.getParameterType(param); 46 } 47 48 public String getParameterTypeName(int param) 49 throws RemoteException , SQLException { 50 return jdbcParameterMetaData_.getParameterTypeName(param); 51 } 52 53 public int getPrecision(int param) throws RemoteException , SQLException { 54 return jdbcParameterMetaData_.getPrecision(param); 55 } 56 57 public int getScale(int param) throws RemoteException , SQLException { 58 return jdbcParameterMetaData_.getScale(param); 59 } 60 61 public int isNullable(int param) throws RemoteException , SQLException { 62 return jdbcParameterMetaData_.isNullable(param); 63 } 64 65 public boolean isSigned(int param) throws RemoteException , SQLException { 66 return jdbcParameterMetaData_.isSigned(param); 67 } 68 69 }; 70 71 | Popular Tags |