1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 15 19 20 public class RJResultSetMetaData 21 implements java.sql.ResultSetMetaData , java.io.Serializable { 22 23 RJResultSetMetaDataInterface rmiMetaData_; 24 25 public RJResultSetMetaData(RJResultSetMetaDataInterface r) { 26 rmiMetaData_ = r; 27 } 28 29 34 public int getColumnCount() throws SQLException { 35 try { 36 return rmiMetaData_.getColumnCount(); 37 } catch(RemoteException e) { 38 throw new java.sql.SQLException (e.getMessage()); 39 } 40 } 41 42 48 public boolean isAutoIncrement(int column) throws SQLException { 49 try { 50 return rmiMetaData_.isAutoIncrement(column); 51 } catch(RemoteException e) { 52 throw new java.sql.SQLException (e.getMessage()); 53 } 54 } 55 56 62 public boolean isCaseSensitive(int column) throws SQLException { 63 try { 64 return rmiMetaData_.isCaseSensitive(column); 65 } catch(RemoteException e) { 66 throw new java.sql.SQLException (e.getMessage()); 67 } 68 } 69 70 76 public boolean isSearchable(int column) throws SQLException { 77 try { 78 return rmiMetaData_.isSearchable(column); 79 } catch(RemoteException e) { 80 throw new java.sql.SQLException (e.getMessage()); 81 } 82 } 83 84 90 public boolean isCurrency(int column) throws SQLException { 91 try { 92 return rmiMetaData_.isCurrency(column); 93 } catch(RemoteException e) { 94 throw new java.sql.SQLException (e.getMessage()); 95 } 96 } 97 98 104 public int isNullable(int column) throws SQLException { 105 try { 106 return rmiMetaData_.isNullable(column); 107 } catch(RemoteException e) { 108 throw new java.sql.SQLException (e.getMessage()); 109 } 110 } 111 112 118 public boolean isSigned(int column) throws SQLException { 119 try { 120 return rmiMetaData_.isSigned(column); 121 } catch(RemoteException e) { 122 throw new java.sql.SQLException (e.getMessage()); 123 } 124 } 125 126 132 public int getColumnDisplaySize(int column) throws SQLException { 133 try { 134 return rmiMetaData_.getColumnDisplaySize(column); 135 } catch(RemoteException e) { 136 throw new java.sql.SQLException (e.getMessage()); 137 } 138 } 139 140 147 public String getColumnLabel(int column) throws SQLException { 148 try { 149 return rmiMetaData_.getColumnLabel(column); 150 } catch(RemoteException e) { 151 throw new java.sql.SQLException (e.getMessage()); 152 } 153 } 154 155 161 public String getColumnName(int column) throws SQLException { 162 try { 163 return rmiMetaData_.getColumnName(column); 164 } catch(RemoteException e) { 165 throw new java.sql.SQLException (e.getMessage()); 166 } 167 } 168 169 175 public String getSchemaName(int column) throws SQLException { 176 try { 177 return rmiMetaData_.getSchemaName(column); 178 } catch(RemoteException e) { 179 throw new java.sql.SQLException (e.getMessage()); 180 } 181 } 182 183 189 public int getPrecision(int column) throws SQLException { 190 try { 191 return rmiMetaData_.getPrecision(column); 192 } catch(RemoteException e) { 193 throw new java.sql.SQLException (e.getMessage()); 194 } 195 } 196 197 203 public int getScale(int column) throws SQLException { 204 try { 205 return rmiMetaData_.getScale(column); 206 } catch(RemoteException e) { 207 throw new java.sql.SQLException (e.getMessage()); 208 } 209 } 210 211 216 public String getTableName(int column) throws SQLException { 217 try { 218 return rmiMetaData_.getTableName(column); 219 } catch(RemoteException e) { 220 throw new java.sql.SQLException (e.getMessage()); 221 } 222 } 223 224 230 public String getCatalogName(int column) throws SQLException { 231 try { 232 return rmiMetaData_.getCatalogName(column); 233 } catch(RemoteException e) { 234 throw new java.sql.SQLException (e.getMessage()); 235 } 236 } 237 238 245 public int getColumnType(int column) throws SQLException { 246 try { 247 return rmiMetaData_.getColumnType(column); 248 } catch(RemoteException e) { 249 throw new java.sql.SQLException (e.getMessage()); 250 } 251 } 252 253 259 public String getColumnTypeName(int column) throws SQLException { 260 try { 261 return rmiMetaData_.getColumnTypeName(column); 262 } catch(RemoteException e) { 263 throw new java.sql.SQLException (e.getMessage()); 264 } 265 } 266 267 273 public boolean isReadOnly(int column) throws SQLException { 274 try { 275 return rmiMetaData_.isReadOnly(column); 276 } catch(RemoteException e) { 277 throw new java.sql.SQLException (e.getMessage()); 278 } 279 } 280 281 287 public boolean isWritable(int column) throws SQLException { 288 try { 289 return rmiMetaData_.isWritable(column); 290 } catch(RemoteException e) { 291 throw new java.sql.SQLException (e.getMessage()); 292 } 293 } 294 295 301 public boolean isDefinitelyWritable(int column) throws SQLException { 302 try { 303 return rmiMetaData_.isDefinitelyWritable(column); 304 } catch(RemoteException e) { 305 throw new java.sql.SQLException (e.getMessage()); 306 } 307 } 308 309 311 public String getColumnClassName(int column) throws SQLException 312 { 313 try { 314 return rmiMetaData_.getColumnClassName(column); 315 } catch(RemoteException e) { 316 throw new java.sql.SQLException (e.getMessage()); 317 } 318 } 319 320 }; 321 322 | Popular Tags |