openfuture.masterdata
Class DefaultMasterDataService

java.lang.Object
  |
  +--openfuture.masterdata.DefaultMasterDataService
All Implemented Interfaces:
IMasterDataService
Direct Known Subclasses:
MasterDataService, MyMasterDataService

public class DefaultMasterDataService
extends java.lang.Object
implements IMasterDataService

This is a default implementation for a Master Data service. Creation date: (09.09.00 22:00:17)


Constructor Summary
DefaultMasterDataService()
          Constructor
 
Method Summary
 void addMasterDataContainer(java.lang.String type, IMasterDataContainer container)
          Insert the method's description here.
 IMasterDataContainer getMasterData(java.lang.String type, java.lang.String language)
          Passes Master Data of the specified type and a given language to the Master Data Provider.
static java.util.Hashtable getMasterDataCache()
          Return contents of field masterDataCache
 void initialize()
          Initialize the Master Data cache
Must be subclassed to provide some master data.
static void setMasterDataCache(java.util.Hashtable newValue)
          Set contents of field masterDataCache to the given value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMasterDataService

public DefaultMasterDataService()
Constructor
Method Detail

addMasterDataContainer

public void addMasterDataContainer(java.lang.String type,
                                   IMasterDataContainer container)
Insert the method's description here. Creation date: (10.09.00 09:40:31)
Parameters:
type - java.lang.String
container - openfuture.masterdata.IMasterDataContainer

getMasterData

public IMasterDataContainer getMasterData(java.lang.String type,
                                          java.lang.String language)
Passes Master Data of the specified type and a given language to the Master Data Provider. Creation date: (09.09.00 21:57:13)
Specified by:
getMasterData in interface IMasterDataService
Parameters:
type - java.lang.String
language - java.lang.String
Returns:
java.util.Vector

getMasterDataCache

public static java.util.Hashtable getMasterDataCache()
Return contents of field masterDataCache
Returns:
(Hashtable) contents of field masterDataCache

initialize

public void initialize()
Initialize the Master Data cache
Must be subclassed to provide some master data.

You might want to create an instance of this class or subclass at start-up of your (server) application and initialize is in order to fetch some data, e.g. from a legacy system or interface. Creation date: (10.09.00 09:38:20)

Specified by:
initialize in interface IMasterDataService

setMasterDataCache

public static void setMasterDataCache(java.util.Hashtable newValue)
Set contents of field masterDataCache to the given value
Parameters:
newValue - (Hashtable) new value for field masterDataCache


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.