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_schema, TABLE_NAME FROM QSYS2.SYSTABLES " +
10 "WHERE table_schema = '" +
11 qualifier.toUpperCase() +
12 "' AND TABLE_TYPE IN ('T', 'P')";
14 public String getShowViewQuery(String qualifier) {
15 return "SELECT table_schema, TABLE_NAME FROM QSYS2.SYSTABLES " +
16 "WHERE table_schema = '" +
17 qualifier.toUpperCase() +
18 "' AND TABLE_TYPE IN ('V', 'L')";