Initial revision
[mir.git] / source / mircoders / entity / EntityFeature.java
diff --git a/source/mircoders/entity/EntityFeature.java b/source/mircoders/entity/EntityFeature.java
new file mode 100755 (executable)
index 0000000..5f85c9f
--- /dev/null
@@ -0,0 +1,47 @@
+package mircoders.entity;
+
+import java.lang.*;
+import java.io.*;
+import java.util.*;
+import java.sql.*;
+
+import webdb.entity.*;
+import webdb.misc.*;
+import webdb.storage.*;
+
+import mir.storage.*;
+/**
+ * Diese Klasse enthält die Daten eines MetaObjekts
+ *
+ * @author RK
+ * @version 29.6.1999
+ */
+
+
+public class EntityFeature extends AbstractEntity implements Entity
+{
+               private static int instances;
+
+
+               public EntityFeature()
+               {
+       super();
+                               instances++;
+               }
+
+               public EntityFeature(StorageObject theStorage) {
+                       this();
+       setStorage(theStorage);
+               }
+
+       public void update() throws StorageObjectException{
+               super.update();
+               DatabaseContent dbContent = DatabaseContent.getInstance();
+               dbContent.setUnproduced("to_feature="+getId());
+       }
+
+  public void finalize() {
+         instances--;
+    super.finalize();
+  }
+}