Reality Interface Classes

com.northgateis.realweb
Class RwDatabase

java.lang.Object
 |
 +--com.northgateis.comms.dda.DDAConnectionSpec
        |
 +--com.northgateis.realweb.RwDatabase

public class RwDatabase
extends DDAConnectionSpec

This class manages the RealWeb database of connection mappings. Connection specifications are held in the text file realweb.ini. This file should only be modified using the rwconfig servlet. This class caches the contents realweb.ini and also caches individual sections. Updating realweb.ini should only be done through this class to ensure the caches are updated correctly.


Field Summary
static java.lang.String iniFile
           
 
Fields inherited from class com.northgateis.comms.dda.DDAConnectionSpec
account, database, DEFAULT_PORT, host, port, user
 
Method Summary
static RwDatabasegetIniVars(java.lang.String section)
          This is the main entry point.
static voidsaveIni(IniFiles ini)
          Update the realweb.ini file and invalidate all cache records.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iniFile

public static final java.lang.String iniFile
Method Detail

saveIni

public static void saveIni(IniFiles ini)
Update the realweb.ini file and invalidate all cache records.
Parameters:
ini - The new ini structure used to overwrite realweb.ini

getIniVars

public static RwDatabasegetIniVars(java.lang.String section)
 throws RealWebException
This is the main entry point. Look up the section in the section cache. If not there then create a new cache entry

Reality Interface Classes

Copyright (c) 2000 NEC Software Services (UK) Limited