Package | Description |
---|---|
org.springframework.data.mongodb.core |
MongoDB core support.
|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
org.springframework.data.mongodb.core.convert |
Spring Data MongoDB specific converter infrastructure.
|
org.springframework.data.mongodb.core.index |
Support for MongoDB document indexing.
|
org.springframework.data.mongodb.core.mapping |
Infrastructure for the MongoDB document-to-object mapping subsystem.
|
org.springframework.data.mongodb.repository.query |
Query derivation mechanism for MongoDB specific repositories.
|
Modifier and Type | Method and Description |
---|---|
MongoPersistentProperty |
MongoJsonSchemaCreator.JsonSchemaPropertyContext.getProperty()
The current property.
|
Modifier and Type | Method and Description |
---|---|
<T> MongoPersistentEntity<T> |
MongoJsonSchemaCreator.JsonSchemaPropertyContext.resolveEntity(MongoPersistentProperty property)
Obtain the
MongoPersistentEntity for a given property. |
Constructor and Description |
---|
RelaxedTypeBasedAggregationOperationContext(Class<?> type,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext,
QueryMapper mapper)
Creates a new
TypeBasedAggregationOperationContext for the given type, MappingContext and
QueryMapper . |
TypeBasedAggregationOperationContext(Class<?> type,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext,
QueryMapper mapper)
Creates a new
TypeBasedAggregationOperationContext for the given type, MappingContext and
QueryMapper . |
Modifier and Type | Field and Description |
---|---|
protected MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> |
MappingMongoConverter.mappingContext |
Modifier and Type | Method and Description |
---|---|
MongoPersistentProperty |
QueryMapper.Field.getProperty()
Returns the underlying
MongoPersistentProperty backing the field. |
MongoPersistentProperty |
QueryMapper.MetadataBackedField.getProperty() |
MongoPersistentProperty |
MongoConversionContext.getProperty() |
Modifier and Type | Method and Description |
---|---|
String |
QueryMapper.AssociationConverter.convert(MongoPersistentProperty source) |
protected Object |
QueryMapper.convertAssociation(Object source,
MongoPersistentProperty property)
Converts the given source assuming it's actually an association to another object.
|
protected List<Object> |
MappingMongoConverter.createCollection(Collection<?> collection,
MongoPersistentProperty property)
Writes the given
Collection using the given MongoPersistentProperty information. |
protected com.mongodb.DBRef |
MappingMongoConverter.createDBRef(Object target,
MongoPersistentProperty property) |
protected org.bson.conversions.Bson |
MappingMongoConverter.createMap(Map<Object,Object> map,
MongoPersistentProperty property)
Writes the given
Map using the given MongoPersistentProperty information. |
protected boolean |
DefaultReferenceResolver.isLazyReference(MongoPersistentProperty property)
Check if the association expressed by the given
property should be resolved lazily. |
Object |
DbRefProxyHandler.populateId(MongoPersistentProperty property,
com.mongodb.DBRef source,
Object proxy) |
Object |
ReferenceLookupDelegate.readReference(MongoPersistentProperty property,
Object source,
org.springframework.data.mongodb.core.convert.ReferenceLookupDelegate.LookupFunction lookupFunction,
ReferenceResolver.MongoEntityReader entityReader)
Read the reference expressed by the given property.
|
Object |
DbRefResolverCallback.resolve(MongoPersistentProperty property)
Resolve the final object for the given
MongoPersistentProperty . |
Object |
DbRefResolver.resolveDbRef(MongoPersistentProperty property,
com.mongodb.DBRef dbref,
DbRefResolverCallback callback,
DbRefProxyHandler proxyHandler)
Resolves the given
DBRef into an object of the given MongoPersistentProperty 's type. |
Object |
DefaultDbRefResolver.resolveDbRef(MongoPersistentProperty property,
com.mongodb.DBRef dbref,
DbRefResolverCallback callback,
DbRefProxyHandler handler) |
Object |
NoOpDbRefResolver.resolveDbRef(MongoPersistentProperty property,
com.mongodb.DBRef dbref,
DbRefResolverCallback callback,
DbRefProxyHandler proxyHandler) |
Object |
DefaultReferenceResolver.resolveReference(MongoPersistentProperty property,
Object source,
ReferenceLookupDelegate referenceLookupDelegate,
ReferenceResolver.MongoEntityReader entityReader) |
Object |
NoOpDbRefResolver.resolveReference(MongoPersistentProperty property,
Object source,
ReferenceLookupDelegate referenceLookupDelegate,
ReferenceResolver.MongoEntityReader entityReader) |
Object |
ReferenceResolver.resolveReference(MongoPersistentProperty property,
Object source,
ReferenceLookupDelegate referenceLookupDelegate,
ReferenceResolver.MongoEntityReader entityReader)
Resolve the association defined via the given property from a given source value.
|
com.mongodb.DBRef |
MappingMongoConverter.toDBRef(Object object,
MongoPersistentProperty referringProperty) |
com.mongodb.DBRef |
MongoWriter.toDBRef(Object object,
MongoPersistentProperty referingProperty)
Creates a
DBRef to refer to the given object. |
DocumentPointer |
MappingMongoConverter.toDocumentPointer(Object source,
MongoPersistentProperty referringProperty) |
default DocumentPointer<?> |
MongoWriter.toDocumentPointer(Object source,
MongoPersistentProperty referringProperty)
Creates a the
DocumentPointer representing the link to another entity. |
protected void |
MappingMongoConverter.writePropertyInternal(Object obj,
org.springframework.data.mongodb.core.convert.DocumentAccessor accessor,
MongoPersistentProperty prop) |
Modifier and Type | Method and Description |
---|---|
MongoCustomConversions.MongoConverterConfigurationAdapter |
MongoCustomConversions.MongoConverterConfigurationAdapter.configurePropertyConversions(Consumer<PropertyValueConverterRegistrar<MongoPersistentProperty>> configurationAdapter)
Gateway to register property specific converters.
|
protected QueryMapper.Field |
QueryMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
protected QueryMapper.Field |
UpdateMapper.createPropertyField(MongoPersistentEntity<?> entity,
String key,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext) |
Constructor and Description |
---|
MetadataBackedField(String name,
MongoPersistentEntity<?> entity,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> context,
MongoPersistentProperty property)
Creates a new
QueryMapper.MetadataBackedField with the given name, MongoPersistentEntity and
MappingContext with the given MongoPersistentProperty . |
MongoConversionContext(MongoPersistentProperty persistentProperty,
MongoConverter mongoConverter) |
Modifier and Type | Method and Description |
---|---|
static IndexResolver |
IndexResolver.create(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
IndexResolver given MongoMappingContext . |
Constructor and Description |
---|
MongoPersistentEntityIndexResolver(MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Create new
MongoPersistentEntityIndexResolver . |
Modifier and Type | Class and Description |
---|---|
class |
BasicMongoPersistentProperty
MongoDB specific
PersistentProperty implementation. |
class |
CachingMongoPersistentProperty
|
Modifier and Type | Method and Description |
---|---|
MongoPersistentProperty |
MongoMappingContext.createPersistentProperty(Property property,
MongoPersistentEntity<?> owner,
SimpleTypeHolder simpleTypeHolder) |
MongoPersistentProperty |
BasicMongoPersistentEntity.getTextScoreProperty() |
MongoPersistentProperty |
MongoPersistentEntity.getTextScoreProperty()
Returns the property holding text score value.
|
protected MongoPersistentProperty |
BasicMongoPersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull(MongoPersistentProperty property)
As a general note: An implicit id property has a name that matches "id" or "_id".
|
MongoPersistentProperty |
PersistentPropertyTranslator.translate(MongoPersistentProperty property)
Translate a
MongoPersistentProperty into a corresponding property from a different
MongoPersistentEntity . |
Modifier and Type | Method and Description |
---|---|
protected Association<MongoPersistentProperty> |
BasicMongoPersistentProperty.createAssociation() |
Modifier and Type | Method and Description |
---|---|
String |
MongoPersistentProperty.PropertyToFieldNameConverter.convert(MongoPersistentProperty source) |
MongoPersistentEntity<?> |
MongoMappingContext.getPersistentEntity(MongoPersistentProperty persistentProperty) |
protected MongoPersistentProperty |
BasicMongoPersistentEntity.returnPropertyIfBetterIdPropertyCandidateOrNull(MongoPersistentProperty property)
As a general note: An implicit id property has a name that matches "id" or "_id".
|
MongoPersistentProperty |
PersistentPropertyTranslator.translate(MongoPersistentProperty property)
Translate a
MongoPersistentProperty into a corresponding property from a different
MongoPersistentEntity . |
Modifier and Type | Method and Description |
---|---|
static PersistentPropertyTranslator |
PersistentPropertyTranslator.create(MongoPersistentEntity<?> targetEntity,
Predicate<MongoPersistentProperty> translationFilter)
Create a new
PersistentPropertyTranslator accepting a filter predicate whether the
translation should happen at all. |
Modifier and Type | Method and Description |
---|---|
Object |
ConvertingParameterAccessor.PotentiallyConvertingIterator.nextConverted(MongoPersistentProperty property)
Returns the next element which has already been converted.
|
Constructor and Description |
---|
MongoQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory projectionFactory,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
MongoQueryMethod from the given Method . |
ReactiveMongoQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory projectionFactory,
MappingContext<? extends MongoPersistentEntity<?>,MongoPersistentProperty> mappingContext)
Creates a new
ReactiveMongoQueryMethod from the given Method . |
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.