You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
920 B
37 lines
920 B
package de.memtext.db; |
|
|
|
import de.memtext.baseobjects.NamedObject; |
|
/** |
|
* This class represents a Database system like Informix or Postgres |
|
*/ |
|
public class DB extends NamedObject { |
|
private String version; |
|
static public final DB INFORMIX = new DB("Informix", "7.3"); |
|
static public final DB POSTGRES = new DB("Postgres", "7.3"); |
|
static public final DB ACCESS = new DB("Access", "2000"); |
|
/** |
|
* The public constructors are needed because the DB class is |
|
* a java bean which is cool for XMLEncoding |
|
* |
|
*/ |
|
public DB() { |
|
this("Unbekannte Datenbank",""); |
|
} |
|
public DB(String name) { |
|
this(name, ""); |
|
} |
|
|
|
public DB(String name, String version) { |
|
super(name); |
|
this.version = version; |
|
} |
|
|
|
public boolean equals(Object o) { |
|
if (!(o instanceof DB)) |
|
return false; |
|
DB db = (DB) o; |
|
return this.getName().equals(db.getName()); |
|
} |
|
} |
|
|
|
//Created on 03.12.2003 at 15:54:27
|