Refactory: removed unnecessary local variables and imports.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / adapters / PostgresAdapter.java
index 3f07015..3404f2b 100644 (file)
@@ -3,21 +3,19 @@ package net.sourceforge.phpdt.sql.adapters;
 
 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