public abstract class AbstractDataSourceBackend extends AbstractBackend<DataSourceBackendUpdatedEvent> implements DataSourceBackend
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataSourceBackend() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any resources allocated by this backend.
|
void |
deleteAllKeys() |
GranularityFactory |
getGranularityFactory() |
Comparator<Object> |
getKeyIdComparator() |
String |
getKeyType() |
String |
getKeyTypeDisplayName() |
String |
getKeyTypePluralDisplayName() |
KeySetSpec[] |
getSelectedKeySetSpecs() |
DataSourceBackendSourceSystem |
getSourceSystem() |
UnitFactory |
getUnitFactory() |
void |
setGranularityFactory(GranularityFactory granularityFactory) |
void |
setKeyIdComparator(Comparator<Object> keyIdComparator) |
void |
setKeyType(String keyType) |
void |
setUnitFactory(UnitFactory unitFactory) |
void |
writeKeys(Set<String> keyIds) |
addBackendListener, fireBackendUpdated, fireEvent, fireUnrecoverableError, getConfigurationsId, getId, initialize, removeBackendListener, setEventListeners, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadPropositions, validateConfiguration, validateDataaddBackendListener, getConfigurationsId, getDisplayName, getId, initialize, removeBackendListener, setEventListenerspublic String getKeyType()
getKeyType in interface DataSourceBackendpublic void setKeyType(String keyType)
public GranularityFactory getGranularityFactory()
getGranularityFactory in interface DataSourceBackendpublic void setGranularityFactory(GranularityFactory granularityFactory)
public UnitFactory getUnitFactory()
getUnitFactory in interface DataSourceBackendpublic void setUnitFactory(UnitFactory unitFactory)
public void setKeyIdComparator(Comparator<Object> keyIdComparator)
public Comparator<Object> getKeyIdComparator()
getKeyIdComparator in interface DataSourceBackendpublic void close()
throws BackendCloseException
Backendclose in interface Backend<DataSourceBackendUpdatedEvent>BackendCloseExceptionpublic String getKeyTypeDisplayName()
getKeyTypeDisplayName in interface DataSourceBackendpublic String getKeyTypePluralDisplayName()
getKeyTypePluralDisplayName in interface DataSourceBackendpublic KeySetSpec[] getSelectedKeySetSpecs() throws DataSourceReadException
getSelectedKeySetSpecs in interface DataSourceBackendDataSourceReadExceptionpublic void deleteAllKeys()
throws DataSourceWriteException
deleteAllKeys in interface DataSourceBackendDataSourceWriteExceptionpublic void writeKeys(Set<String> keyIds) throws DataSourceWriteException
writeKeys in interface DataSourceBackendDataSourceWriteExceptionpublic DataSourceBackendSourceSystem getSourceSystem()
getSourceSystem in interface DataSourceBackendCopyright © 2012–2018 Emory University. All rights reserved.