Initial revision
[mir.git] / source / mircoders / entity / EntityUsers.java
diff --git a/source/mircoders/entity/EntityUsers.java b/source/mircoders/entity/EntityUsers.java
new file mode 100755 (executable)
index 0000000..8e9459b
--- /dev/null
@@ -0,0 +1,49 @@
+package mircoders.entity;
+
+import java.lang.*;
+import java.io.*;
+import java.util.*;
+import java.sql.*;
+
+import webdb.entity.*;
+import webdb.misc.*;
+import webdb.storage.*;
+
+/**
+ * This class is objectmapping of database webdb_users
+ *
+ * @author RK
+ * @version 11.11.2000
+ */
+
+
+public class EntityUsers extends AbstractEntity implements Entity
+{
+               private static int instances;
+
+               public EntityUsers()
+               {
+                       super();
+                               instances++;
+               }
+
+               public EntityUsers(StorageObject theStorage) {
+                       this();
+                       setStorage(theStorage);
+               }
+
+       public void finalize() {
+    instances--;
+    super.finalize();
+  }
+
+       // Methods
+
+       public boolean isAdmin()
+       {
+               String admin=getValue("is_admin");
+               //theLog.printDebugInfo("admin::::"+admin);
+               return (admin!=null&&admin.equals("1"))?true:false;
+       }
+
+}