Initial revision
[mir.git] / source / mir / storage / DatabaseAdaptorMySQL.java
diff --git a/source/mir/storage/DatabaseAdaptorMySQL.java b/source/mir/storage/DatabaseAdaptorMySQL.java
new file mode 100755 (executable)
index 0000000..c917f82
--- /dev/null
@@ -0,0 +1,40 @@
+package mir.storage;
+
+import java.util.*;
+import mir.misc.*;
+
+/**
+ * <b>Diese Klasse implementiert die abstrakte Klasse DatabaseAdaptor
+ *
+ * @author <RK>
+ * @version 27.6.1999
+ */
+
+public final class DatabaseAdaptorMySQL implements DatabaseAdaptor{
+
+    public String getDriver() {
+       return Configuration.getProperty("Adaptor.MySQL.Driver");
+    }
+
+    public String getURL(String user, String pass, String host) {
+           return Configuration.getProperty("Adaptor.MySQL.URL");
+    }
+
+    public  boolean hasLimit() {
+      return true;
+    }
+
+    public boolean reverseLimit() {
+      return false;
+    }
+
+    public Properties getProperties(String user, String password) {
+      return null;
+    }
+
+    public String getLastInsertSQL(Database theDB) {
+           return "select last_insert_id()";
+    }
+}
+
+