Package tigase.examples
Class ExampleUsingDataRepository
java.lang.Object
tigase.examples.ExampleUsingDataRepository
- All Implemented Interfaces:
DataSourceAware<DataRepository>
This is only and example, sample implementation of DataSourceAware and should not be used!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetDataFromRepo(String userID) voidsetDataSource(DataRepository dataSource) Method called to provide class with instance of a data source.
-
Constructor Details
-
ExampleUsingDataRepository
public ExampleUsingDataRepository()
-
-
Method Details
-
setDataSource
Description copied from interface:DataSourceAwareMethod called to provide class with instance of a data source.- Specified by:
setDataSourcein interfaceDataSourceAware<DataRepository>- Throws:
RepositoryException
-
getDataFromRepo
- Throws:
TigaseDBException
-