1 package mircoders.entity;
7 import mir.storage.store.*;
10 * This class is objectmapping of database webdb_users
17 public class EntityUsers extends Entity implements StorableObject
25 public EntityUsers(StorageObject theStorage) {
27 setStorage(theStorage);
32 public boolean isAdmin()
34 String admin=getValue("is_admin");
35 //theLog.printDebugInfo("admin::::"+admin);
36 return (admin!=null&&admin.equals("1"))?true:false;
40 * Method: getStoreIdentifier
41 * Description: returns unique StoreIdentifer under which the Entity
42 * is Stored. Based upon primary key and tablename.
44 * @return StoreIdentifier
46 public StoreIdentifier getStoreIdentifier() {
48 if ( id!=null && theStorageObject!= null )
49 return new StoreIdentifier(this, id+"@"+theStorageObject.getTableName());
54 * Method: getNotifyOnReleaseSet()
55 * Description: returns empty Set, GenericContainer does not implement
60 public Set getNotifyOnReleaseSet() { return null; }