public final class SearchMappingBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
SearchMappingBuilder |
addEntityType(Class<?> type)
Register a type as an entity type with the default name, its simple class name.
|
SearchMappingBuilder |
addEntityType(Class<?> type,
String entityName)
Register a type as an entity type with the given name.
|
SearchMappingBuilder |
addEntityTypes(Set<Class<?>> types) |
AnnotationMappingConfigurationContext |
annotationMapping() |
CloseableSearchMapping |
build() |
ContainerExtractorConfigurationContext |
containerExtractors() |
ProgrammaticMappingConfigurationContext |
programmaticMapping() |
SearchMappingBuilder |
setAnnotatedTypeDiscoveryEnabled(boolean annotatedTypeDiscoveryEnabled) |
SearchMappingBuilder |
setImplicitProvidedId(boolean multiTenancyEnabled) |
SearchMappingBuilder |
setMultiTenancyEnabled(boolean multiTenancyEnabled) |
SearchMappingBuilder |
setProperties(Map<String,Object> map) |
SearchMappingBuilder |
setProperty(String name,
Object value) |
public ProgrammaticMappingConfigurationContext programmaticMapping()
public AnnotationMappingConfigurationContext annotationMapping()
public ContainerExtractorConfigurationContext containerExtractors()
public SearchMappingBuilder addEntityType(Class<?> type)
type - The type to be considered as an entity type, i.e. a type that may be indexed
and whose instances be added/updated/deleted through the indexing plan.this, for call chaining.public SearchMappingBuilder addEntityType(Class<?> type, String entityName)
type - The type to be considered as an entity type, i.e. a type that may be indexed
and whose instances be added/updated/deleted through the indexing plan.entityName - The name of the entity.this, for call chaining.public SearchMappingBuilder addEntityTypes(Set<Class<?>> types)
types - The types to be considered as entity types, i.e. types that may be indexed
and whose instances be added/updated/deleted through the indexing plan.this, for call chaining.public SearchMappingBuilder setMultiTenancyEnabled(boolean multiTenancyEnabled)
public SearchMappingBuilder setImplicitProvidedId(boolean multiTenancyEnabled)
public SearchMappingBuilder setAnnotatedTypeDiscoveryEnabled(boolean annotatedTypeDiscoveryEnabled)
public SearchMappingBuilder setProperty(String name, Object value)
public SearchMappingBuilder setProperties(Map<String,Object> map)
public CloseableSearchMapping build()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.