|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.SystemItems
public class SystemItems
This class is used to map the system id of all SystemData
items to the numerical internal
id in the current installation. This information is initialised
at startup and is then kept in memory.
Field Summary | |
---|---|
private static boolean |
isInitialised
|
private static int[] |
roleKeys
An array to hold mappings for RoleKeyData :
RoleKeyData.itemType --> RoleKeyData.id |
private static Map<String,Integer> |
systemIds
A map from system id --> numeric id |
Constructor Summary | |
---|---|
SystemItems()
|
Method Summary | |
---|---|
(package private) static void |
add(SystemData item)
Register a system item. |
(package private) static void |
addRoleKey(RoleKeyData roleKey)
Register a role key. |
static int |
getId(String systemId)
Get the numeric id for an item when you know the system id. |
static int |
getRoleKeyId(Item itemType)
Get the numeric id for a RoleKey when you know the Item
type of the RoleKey. |
(package private) static void |
init()
Initialize the class and load all mappings for item.systemId --> item.id and for RoleKeyData.itemType --> RoleKeyData.id |
(package private) static void |
unload()
Unload all settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static boolean isInitialised
private static Map<String,Integer> systemIds
private static int[] roleKeys
RoleKeyData
:
RoleKeyData.itemType --> RoleKeyData.id
Constructor Detail |
---|
public SystemItems()
Method Detail |
---|
static void init() throws BaseException
BaseException
- If there is an errorstatic void unload()
static void add(SystemData item)
Install
class while
creating new items.
public static int getId(String systemId)
systemId
- The system id string
static void addRoleKey(RoleKeyData roleKey)
Install
class while
creating new items.
public static int getRoleKeyId(Item itemType)
RoleKey
when you know the Item
type of the RoleKey.
itemType
- The item type code as defined by the Item
class
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |