public interface DataSource extends Source<DataSourceUpdatedEvent,DataSourceBackend,DataSourceBackendUpdatedEvent>
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllKeys() |
GranularityFactory |
getGranularityFactory()
Returns an object for accessing the granularity of returned data from the
schema adaptor for this data source.
|
String |
getKeyType()
Returns a string representing the type of keys in this data source (e.g.,
patient, case).
|
String |
getKeyTypeDisplayName()
Returns a string representing the type of keys in this data source (e.g.,
patient, case) for display purposes.
|
String |
getKeyTypePluralDisplayName()
Returns a plural string representing the type of keys in this data source
(e.g., patient, case) for display purposes.
|
KeySetSpec[] |
getSelectedKeySetSpecs() |
UnitFactory |
getUnitFactory()
Returns the length units of returned data from this data source.
|
DataStreamingEventIterator<Proposition> |
readPropositions(Set<String> keyIds,
Set<String> propIds,
Filter filters,
QueryResultsHandler queryResultsHandler) |
void |
writeKeys(Set<String> keyIds) |
addSourceListener, clear, close, getBackends, removeSourceListener, setEventListenersbackendUpdated, unrecoverableErrorOccurredGranularityFactory getGranularityFactory() throws DataSourceReadException
GranularityFactory, or null if the data
source could not be initialized or the schema adaptor returned a null
GranularityFactory.TerminologyAdaptorInitializationException - if the terminology
adaptor could not be initialized.SchemaAdaptorInitializationException - if the schema adaptor could
not be initialized.DataSourceReadExceptionSchemaAdaptor#getGranularityFactory()String getKeyType() throws DataSourceReadException
String, guaranteed not null.TerminologyAdaptorInitializationException - if the terminology
adaptor could not be initialized.SchemaAdaptorInitializationException - if the schema adaptor could
not be initialized.DataSourceReadExceptionString getKeyTypeDisplayName() throws DataSourceReadException
String, guaranteed not null.TerminologyAdaptorInitializationException - if the terminology
adaptor could not be initialized.SchemaAdaptorInitializationException - if the schema adaptor could
not be initialized.DataSourceReadExceptionString getKeyTypePluralDisplayName() throws DataSourceReadException
String, guaranteed not null.TerminologyAdaptorInitializationException - if the terminology
adaptor could not be initialized.SchemaAdaptorInitializationException - if the schema adaptor could
not be initialized.IllegalStateException - if the schema adaptor and/or terminology
adaptor could not be initialized, or if the schema adaptor returned a
null key type plural display name.DataSourceReadExceptionKeySetSpec[] getSelectedKeySetSpecs() throws DataSourceReadException
DataSourceReadExceptionUnitFactory getUnitFactory() throws DataSourceReadException
UnitFactory, or null if the data source
could not be initialized or the schema adaptor returned a null
UnitFactory.DataSourceReadException - if the data source could not be
initialized.DataStreamingEventIterator<Proposition> readPropositions(Set<String> keyIds, Set<String> propIds, Filter filters, QueryResultsHandler queryResultsHandler) throws DataSourceReadException
DataSourceReadExceptionvoid deleteAllKeys()
throws DataSourceWriteException
DataSourceWriteExceptionvoid writeKeys(Set<String> keyIds) throws DataSourceWriteException
DataSourceWriteExceptionCopyright © 2012–2017 Emory University. All rights reserved.