1 package net.sourceforge.phpdt.sql.adapters;
3 public class DB2AS400Adapter extends DatabaseAdapter {
4 public String getShowTableQuery(DatabaseInfo info) {
5 return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" + info.getSchema().toUpperCase() + "' AND TABLE_TYPE = 'P'";
7 public String getShowViewQuery(DatabaseInfo info) {
8 return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" + info.getSchema().toUpperCase() + "' AND TABLE_TYPE = 'L'";
10 public DatabaseAdapter getInstance() {
11 return new DB2AS400Adapter();