1 2 11 12 package org.objectweb.rmijdbc; 13 14 import java.sql.*; 15 import java.util.Map ; 16 import java.rmi.RemoteException ; 17 import java.rmi.server.UnicastRemoteObject ; 18 import java.rmi.server.Unreferenced ; 19 20 25 26 public class RJArrayServer 27 extends UnicastRemoteObject 28 implements RJArrayInterface, Unreferenced { 29 30 java.sql.Array jdbcArray_; 31 32 public RJArrayServer(java.sql.Array a) throws RemoteException { 33 super(RJJdbcServer.rmiJdbcListenerPort, RJJdbcServer.rmiClientSocketFactory, RJJdbcServer.rmiServerSocketFactory); 34 jdbcArray_ = a; 35 } 36 37 public void unreferenced() { Runtime.getRuntime().gc(); } 38 39 43 public Object getArray() throws RemoteException , SQLException { 44 return jdbcArray_.getArray(); 45 } 46 47 52 public Object getArray(long index, int count) 53 throws RemoteException , SQLException { 54 return jdbcArray_.getArray(index, count); 55 } 56 57 62 public Object getArray(long index, int count, Map map) 63 throws RemoteException , SQLException { 64 return jdbcArray_.getArray(index, count, map); 65 } 66 67 71 public Object getArray(Map map) throws RemoteException , SQLException { 72 return jdbcArray_.getArray(map); 73 } 74 75 79 public int getBaseType() throws RemoteException , SQLException { 80 return jdbcArray_.getBaseType(); 81 } 82 83 87 public String getBaseTypeName() throws RemoteException , SQLException { 88 return jdbcArray_.getBaseTypeName(); 89 } 90 91 95 public RJResultSetInterface getResultSet() 96 throws RemoteException , SQLException { 97 return new RJResultSetServer(jdbcArray_.getResultSet()); 98 } 99 100 104 public RJResultSetInterface getResultSet(long index, int count) 105 throws RemoteException , SQLException { 106 return new RJResultSetServer(jdbcArray_.getResultSet(index, count)); 107 } 108 109 113 public RJResultSetInterface getResultSet(long index, int count, Map map) 114 throws RemoteException , SQLException { 115 return new RJResultSetServer(jdbcArray_.getResultSet(index, count, map)); 116 } 117 118 122 public RJResultSetInterface getResultSet(Map map) 123 throws RemoteException , SQLException { 124 return new RJResultSetServer(jdbcArray_.getResultSet(map)); 125 } 126 127 }; 128 129 | Popular Tags |