package com.quantum.adapters;


public class DB2AS400Adapter extends DatabaseAdapter {
	protected DB2AS400Adapter() {
		super(AdapterFactory.DB2AS400);
	}
	public String getShowTableQuery(String qualifier) {
        return "SELECT table_schema, TABLE_NAME FROM QSYS2.SYSTABLES " +
        		"WHERE table_schema  = '" + 
        		qualifier.toUpperCase() + 
				"' AND TABLE_TYPE IN ('T', 'P')"; 
    }
    public String getShowViewQuery(String qualifier) {
        return "SELECT table_schema, TABLE_NAME FROM QSYS2.SYSTABLES " +
        		"WHERE table_schema  = '" +
        		qualifier.toUpperCase() +
        		 "' AND TABLE_TYPE IN ('V', 'L')";
    }
}