openfuture.masterdata
Class DefaultMasterDataProvider

java.lang.Object
  |
  +--openfuture.masterdata.DefaultMasterDataProvider
All Implemented Interfaces:
ILanguageDependent, IMasterDataProvider
Direct Known Subclasses:
MyMasterDataProvider

public class DefaultMasterDataProvider
extends java.lang.Object
implements IMasterDataProvider, ILanguageDependent

This is a default implementation for a Master Data provider. Creation date: (09.09.00 21:59:30)


Constructor Summary
DefaultMasterDataProvider()
          Constructor
 
Method Summary
 java.lang.String getLanguage()
          Return contents of field language
 java.util.Vector getMasterData(java.lang.String type)
          get some master data from the cache; if no data available in the provider, data are fetched from the service
 IMasterData getMasterData(java.lang.String type, java.lang.String id)
          get some master data from the cache for a given language
 java.util.Hashtable getMasterDataCache()
          Return contents of field masterDataCache
 IMasterDataService getService()
          Return contents of field service
 void setLanguage(java.lang.String newValue)
          Set contents of field language to the given value
 void setMasterDataCache(java.util.Hashtable newValue)
          Set contents of field masterDataCache to the given value
 void setService(IMasterDataService newValue)
          Set contents of field service to the given value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMasterDataProvider

public DefaultMasterDataProvider()
Constructor
Method Detail

getLanguage

public java.lang.String getLanguage()
Return contents of field language
Specified by:
getLanguage in interface ILanguageDependent
Returns:
(String) contents of field language

getMasterData

public java.util.Vector getMasterData(java.lang.String type)
get some master data from the cache; if no data available in the provider, data are fetched from the service
Specified by:
getMasterData in interface IMasterDataProvider
Parameters:
type - (String) the md type

getMasterData

public IMasterData getMasterData(java.lang.String type,
                                 java.lang.String id)
get some master data from the cache for a given language
Specified by:
getMasterData in interface IMasterDataProvider
Parameters:
type - (String) the md type

getMasterDataCache

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

getService

public final IMasterDataService getService()
Return contents of field service
Returns:
(IMasterDataService) contents of field service

setLanguage

public void setLanguage(java.lang.String newValue)
Set contents of field language to the given value
Specified by:
setLanguage in interface ILanguageDependent
Parameters:
newValue - (String) new value for field language

setMasterDataCache

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

setService

public final void setService(IMasterDataService newValue)
Set contents of field service to the given value
Parameters:
newValue - (IMasterDataService) new value for field service


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