SQL Plugin copied from Quantum plugin and refactored for PHPEclipse
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / adapters / DatabaseInfo.java
diff --git a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/adapters/DatabaseInfo.java b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/adapters/DatabaseInfo.java
new file mode 100644 (file)
index 0000000..d6b2f6b
--- /dev/null
@@ -0,0 +1,24 @@
+package net.sourceforge.phpdt.sql.adapters;
+
+import net.sourceforge.phpdt.sql.bookmarks.Bookmark;
+
+public class DatabaseInfo {
+       private String schema;
+       
+       private DatabaseInfo(String schema) {
+               this.schema = schema;
+       }
+       
+       public static DatabaseInfo create(Bookmark bookmark) {
+               return new DatabaseInfo(bookmark.getSchema());
+       }
+       
+       public String getSchema() {
+               return schema;
+       }
+
+       public void setSchema(String schema) {
+               this.schema = schema;
+       }
+
+}