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";
16 private static String driver = "org.postgresql.Driver";
18 public String getDriver() {
22 public String getURL(String user, String pass, String host) {
26 public static void setUrl(String u) throws Exception {
27 if (!url.startsWith("jdbc:"))
28 throw new Exception("Database Adaptor URL must begin with: \"jdbc:\"");
32 public static void setDriver(String d) {
36 public boolean hasLimit() {
40 public boolean reverseLimit() {
44 public Properties getProperties(String user, String password) {
48 public String getLastInsertSQL(Database theDB) {
49 return "select currval('"+theDB.getCoreTable()+"_id_seq')";