Skip to content

Commit

Permalink
Added getService() method to Dao interface
Browse files Browse the repository at this point in the history
  • Loading branch information
hylkevds committed Nov 6, 2024
1 parent 1c5bc3c commit b46071f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Development Version 2.22

**Updates**
* Added `getService()` method to Dao interface.


## Release Version 2.21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ private URI buildUri(PkValue pkValues) throws NotImplementedException, URISyntax
return uri;
}

protected SensorThingsService getService() {
@Override
public SensorThingsService getService() {
return service;
}

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/de/fraunhofer/iosb/ilt/frostclient/dao/Dao.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
package de.fraunhofer.iosb.ilt.frostclient.dao;

import com.github.fge.jsonpatch.JsonPatchOperation;
import de.fraunhofer.iosb.ilt.frostclient.SensorThingsService;
import de.fraunhofer.iosb.ilt.frostclient.exception.ServiceFailureException;
import de.fraunhofer.iosb.ilt.frostclient.model.Entity;
import de.fraunhofer.iosb.ilt.frostclient.model.EntityType;
Expand Down Expand Up @@ -114,4 +115,10 @@ public interface Dao {
*/
Query query();

/**
* Get the service that this dao fetches data from.
*
* @return The service that backs this dao.
*/
SensorThingsService getService();
}

0 comments on commit b46071f

Please sign in to comment.