Class EntityOperations
java.lang.Object
org.springframework.data.elasticsearch.core.EntityOperations
Common operations performed on an entity in the context of it's mapping metadata.
- Since:
- 3.2
- Author:
- Mark Paluch, Christoph Strobl, Peter-Josef Meisch, Roman Puchkovskiy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInformation and commands on an entity. -
Constructor Summary
ConstructorsConstructorDescriptionEntityOperations(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> context) -
Method Summary
Modifier and TypeMethodDescriptionforEntity(T entity, ConversionService conversionService, RoutingResolver routingResolver) Creates a newEntityOperations.AdaptableEntityfor the given bean andConversionServiceandRoutingResolver.
-
Constructor Details
-
EntityOperations
public EntityOperations(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> context)
-
-
Method Details
-
forEntity
public <T> EntityOperations.AdaptableEntity<T> forEntity(T entity, ConversionService conversionService, RoutingResolver routingResolver) Creates a newEntityOperations.AdaptableEntityfor the given bean andConversionServiceandRoutingResolver.- Parameters:
entity- must not be null.conversionService- must not be null.routingResolver- theRoutingResolver, must not be null- Returns:
- the
EntityOperations.AdaptableEntity
-