public class DataBaseConnector extends Object implements Connector
The configuration file follows the schema defined in /doc/configfilesSchemas/DataBaseConnector.xsd:
There are several examples that incrementally show how to use this connector: Test1, Test2, Test3, Test4 and Test5.
| Constructor and Description |
|---|
DataBaseConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Cleanup any resource that the connector might be using, and suspends the
service
|
void |
deleteCases(Collection<CBRCase> cases)
Deletes given cases for the storage media
|
void |
initFromXMLfile(URL file)
Initialices the connector with the given XML file
|
Collection<CBRCase> |
retrieveAllCases()
Returns max cases without any special consideration
|
List<CBRCase> |
retrieveSomeCases(CaseBaseFilter filter)
Retrieves some cases depending on the filter.
|
void |
storeCases(Collection<CBRCase> cases)
Stores given classes on the storage media
|
public DataBaseConnector()
public void close()
Connectorpublic void deleteCases(Collection<CBRCase> cases)
ConnectordeleteCases in interface Connectorcases - List of casespublic void initFromXMLfile(URL file) throws InitializingException
ConnectorinitFromXMLfile in interface Connectorfile - XMl file with the settingsInitializingException - Raised if the connector can not be initialezed.public Collection<CBRCase> retrieveAllCases()
ConnectorretrieveAllCases in interface Connectorpublic List<CBRCase> retrieveSomeCases(CaseBaseFilter filter)
ConnectorretrieveSomeCases in interface Connectorpublic void storeCases(Collection<CBRCase> cases)
ConnectorstoreCases in interface Connectorcases - List of casesCopyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.