add some actions to phpconsole
[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'";
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'";
9     }
10         public DatabaseAdapter getInstance() {
11                 return new DB2AS400Adapter();
12         }
13 }