1 2 11 12 package org.objectweb.rmijdbc; 13 14 import java.rmi.*; 15 import java.sql.SQLException ; 16 import java.rmi.server.Unreferenced ; 17 18 22 23 public class RJResultSetMetaDataServer 24 extends java.rmi.server.UnicastRemoteObject 25 implements RJResultSetMetaDataInterface, Unreferenced { 26 27 java.sql.ResultSetMetaData metadata_; 28 29 public RJResultSetMetaDataServer(java.sql.ResultSetMetaData md) 30 throws RemoteException { 31 super(RJJdbcServer.rmiJdbcListenerPort, RJJdbcServer.rmiClientSocketFactory, RJJdbcServer.rmiServerSocketFactory); 32 metadata_ = md; 33 } 34 35 public void unreferenced() { Runtime.getRuntime().gc(); } 36 37 42 public int getColumnCount() throws RemoteException, SQLException { 43 return metadata_.getColumnCount(); 44 } 45 46 52 public boolean isAutoIncrement(int column) 53 throws RemoteException, SQLException { 54 return metadata_.isAutoIncrement(column); 55 } 56 57 63 public boolean isCaseSensitive(int column) 64 throws RemoteException, SQLException { 65 return metadata_.isCaseSensitive(column); 66 } 67 68 74 public boolean isSearchable(int column) throws RemoteException, SQLException { 75 return metadata_.isSearchable(column); 76 } 77 78 84 public boolean isCurrency(int column) throws RemoteException, SQLException { 85 return metadata_.isCurrency(column); 86 } 87 88 94 public int isNullable(int column) throws RemoteException, SQLException { 95 return metadata_.isNullable(column); 96 } 97 98 104 public boolean isSigned(int column) throws RemoteException, SQLException { 105 return metadata_.isSigned(column); 106 } 107 108 114 public int getColumnDisplaySize(int column) 115 throws RemoteException, SQLException { 116 return metadata_.getColumnDisplaySize(column); 117 } 118 119 126 public String getColumnLabel(int column) 127 throws RemoteException, SQLException { 128 return metadata_.getColumnLabel(column); 129 } 130 131 137 public String getColumnName(int column) throws RemoteException, SQLException { 138 return metadata_.getColumnName(column); 139 } 140 141 147 public String getSchemaName(int column) throws RemoteException, SQLException { 148 return metadata_.getSchemaName(column); 149 } 150 151 157 public int getPrecision(int column) throws RemoteException, SQLException { 158 return metadata_.getPrecision(column); 159 } 160 161 167 public int getScale(int column) throws RemoteException, SQLException { 168 return metadata_.getScale(column); 169 } 170 171 176 public String getTableName(int column) throws RemoteException, SQLException { 177 return metadata_.getTableName(column); 178 } 179 180 186 public String getCatalogName(int column) 187 throws RemoteException, SQLException { 188 return metadata_.getCatalogName(column); 189 } 190 191 198 public int getColumnType(int column) throws RemoteException, SQLException { 199 return metadata_.getColumnType(column); 200 } 201 202 208 public String getColumnTypeName(int column) 209 throws RemoteException, SQLException { 210 return metadata_.getColumnTypeName(column); 211 } 212 213 219 public boolean isReadOnly(int column) throws RemoteException, SQLException { 220 return metadata_.isReadOnly(column); 221 } 222 223 229 public boolean isWritable(int column) throws RemoteException, SQLException { 230 return metadata_.isWritable(column); 231 } 232 233 239 public boolean isDefinitelyWritable(int column) 240 throws RemoteException, SQLException { 241 return metadata_.isDefinitelyWritable(column); 242 } 243 245 public String getColumnClassName(int column) throws RemoteException, SQLException 246 { 247 return metadata_.getColumnClassName(column); 248 } 249 250 }; 251 252 | Popular Tags |