Modifier and Type | Field and Description |
---|---|
private org.jongo.MongoCollection |
collection |
private com.mongodb.DB |
db |
Constructor and Description |
---|
MongoDBStorage(com.mongodb.DB db) |
Modifier and Type | Method and Description |
---|---|
List<GenericValue> |
find(Key key) |
private List<GenericValue> |
findBy(String query) |
void |
insert(GenericValue elem)
Insert
|
void |
insertMany(List<GenericValue> elems) |
List<GenericValue> |
lessThanAndRemove(Key key) |
void |
remove(Key key) |
private void |
removeBy(String query) |
void |
update(GenericValue elem,
Key key) |
private final com.mongodb.DB db
private final org.jongo.MongoCollection collection
public void insert(GenericValue elem)
public void insertMany(List<GenericValue> elems)
insertMany
in interface Storage
elems
- |public List<GenericValue> find(Key key)
public List<GenericValue> lessThanAndRemove(Key key)
lessThanAndRemove
in interface Storage
key
- |public void update(GenericValue elem, Key key)
private void removeBy(String query)
query
- |private List<GenericValue> findBy(String query)
query
- |Copyright © 2018. All rights reserved.