public class MongoDsl extends Object implements MongoSequenceDsl, MongoStatementDsl
| Modifier and Type | Method and Description |
|---|---|
MongoSequenceDsl |
and()
Close the current statement
|
MongoStatementDsl |
d(String printableValue)
Add a value to insert
|
List<MongoInsertionDto> |
dtos()
Build the DTOs (Data Transfer Object) from this DSL,
closing it (ie, not usable any longer).
|
MongoStatementDsl |
insertInto(String databaseName,
String collectionName)
An insertion operation on the Mongo Database (MongoDB)
|
static MongoSequenceDsl |
mongo() |
static MongoSequenceDsl |
mongo(List<MongoInsertionDto>... previous) |
public static MongoSequenceDsl mongo()
public static MongoSequenceDsl mongo(List<MongoInsertionDto>... previous)
previous - a DSL object which is executed in the front of thispublic MongoStatementDsl insertInto(String databaseName, String collectionName)
MongoSequenceDslinsertInto in interface MongoSequenceDsldatabaseName - the target database in the MongoDBcollectionName - the target collection in the MongoDBpublic MongoStatementDsl d(String printableValue)
MongoStatementDsld in interface MongoStatementDslprintableValue - the value that is going to be inserted, as
it would be printed as string.
This means that 5 is represented with "5",
whereas "5" with "'5'"public MongoSequenceDsl and()
MongoStatementDsland in interface MongoStatementDslpublic List<MongoInsertionDto> dtos()
MongoStatementDsldtos in interface MongoStatementDslCopyright © 2016–2025. All rights reserved.