org.openmrs.report.impl
Class DataSetServiceImpl

java.lang.Object
  extended by org.openmrs.report.impl.DataSetServiceImpl
All Implemented Interfaces:
DataSetService

Deprecated. see reportingcompatibility module

@Deprecated
public class DataSetServiceImpl
extends java.lang.Object
implements DataSetService

Default implementation of the data set service.


Field Summary
 org.apache.commons.logging.Log log
          Deprecated.  
 
Constructor Summary
DataSetServiceImpl()
          Deprecated. Default no-arg constructor
 
Method Summary
 DataSet evaluate(DataSetDefinition definition, Cohort inputCohort, EvaluationContext evalContext)
          Deprecated. Evaluate a data set definition to get turn it into a DataSet
 DataSetProvider getProvider(DataSetDefinition definition)
          Deprecated.  
 java.util.List<DataSetProvider> getProviders()
          Deprecated. Gets the list of providers that have been previously set on this service
 void onShutdown()
          Deprecated. Clean up after this class.
 void registerProvider(DataSetProvider newProvider)
          Deprecated. Registered a DataSetProvider and make it available to users of the data set service
 void removeProvider(DataSetProvider provider)
          Deprecated. Remove a registered DataSetProvider
 void setProviders(java.util.List<DataSetProvider> newProviders)
          Deprecated. Add the given list of DataSetProviders to the providers on this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public org.apache.commons.logging.Log log
Deprecated. 
Constructor Detail

DataSetServiceImpl

public DataSetServiceImpl()
Deprecated. 
Default no-arg constructor

Method Detail

onShutdown

public void onShutdown()
Deprecated. 
Clean up after this class. Set the static var to null so that the classloader can reclaim the space.

See Also:
BaseOpenmrsService.onShutdown()

setProviders

public void setProviders(java.util.List<DataSetProvider> newProviders)
Deprecated. 
Description copied from interface: DataSetService
Add the given list of DataSetProviders to the providers on this service. This is used by Spring and its config files. See /metadata/spring/applicationContext-service.xml file for how to add objects to this. This should delegate to DataSetService.registerProvider(DataSetProvider) for each provider

Specified by:
setProviders in interface DataSetService
Parameters:
newProviders - list of DataSetProvider objects to add on service
See Also:
DataSetService.setProviders(List)

getProviders

public java.util.List<DataSetProvider> getProviders()
Deprecated. 
Description copied from interface: DataSetService
Gets the list of providers that have been previously set on this service

Specified by:
getProviders in interface DataSetService
Returns:
the list of registered providers
See Also:
DataSetService.getProviders()

registerProvider

public void registerProvider(DataSetProvider newProvider)
Deprecated. 
Description copied from interface: DataSetService
Registered a DataSetProvider and make it available to users of the data set service

Specified by:
registerProvider in interface DataSetService
Parameters:
newProvider - DataSetProvider to add
See Also:
DataSetService.registerProvider(org.openmrs.report.DataSetProvider)

removeProvider

public void removeProvider(DataSetProvider provider)
Deprecated. 
Description copied from interface: DataSetService
Remove a registered DataSetProvider

Specified by:
removeProvider in interface DataSetService
Parameters:
provider - DataSetProvider to remove
See Also:
DataSetService.removeProvider(org.openmrs.report.DataSetProvider)

getProvider

public DataSetProvider getProvider(DataSetDefinition definition)
Deprecated. 
Specified by:
getProvider in interface DataSetService
Returns:
A registered DataSetProvider capable of evaluating the given definition
See Also:
DataSetService.getProvider(org.openmrs.report.DataSetDefinition)

evaluate

public DataSet evaluate(DataSetDefinition definition,
                        Cohort inputCohort,
                        EvaluationContext evalContext)
Deprecated. 
Description copied from interface: DataSetService
Evaluate a data set definition to get turn it into a DataSet

Specified by:
evaluate in interface DataSetService
inputCohort - Input cohort optionally specified by the user. May be ignored by some data sets.
evalContext - EvaluationContext containing parameter values, etc
Returns:
a DataSet matching the parameters
See Also:
DataSetService.evaluate(org.openmrs.report.DataSetDefinition, org.openmrs.Cohort, org.openmrs.report.EvaluationContext)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change