public class PersistentPropertyTranslator extends Object
MongoPersistentProperty into a corresponding property from a different
MongoPersistentEntity by looking it up by name.
Mainly used within the framework.
| Constructor and Description |
|---|
PersistentPropertyTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static PersistentPropertyTranslator |
create(MongoPersistentEntity<?> targetEntity)
Create a new
PersistentPropertyTranslator. |
static PersistentPropertyTranslator |
create(MongoPersistentEntity<?> targetEntity,
Predicate<MongoPersistentProperty> translationFilter)
Create a new
PersistentPropertyTranslator accepting a filter predicate whether the
translation should happen at all. |
MongoPersistentProperty |
translate(MongoPersistentProperty property)
Translate a
MongoPersistentProperty into a corresponding property from a different
MongoPersistentEntity. |
public MongoPersistentProperty translate(MongoPersistentProperty property)
MongoPersistentProperty into a corresponding property from a different
MongoPersistentEntity.property - must not be null.property.public static PersistentPropertyTranslator create(@Nullable MongoPersistentEntity<?> targetEntity)
PersistentPropertyTranslator.targetEntity - must not be null.public static PersistentPropertyTranslator create(@Nullable MongoPersistentEntity<?> targetEntity, Predicate<MongoPersistentProperty> translationFilter)
PersistentPropertyTranslator accepting a filter predicate whether the
translation should happen at all.targetEntity - must not be null.translationFilter - must not be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.