import com.quantum.sql.SQLHelper;
public class DB2Adapter extends DatabaseAdapter {
- public String getShowTableQuery(String qualifier, boolean isDefault) {
+ /**
+ * @param type
+ */
+ protected DB2Adapter() {
+ super(AdapterFactory.DB2);
+ }
+ public String getShowTableQuery(String qualifier) {
return "SELECT TABNAME FROM syscat.tables WHERE tabschema = '" + qualifier.toUpperCase() + "' AND TYPE='T'"; //$NON-NLS-1$ //$NON-NLS-2$
}
- public String getShowViewQuery(String qualifier, boolean isDefault) {
+ public String getShowViewQuery(String qualifier) {
return "SELECT TABNAME FROM syscat.tables WHERE tabschema = '" + qualifier.toUpperCase() + "' AND TYPE='V'"; //$NON-NLS-1$ //$NON-NLS-2$
}
- public String getShowSequenceQuery(String qualifier, boolean isDefault) {
+ public String getShowSequenceQuery(String qualifier) {
return "SELECT SEQNAME FROM sysibm.syssequences WHERE seqschema = '" + qualifier.toUpperCase() + "'"; //$NON-NLS-1$ //$NON-NLS-2$
}
public String getNextValue(String sequence, String owner) {