Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.masterdata
Class DefaultMasterDataService  view DefaultMasterDataService download DefaultMasterDataService.java

java.lang.Object
  extended byopenfuture.masterdata.DefaultMasterDataService
All Implemented Interfaces:
IMasterDataService

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)


Field Summary
private static java.util.Hashtable masterDataCache
          Field masterDataCache (Hashtable) is used to cache the master data in the service
 
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
 

Field Detail

masterDataCache

private static java.util.Hashtable masterDataCache
Field masterDataCache (Hashtable) is used to cache the master data in the service

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)


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

getMasterDataCache

public static java.util.Hashtable getMasterDataCache()
Return 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