1 package com.quantum.adapters;
4 public class DB2AS400Adapter extends DatabaseAdapter {
5 public String getShowTableQuery(String qualifier, boolean isDefault) {
6 return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" +
7 qualifier.toUpperCase() +
8 "' AND TABLE_TYPE IN ('T', 'P') AND SYSTEM_TABLE= 'N'"; //$NON-NLS-1$ //$NON-NLS-2$
10 public String getShowViewQuery(String qualifier, boolean isDefault) {
11 return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" +
12 qualifier.toUpperCase() +
13 "' AND TABLE_TYPE IN ('V', 'L') AND SYSTEM_TABLE= 'N'"; //$NON-NLS-1$ //$NON-NLS-2$