Package | Description |
---|---|
sirius.db.mongo |
Thin layer above Mongo DB.
|
Modifier and Type | Method and Description |
---|---|
Doc |
Inserter.into(Class<?> type)
Executes the insert statement into the given collection.
|
Doc |
Inserter.into(String collection)
Executes the insert statement into the given collection.
|
Modifier and Type | Method and Description |
---|---|
Optional<Doc> |
Finder.singleIn(Class<?> type)
Executes the query for the given collection and returns a single document.
|
Optional<Doc> |
Finder.singleIn(String collection)
Executes the query for the given collection and returns a single document.
|
Modifier and Type | Method and Description |
---|---|
static <E extends MongoEntity> |
Mango.make(EntityDescriptor ed,
Doc doc)
Creates a new entity for the given descriptor based on the given doc.
|
Modifier and Type | Method and Description |
---|---|
void |
Finder.allIn(Class<?> type,
Consumer<Doc> processor)
Executes the query for the given collection and calls the given processor for each document.
|
void |
Finder.allIn(String collection,
Consumer<Doc> processor)
Executes the query for the given collection and calls the given processor for each document.
|
void |
Finder.eachIn(Class<?> type,
Function<Doc,Boolean> processor)
Executes the query for the given collection and calls the given processor for each document as long as it
returns true.
|
void |
Finder.eachIn(String collection,
Function<Doc,Boolean> processor)
Executes the query for the given collection and calls the given processor for each document as long as it
returns true.
|
Copyright © 2018. All rights reserved.