|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.jemm.client.DelegatingDatabase
org.sourceforge.jemm.client.RegistrationCache
public class RegistrationCache
An ObjectDatabase which caches calls to register and classinfo since they are effectively static for the lifetime of the client.
| Constructor Summary | |
|---|---|
RegistrationCache(Database database)
|
|
| Method Summary | |
|---|---|
int |
cacheCount()
|
ClassInfo |
getClassInfo(ClientId clientId,
ClassId classId)
Returns the class information for the given class id. |
EnumInfo |
getEnumInfo(ClientId clientId,
EnumId enumId)
Returns the information about the given enumeration. |
ClassId |
registerClass(ClientId clientId,
ClassInfo classInfo)
Register a user class. |
EnumId |
registerEnum(ClientId clientId,
EnumInfo enumInfo)
Register an enumerated type. |
| Methods inherited from class org.sourceforge.jemm.client.DelegatingDatabase |
|---|
acquireLock, clientDisconnect, getDebugInterface, getObject, getRoot, newObject, processTypeRequest, referenceCleared, releaseLock, removeLockAcquiredListener, setClientLockAcquiredListener, setRoot, setRootIfNull, synchroniseObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sourceforge.jemm.database.Database |
|---|
acquireLock, clientDisconnect, getDebugInterface, getObject, getRoot, newObject, processTypeRequest, referenceCleared, releaseLock, removeLockAcquiredListener, setClientLockAcquiredListener, setRoot, setRootIfNull, synchroniseObject |
| Constructor Detail |
|---|
public RegistrationCache(Database database)
| Method Detail |
|---|
public ClassId registerClass(ClientId clientId,
ClassInfo classInfo)
throws StructureModifiedException
Database
registerClass in interface DatabaseregisterClass in class DelegatingDatabaseclientId - The registering client.classInfo - The information about the loaded user class (name/fields).
StructureModifiedException - if the class has been modified
and the Database does not accept the change
public EnumId registerEnum(ClientId clientId,
EnumInfo enumInfo)
throws StructureModifiedException
Database
registerEnum in interface DatabaseregisterEnum in class DelegatingDatabaseclientId - The identity of the registering client.enumInfo - The EnumInfo describing the enumerated type.
StructureModifiedException - If a modification to the enum is detected.
public ClassInfo getClassInfo(ClientId clientId,
ClassId classId)
Database
getClassInfo in interface DatabasegetClassInfo in class DelegatingDatabaseclientId - The id of the requesting client.classId - The id of the held class.
public EnumInfo getEnumInfo(ClientId clientId,
EnumId enumId)
Database
getEnumInfo in interface DatabasegetEnumInfo in class DelegatingDatabaseclientId - The id of the requesting client.enumId - The id of the enumerated type.
public int cacheCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||