| Package | Description |
|---|---|
| com.holonplatform.datastore.mongo.core.document | |
| com.holonplatform.datastore.mongo.core.expression |
| Modifier and Type | Method and Description |
|---|---|
static <T> DocumentConverter<T> |
DocumentConverter.bean(com.holonplatform.core.beans.BeanPropertySet<T> beanPropertySet)
Create a new
DocumentConverter to convert documents into Java Bean instances. |
static <T> DocumentConverter<T> |
DocumentConverter.bean(Class<T> beanClass)
Create a new
DocumentConverter to convert documents into Java Bean instances. |
static <R> DocumentConverter<R> |
DocumentConverter.create(Class<R> type,
BiFunction<MongoResolutionContext<?>,org.bson.Document,R> converter)
Create a new
DocumentConverter. |
static <T> DocumentConverter<T> |
DocumentConverter.expression(com.holonplatform.core.TypedExpression<T> expression,
String selection)
Create a new
DocumentConverter to convert a document field using given expression. |
static DocumentConverter<org.bson.Document> |
DocumentConverter.identity()
Get a
DocumentConverter which simply returns the document instance, without performing any conversion
operation. |
static <P extends com.holonplatform.core.property.Property> |
DocumentConverter.propertyBox(Iterable<P> properties)
Create a new
DocumentConverter to convert documents into PropertyBox instances using given
property set. |
static <P extends com.holonplatform.core.property.Property> |
DocumentConverter.propertyBox(P... properties)
Create a new
DocumentConverter to convert documents into PropertyBox instances using given
property set. |
static <T> DocumentConverter<T> |
DocumentConverter.value(Class<T> valueType,
String selection)
Create a new
DocumentConverter to return a document field without performing any conversion. |
| Modifier and Type | Method and Description |
|---|---|
Optional<DocumentConverter<R>> |
BsonProjection.getConverter()
Get the projection
DocumentConverter. |
| Modifier and Type | Method and Description |
|---|---|
BsonProjection.Builder<R> |
BsonProjection.Builder.converter(DocumentConverter<R> converter)
Set the document results converter.
|
Copyright © 2019 The Holon Platform. All rights reserved.