|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataSource
Generic data source interface.
Each data source must implement this interface. The persistence engine
handles the life cycle for the data source using the defined methods. The
life cycle managed by a persistence engine looks like this:
1. Call parameterless constructor of the implementing class.:
2. Call setContext()
3. Call setParameters()
4. Call open()
Call close() when persistence engine gets disposed.
| Method Summary | |
|---|---|
void |
close()
Closes the data source. |
RoboticsAPIContext |
getContext()
Gets the context for this data source. |
String |
getName()
Gets the name of this data source. |
boolean |
isOpen()
Indicates if this data source is opened. |
boolean |
isReadOnly()
Indicates if this data source is read only. |
void |
open()
Opens the data source. |
void |
setContext(RoboticsAPIContext context)
Sets the context for this data source. |
void |
setParameters(com.kuka.common.ParameterSet parameters)
Initializes the data source with a set of parameters. |
| Method Detail |
|---|
void open()
Usually should be uses to connect to the real data source (database, file etc.)
void close()
Closes the connection to the real data source.
void setParameters(com.kuka.common.ParameterSet parameters)
parameters - The parameters of the data source.boolean isReadOnly()
boolean isOpen()
String getName()
void setContext(RoboticsAPIContext context)
context - The context for this data source.RoboticsAPIContext getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||