1 package com.quantum.adapters;
4 public class DB2AS400Adapter extends DatabaseAdapter {
5 protected DB2AS400Adapter() {
6 super(AdapterFactory.DB2AS400);
8 public String getShowTableQuery(String qualifier) {
9 return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" +
10 qualifier.toUpperCase() +
11 "' AND TABLE_TYPE IN ('T', 'P')"; //$NON-NLS-1$ //$NON-NLS-2$
13 public String getShowViewQuery(String qualifier) {
14 return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" +
15 qualifier.toUpperCase() +
16 "' AND TABLE_TYPE IN ('V', 'L')"; //$NON-NLS-1$ //$NON-NLS-2$