Class SearchMappingBuilder

java.lang.Object
org.infinispan.search.mapper.mapping.SearchMappingBuilder

public final class SearchMappingBuilder extends Object
  • Method Details

    • introspector

      public static InfinispanBootstrapIntrospector introspector(MethodHandles.Lookup lookup)
    • programmaticMapping

      public org.hibernate.search.mapper.pojo.mapping.definition.programmatic.ProgrammaticMappingConfigurationContext programmaticMapping()
    • addEntityType

      public SearchMappingBuilder addEntityType(Class<?> type)
      Register a type as an entity type with the default name, its class name.
      Parameters:
      type - The type to be considered as an entity type.
      Returns:
      this, for call chaining.
    • addEntityType

      public SearchMappingBuilder addEntityType(Class<?> type, String entityName)
      Register a type as an entity type with the given name.
      Parameters:
      type - The type to be considered as an entity type.
      entityName - The name of the entity.
      Returns:
      this, for call chaining.
    • addEntityTypes

      public SearchMappingBuilder addEntityTypes(Set<Class<?>> types)
      Parameters:
      types - The types to be considered as entity types.
      Returns:
      this, for call chaining.
    • setProvidedIdentifierBridge

      public SearchMappingBuilder setProvidedIdentifierBridge(org.hibernate.search.engine.environment.bean.BeanReference<? extends org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>> providedIdentifierBridge)
    • setEntityLoader

      public SearchMappingBuilder setEntityLoader(org.hibernate.search.mapper.pojo.loading.spi.PojoSelectionEntityLoader<?> entityLoader)
    • setEntityConverter

      public SearchMappingBuilder setEntityConverter(EntityConverter entityConverter)
    • setProperty

      public SearchMappingBuilder setProperty(String name, Object value)
    • setProperties

      public SearchMappingBuilder setProperties(Map<String,Object> map)
    • build

      public SearchMapping build(Optional<org.hibernate.search.engine.common.spi.SearchIntegration> previousIntegration)