Interface SetRepository
-
public interface SetRepositoryAPI for implementing a repository of sets. It is possible to have a data provider without sets.- Version:
- 3.1.0
- Author:
- Development @ Lyncode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists(String setSpec)Checks if a specific set exists in the data source.ListSetsResultretrieveSets(int offset, int length)Returns a paged list of sets.booleansupportSets()Checks if the actual data source supports sets.
-
-
-
Method Detail
-
supportSets
boolean supportSets()
Checks if the actual data source supports sets.- Returns:
- Supports sets?
-
retrieveSets
ListSetsResult retrieveSets(int offset, int length)
Returns a paged list of sets. It is common to use a partial result of 100 sets however, in XOAI this is a configured parameter.- Parameters:
offset- Starting offsetlength- Max size of the returned list- Returns:
- List of Sets
-
exists
boolean exists(String setSpec)
Checks if a specific set exists in the data source.- Parameters:
setSpec- Set spec- Returns:
- Set exists
-
-