com.kuka.roboticsAPI.persistenceModel
Interface IPersistenceEngine

All Superinterfaces:
IEngine
All Known Implementing Classes:
PersistenceEngine

public interface IPersistenceEngine
extends IEngine

Interface describing a persistence engine.

This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

Method Summary
<T extends IDataSource>
T
getDataSource(Class<T> clazz)
          Searches for the first data source class implementing the given interface.
<T extends IDataSource>
T
getDataSource(Class<T> sourceinterface, String name)
          Searches for the data source class implementing the given interface with the given name.
 IDataSource getDefaultDataSource()
          Gets the default data source for all persistence engines.
 
Methods inherited from interface com.kuka.roboticsAPI.IEngine
dispose, getContext, getEngineType, initialize, setParameters
 

Method Detail

getDataSource

<T extends IDataSource> T getDataSource(Class<T> clazz)
Searches for the first data source class implementing the given interface. The source will be open after this call.

Type Parameters:
T - The interface type the data source should implement.
Parameters:
clazz - The concrete interface which the data source should implement.
Returns:
The first data source implementing the specified interface.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getDataSource

<T extends IDataSource> T getDataSource(Class<T> sourceinterface,
                                        String name)
Searches for the data source class implementing the given interface with the given name. The source will be open after this call.

Type Parameters:
T - The interface type the data source should implement.
Parameters:
sourceinterface - The concrete interface which the data source should implement.
name - The name of the data source.
Returns:
The data source implementing the specified interface.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.

getDefaultDataSource

IDataSource getDefaultDataSource()
Gets the default data source for all persistence engines.

Default data source is returned for every data source request if its interface type is the same as the interface type of the requested data source. It can be configured in the configuration file of the RobotcsAPI.

Returns:
the default data source for all persistence engines. Returns null if default data source is not set.
This element is an undocumented internal feature. It is not intended to be used by applications as it might change or be removed in future versions.


Copyright © 2019. All rights reserved.