Initial revision
[mir.git] / source / mir / storage / DatabaseAdaptorPostgresql.java
diff --git a/source/mir/storage/DatabaseAdaptorPostgresql.java b/source/mir/storage/DatabaseAdaptorPostgresql.java
new file mode 100755 (executable)
index 0000000..56d329e
--- /dev/null
@@ -0,0 +1,40 @@
+package mir.storage;
+
+import java.util.*;
+import mir.misc.*;
+
+/**
+ * <b>Diese Klasse implementiert die abstrakte Klasse DatabaseAdaptor für Postgresql-Datenbanken
+ *
+ * @author <RK>
+ * @version 30.12.2000
+ */
+
+public final class DatabaseAdaptorPostgresql implements DatabaseAdaptor{
+
+    public String getDriver() {
+       return Configuration.getProperty("Adaptor.PostgreSQL.Driver");
+    }
+
+    public String getURL(String user, String pass, String host) {
+           return Configuration.getProperty("Adaptor.PostgreSQL.URL");
+    }
+
+    public  boolean hasLimit() {
+      return true;
+    }
+
+    public boolean reverseLimit() {
+      return true;
+    }
+
+    public Properties getProperties(String user, String password) {
+      return null;
+    }
+
+    public String getLastInsertSQL(Database theDB) {
+           return "select currval('"+theDB.getCoreTable()+"_id_seq')";
+    }
+}
+
+