7 * <b>Diese Klasse implementiert die abstrakte Klasse DatabaseAdaptor für Postgresql-Datenbanken
13 public final class DatabaseAdaptorPostgresql implements DatabaseAdaptor{
15 // private static String url = "jdbc:postgresql://localhost:5432/mir";
18 private static String url = "jdbc:postgresql://localhost:5432/mir_unstable";
19 private static String driver = "org.postgresql.Driver";
21 public String getDriver() {
25 public String getURL(String user, String pass, String host) {
29 public static void setUrl(String u) throws Exception {
30 if (!url.startsWith("jdbc:"))
31 throw new Exception("Database Adaptor URL must begin with: \"jdbc:\"");
35 public static void setDriver(String d) {
39 public boolean hasLimit() {
43 public boolean reverseLimit() {
47 public Properties getProperties(String user, String password) {
51 public String getLastInsertSQL(Database theDB) {
52 return "select currval('"+theDB.getCoreTable()+"_id_seq')";