ca.uhn.cache
Interface IDataSource

All Known Subinterfaces:
IUnstationaryDataSource
All Known Implementing Classes:
MethodDataSource, SelfCachingDataSource

public interface IDataSource

Encapsulates a source of data, for example an original source of data that are to be cached, or a caching proxy around such a data source. IMPORTANT: It is assumed that the data provided by this interface are STATIONARY in the sense that an individual item of data can't move from one semantic region to another over time. In other words, attributes of a data item may be updated over time, but not those that are mapped to IQueryParams. If this is not the case for your data, you must use IUnstationaryDataSource instead.

Version:
$Revision: 1.1 $ updated on $Date: 2005/01/24 22:52:08 $ by $Author: bryan_tripp $
Author:
Alexei Guevara, Bryan Tripp

Method Summary
 IQueryResult execute(IQuery[] theQueries)
          Runs one or more queries against the data source.
 

Method Detail

execute

public IQueryResult execute(IQuery[] theQueries)
                     throws DataSourceException
Runs one or more queries against the data source.

Parameters:
theQueries - queries to run
Returns:
data matching the given queries (may return before all data are available)
Throws:
DataSourceException - If the execute operation could not be successfully completed.


Copyright © 2004-2005 University Health Network. All Rights Reserved.