|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.connector.DataBaseConnector
public class DataBaseConnector
Implements a data base connector using the Hibernate package.
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.
Test1
,
Test2
,
Test3
,
Test4
,
Test5
Constructor Summary | |
---|---|
DataBaseConnector()
|
Method Summary | |
---|---|
void |
close()
Cleanup any resource that the connector might be using, and suspends the service |
void |
deleteCases(java.util.Collection<CBRCase> cases)
Deletes given cases for the storage media |
void |
initFromXMLfile(java.net.URL file)
Initialices the connector with the given XML file |
java.util.Collection<CBRCase> |
retrieveAllCases()
Returns max cases without any special consideration |
java.util.Collection<CBRCase> |
retrieveSomeCases(CaseBaseFilter filter)
Retrieves some cases depending on the filter. |
void |
storeCases(java.util.Collection<CBRCase> cases)
Stores given classes on the storage media |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataBaseConnector()
Method Detail |
---|
public void close()
Connector
close
in interface Connector
public void deleteCases(java.util.Collection<CBRCase> cases)
Connector
deleteCases
in interface Connector
cases
- List of casespublic void initFromXMLfile(java.net.URL file) throws InitializingException
Connector
initFromXMLfile
in interface Connector
file
- XMl file with the settings
InitializingException
- Raised if the connector can not be initialezed.public java.util.Collection<CBRCase> retrieveAllCases()
Connector
retrieveAllCases
in interface Connector
public java.util.Collection<CBRCase> retrieveSomeCases(CaseBaseFilter filter)
Connector
retrieveSomeCases
in interface Connector
public void storeCases(java.util.Collection<CBRCase> cases)
Connector
storeCases
in interface Connector
cases
- List of cases
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |