| Package | Description |
|---|---|
| com.holonplatform.datastore.mongo.core.context | |
| com.holonplatform.datastore.mongo.core.document | |
| com.holonplatform.datastore.mongo.core.resolver |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MongoDocumentContext<S extends com.mongodb.session.ClientSession>
A
MongoResolutionContext which is bound to a document resolution operation. |
| Modifier and Type | Method and Description |
|---|---|
MongoResolutionContext<S> |
MongoResolutionContext.childContext()
Create a new
MongoResolutionContext as child of this context. |
MongoResolutionContext<S> |
MongoResolutionContext.childContextForUpdate()
Create a new
MongoResolutionContext as child of this context for update type operations. |
MongoResolutionContext<S> |
MongoResolutionContext.childContextForUpdate(com.holonplatform.core.Path<?> updatePath)
Create a new
MongoResolutionContext as child of this context for update type operations. |
static <S extends com.mongodb.session.ClientSession> |
MongoResolutionContext.create(MongoContext<S> context)
Create a new default
MongoResolutionContext. |
static <S extends com.mongodb.session.ClientSession> |
MongoResolutionContext.createForUpdate(MongoContext<S> context)
Create a new default
MongoResolutionContext for an update type operation. |
static <S extends com.mongodb.session.ClientSession> |
MongoResolutionContext.createForUpdate(MongoContext<S> context,
com.holonplatform.core.Path<?> updatePath)
Create a new default
MongoResolutionContext for an update type operation, specifying the Path to
which the update operation refers. |
| Modifier and Type | Method and Description |
|---|---|
Optional<MongoResolutionContext<S>> |
MongoResolutionContext.getParent()
Get the parent context, if available.
|
static Optional<MongoResolutionContext<?>> |
MongoResolutionContext.isMongoResolutionContext(com.holonplatform.core.ExpressionResolver.ResolutionContext context)
Checks if given
ExpressionResolver.ResolutionContext is a MongoResolutionContext. |
| Modifier and Type | Method and Description |
|---|---|
R |
DocumentConverter.convert(MongoResolutionContext<?> context,
org.bson.Document document)
Convert a
Document into expected result type. |
| Modifier and Type | Method and Description |
|---|---|
static <R> DocumentConverter<R> |
DocumentConverter.create(Class<R> type,
BiFunction<MongoResolutionContext<?>,org.bson.Document,R> converter)
Create a new
DocumentConverter. |
| Modifier and Type | Method and Description |
|---|---|
Optional<R> |
MongoExpressionResolver.resolve(E expression,
MongoResolutionContext<?> context)
Resolve given
expression into required expression type. |
Copyright © 2019 The Holon Platform. All rights reserved.