public interface Accessor<T extends AbstractIdentifiableObject>
Modifier and Type | Method and Description |
---|---|
T |
findByAttributes(Map<String,String> attributes)
Find an object by default attributes.
|
T |
findByAttributes(Map<String,String> attributes,
String attributesMapKey)
Find an object by attributes.
|
Spliterator<T> |
findManyByAttributes(Map<String,String> attributes)
Find objects by attributes.
|
Spliterator<T> |
findManyByAttributes(Map<String,String> attributes,
String attributesMapKey)
Find objects by attributes.
|
T |
get(org.bson.types.ObjectId id)
Get an object by id
|
T |
get(String id)
Get an object by id
|
Iterator<T> |
getAll() |
List<T> |
getRange(int skip,
int limit)
Get the range of objects specified by the skip/limit parameters browsing the collection
sorted by ID in the descending order
|
T get(org.bson.types.ObjectId id)
id
- the UID of the objectT findByAttributes(Map<String,String> attributes)
attributes
- the map of mandatory attributes of the object to be foundSpliterator<T> findManyByAttributes(Map<String,String> attributes)
attributes
- the map of mandatory attributes of the object to be foundIterator
for the objects foundT findByAttributes(Map<String,String> attributes, String attributesMapKey)
attributes
- the map of mandatory attributes of the object to be foundattributesMapKey
- the string representing the name (or "key") of the attribute mapSpliterator<T> findManyByAttributes(Map<String,String> attributes, String attributesMapKey)
attributes
- the map of mandatory attributes of the object to be foundattributesMapKey
- the string representing the name (or "key") of the attribute mapIterator
for the objects foundList<T> getRange(int skip, int limit)
skip
- the start index (inclusive) of the rangelimit
- the size of the rangeList
containing the objects of the specified rangeCopyright © 2020. All rights reserved.