unified title and description handling in wizards
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / adapters / DB2AS400Adapter.java
1 package net.sourceforge.phpdt.sql.adapters;
2
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$
6     }
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$
9     }
10 }