X-Git-Url: http://git.phpeclipse.com diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java index d17e8b0..12bde71 100644 --- a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java +++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/adapters/DatabaseAdapter.java @@ -1,5 +1,6 @@ package com.quantum.adapters; +import com.quantum.Messages; import com.quantum.sql.SQLHelper; import com.quantum.util.StringUtil; @@ -12,12 +13,22 @@ import com.quantum.util.StringUtil; */ public abstract class DatabaseAdapter { + private final String type; + + protected DatabaseAdapter(String type) { + this.type = type; + } + + public String getDisplayName() { + return Messages.getString(DatabaseAdapter.class, getType()); + } + /** * Returns the SQL Query to get a list of the tables for the current user (schema) * @param info * @return - A String with the SQL query */ - public String getShowTableQuery(String schema, boolean isDefault) { + public String getShowTableQuery(String schema) { return null; } /** @@ -25,7 +36,7 @@ public abstract class DatabaseAdapter { * @param info * @return - A String with the SQL query */ - public String getShowViewQuery(String schema, boolean isDefault) { + public String getShowViewQuery(String schema) { return null; } /** @@ -33,7 +44,7 @@ public abstract class DatabaseAdapter { * @param info * @return - A String with the SQL query */ - public String getShowSequenceQuery(String schema, boolean isDefault) { + public String getShowSequenceQuery(String schema) { return null; } @@ -195,4 +206,10 @@ public abstract class DatabaseAdapter { public String getDefaultSchema(String userid) { return userid; } + /** + * @return Returns the type. + */ + public String getType() { + return this.type; + } } \ No newline at end of file