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'"; //$NON-NLS-1$ //$NON-NLS-2$
7 public String getShowViewQuery(DatabaseInfo info) {
8 return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" + info.getSchema().toUpperCase() + "' AND TABLE_TYPE = 'L'"; //$NON-NLS-1$ //$NON-NLS-2$