Atavism Version 2018.1AGIS API

atavism.server.objects
Class EntityManager

java.lang.Object
  extended by atavism.server.objects.EntityManager

public class EntityManager
extends java.lang.Object


Constructor Summary
EntityManager()
           
 
Method Summary
static Entity[] getAllEntitiesByNamespace(Namespace namespace)
          Return an array containing all the Entity objects registered in the Namespace.
static Entity getEntityByNamespace(OID oid, Namespace namespace)
          Get the Entity object for the given OID and namespace
static int getEntityCount()
           
static void registerEntityByNamespace(Entity entity, Namespace namespace)
          Register the entity by its OID and the Namespace passed in.
static boolean removeEntityByNamespace(Entity entity, Namespace namespace)
          Unregister the entity, using its OID and the Namespace
static boolean removeEntityByNamespace(OID oid, Namespace namespace)
          Look up the Entity by OID and Namespace, and unregister it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityManager

public EntityManager()
Method Detail

getEntityByNamespace

public static Entity getEntityByNamespace(OID oid,
                                          Namespace namespace)
Get the Entity object for the given OID and namespace

Returns:
The Entity corresponding to the OID and namespace, or null

registerEntityByNamespace

public static void registerEntityByNamespace(Entity entity,
                                             Namespace namespace)
Register the entity by its OID and the Namespace passed in. This method silently replaces any existing entity of the same oid and namespace, because that's what the old code did.


removeEntityByNamespace

public static boolean removeEntityByNamespace(Entity entity,
                                              Namespace namespace)
Unregister the entity, using its OID and the Namespace


removeEntityByNamespace

public static boolean removeEntityByNamespace(OID oid,
                                              Namespace namespace)
Look up the Entity by OID and Namespace, and unregister it


getAllEntitiesByNamespace

public static Entity[] getAllEntitiesByNamespace(Namespace namespace)
Return an array containing all the Entity objects registered in the Namespace.


getEntityCount

public static int getEntityCount()


Copyright © 2018 Dragonsan Studios Sp. z o.o.