Quantum version 2.4.1
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / adapters / MySQLAdapter.java
index d764095..e4e1ad3 100644 (file)
@@ -1,9 +1,22 @@
 package com.quantum.adapters;
 
+import java.util.HashMap;
+import java.util.Map;
 
 
-public class MySQLAdapter extends DatabaseAdapter {
-    public String getShowTableQuery(String qualifier, boolean isDefault) {
-        return "SHOW TABLES"; //$NON-NLS-1$
-    }
+
+public class MySQLAdapter extends GenericAdapter {
+
+       /**
+        * @param type
+        */
+       protected MySQLAdapter() {
+               super(AdapterFactory.MYSQL);
+       }
+       public Map getDefaultConnectionParameters() {
+               Map map = new HashMap();
+               map.put("port", "3306");
+               map.put("hostname", "localhost");
+               return map;
+       }
 }
\ No newline at end of file