X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DB2AS400Adapter.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DB2AS400Adapter.java new file mode 100644 index 0000000..ff6bf2e --- /dev/null +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DB2AS400Adapter.java @@ -0,0 +1,15 @@ +package com.quantum.adapters; + + +public class DB2AS400Adapter extends DatabaseAdapter { + public String getShowTableQuery(String qualifier, boolean isDefault) { + return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" + + qualifier.toUpperCase() + + "' AND TABLE_TYPE IN ('T', 'P') AND SYSTEM_TABLE= 'N'"; //$NON-NLS-1$ //$NON-NLS-2$ + } + public String getShowViewQuery(String qualifier, boolean isDefault) { + return "SELECT TABLE_NAME FROM QSYS2.SYSTABLES WHERE table_schema = '" + + qualifier.toUpperCase() + + "' AND TABLE_TYPE IN ('V', 'L') AND SYSTEM_TABLE= 'N'"; //$NON-NLS-1$ //$NON-NLS-2$ + } +}