| 422 | } // end of GetColumns |
| 423 | |
| 424 | public int GetTables(String[] parms) { |
| 425 | int ncol = -1; |
| 426 | String[] typ = null; |
| 427 | |
| 428 | if (parms[3] != null) { |
| 429 | typ = new String[1]; |
| 430 | typ[0] = parms[3]; |
| 431 | } // endif parms |
| 432 | |
| 433 | try { |
| 434 | if (rs != null) rs.close(); |
| 435 | |
| 436 | if (CatisSchema) |
| 437 | rs = dbmd.getTables(parms[1], null, parms[2], typ); |
| 438 | else |
| 439 | rs = dbmd.getTables(parms[0], parms[1], parms[2], typ); |
| 440 | |
| 441 | if (rs != null) { |
| 442 | rsmd = rs.getMetaData(); |
| 443 | ncol = rsmd.getColumnCount(); |
| 444 | } // endif rs |
| 445 | |
| 446 | } catch(SQLException se) { |
| 447 | SetErrmsg(se); |
| 448 | } // end try/catch |
| 449 | |
| 450 | return ncol; |
| 451 | } // end of GetColumns |
| 452 | |
| 453 | public int Execute(String query) { |
| 454 | int n = 0; |