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