1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 import java.util.Map ; 15 16 21 22 public class RJArray implements java.sql.Array , java.io.Serializable 23 { 24 25 RJArrayInterface rmiArray_; 26 27 public RJArray(RJArrayInterface a) { 28 rmiArray_ = a; 29 } 30 31 35 public Object getArray() throws SQLException { 36 try { 37 return rmiArray_.getArray(); 38 } catch(RemoteException e) { 39 throw new java.sql.SQLException (e.getMessage()); 40 } 41 } 42 43 48 public Object getArray(long index, int count) throws SQLException { 49 try { 50 return rmiArray_.getArray(index, count); 51 } catch(RemoteException e) { 52 throw new java.sql.SQLException (e.getMessage()); 53 } 54 } 55 56 61 public Object getArray(long index, int count, Map map) throws SQLException { 62 try { 63 return rmiArray_.getArray(index, count, map); 64 } catch(RemoteException e) { 65 throw new java.sql.SQLException (e.getMessage()); 66 } 67 } 68 69 73 public Object getArray(Map map) throws SQLException { 74 try { 75 return rmiArray_.getArray(map); 76 } catch(RemoteException e) { 77 throw new java.sql.SQLException (e.getMessage()); 78 } 79 } 80 81 85 public int getBaseType() throws SQLException { 86 try { 87 return rmiArray_.getBaseType(); 88 } catch(RemoteException e) { 89 throw new java.sql.SQLException (e.getMessage()); 90 } 91 } 92 93 97 public String getBaseTypeName() throws SQLException { 98 try { 99 return rmiArray_.getBaseTypeName(); 100 } catch(RemoteException e) { 101 throw new java.sql.SQLException (e.getMessage()); 102 } 103 } 104 105 109 public java.sql.ResultSet getResultSet() 110 throws SQLException { 111 try { 112 return new RJResultSet(rmiArray_.getResultSet(), null); 113 } catch(RemoteException e) { 114 throw new java.sql.SQLException (e.getMessage()); 115 } 116 } 117 118 122 public java.sql.ResultSet getResultSet(long index, int count) 123 throws SQLException { 124 try { 125 return new RJResultSet(rmiArray_.getResultSet(index, count), null); 126 } catch(RemoteException e) { 127 throw new java.sql.SQLException (e.getMessage()); 128 } 129 } 130 131 135 public java.sql.ResultSet getResultSet(long index, int count, Map map) 136 throws SQLException { 137 try { 138 return new RJResultSet(rmiArray_.getResultSet(index, count, map), null); 139 } catch(RemoteException e) { 140 throw new java.sql.SQLException (e.getMessage()); 141 } 142 } 143 144 148 public java.sql.ResultSet getResultSet(Map map) throws SQLException { 149 try { 150 return new RJResultSet(rmiArray_.getResultSet(map), null); 151 } catch(RemoteException e) { 152 throw new java.sql.SQLException (e.getMessage()); 153 } 154 } 155 156 }; 157 158 | Popular Tags |