public class PostgresAdapter extends DatabaseAdapter {
public String getShowTableQuery(DatabaseInfo info) {
- return "SELECT TABLENAME FROM PG_TABLES";
+ return "SELECT TABLENAME FROM PG_TABLES"; //$NON-NLS-1$
}
public String getShowViewQuery(DatabaseInfo info) {
- return "SELECT VIEWNAME FROM PG_VIEWS";
+ return "SELECT VIEWNAME FROM PG_VIEWS"; //$NON-NLS-1$
}
public String getShowSequenceQuery(DatabaseInfo info) {
- return "SELECT relname FROM pg_class WHERE relkind = 'S'";
+ return "SELECT relname FROM pg_class WHERE relkind = 'S'"; //$NON-NLS-1$
}
- public String getNextValue(String sequence) {
- return "select nextval('" + sequence + "')";
- }
- public String getTableListFilter() {
- return "pg_";
- }
- public DatabaseAdapter getInstance() {
- return new PostgresAdapter();
- }
+ //These lines commented because I couldn't find the string values anywhere
+// public String getNextValue(String sequence) {
+// return Messages.getString("PostgresAdapter.select_nextval(___4") + sequence + Messages.getString("PostgresAdapter.__)_5"); //$NON-NLS-1$ //$NON-NLS-2$
+// }
+// public String getTableListFilter() {
+// return Messages.getString("PostgresAdapter.pg__6"); //$NON-NLS-1$
+// }
}
\ No newline at end of file