latest quantum sources 2.3.2
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / adapters / DB2AS400Adapter.java
1 package com.quantum.adapters;
2
3
4 public class DB2AS400Adapter extends DatabaseAdapter {
5         protected DB2AS400Adapter() {
6                 super(AdapterFactory.DB2AS400);
7         }
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') AND SYSTEM_TABLE= 'N'"; //$NON-NLS-1$ //$NON-NLS-2$
12     }
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') AND SYSTEM_TABLE= 'N'"; //$NON-NLS-1$ //$NON-NLS-2$
17     }
18 }