public class ClassNameCache extends Object
| Constructor and Description |
|---|
ClassNameCache()
Creates a new ClassNameCache object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
fillCache(String domain,
MetaClass[] metaClasses)
Helper Method for filling a class key cache that stores the mappings from class id to class key
(domain/tableName).
|
int |
getClassIdForClassKey(String classKey)
Convenience method that returns the id of a legacy meta class with the specified class key (tablename.domain).
|
int |
getClassIdForClassName(String domain,
String className)
Returns the id of a legacy meta class with the specified name (table name) for the specified domain.
|
String |
getClassNameForClassId(String domain,
int classId)
Returns the name (table name) of a legacy meta class with the specified id for the specified domain.
|
String |
getClassNameForClassId(String domain,
String classId)
Returns the name (table name) of a legacy meta class with the specified id for the specified domain.
|
boolean |
isDomainCached(String domain)
Returns true if the classes for the domain have been cached.
|
public boolean fillCache(String domain, MetaClass[] metaClasses)
domain - the domain of the classesmetaClasses - an array of legacy meta classespublic boolean isDomainCached(String domain)
domain - the domain to be chachedpublic String getClassNameForClassId(String domain, int classId)
domain - domain of the meta classclassId - legacy class id of the meta classpublic String getClassNameForClassId(String domain, String classId)
domain - domain of the meta classclassId - legacy class id of the meta classpublic int getClassIdForClassKey(String classKey)
classKey - the class key, e.g. SWITCHON.RESOURCEpublic int getClassIdForClassName(String domain, String className)
domain - domain of the meta classclassName - class name of the meta classCopyright © 2012–2026 cismet GmbH. All rights reserved.