Package org.springframework.data.solr.core.mapping

Examples of org.springframework.data.solr.core.mapping.SimpleSolrMappingContext


public class SolrJConverter extends SolrConverterBase implements SolrConverter {

  private final MappingContext<? extends SolrPersistentEntity<?>, SolrPersistentProperty> mappingContext;

  public SolrJConverter() {
    this.mappingContext = new SimpleSolrMappingContext();
    initializeConverters();
  }
View Full Code Here


  @Override
  public void afterPropertiesSet() {

    if (this.mappingContext == null) {
      this.mappingContext = new SimpleSolrMappingContext(
          new SolrPersistentEntitySchemaCreator(this.solrServerFactory).enable(this.schemaCreationFeatures));
    }

    if (this.solrConverter == null) {
      this.solrConverter = getDefaultSolrConverter();
View Full Code Here

  private QueryParser queryParser;

  @Before
  public void setUp() {
    mappingContext = new SimpleSolrMappingContext();
    queryParser = new DefaultQueryParser();
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  @Before
  public void setUp() {

    mappingContext = new SimpleSolrMappingContext();
    solrConverter = new MappingSolrConverter(mappingContext);
    entityInformationCreator = new SolrEntityInformationCreatorImpl();
    Mockito.when(persitentEntityMock.getType()).thenReturn(ProductBean.class);
    Mockito.when(solrOperationsMock.execute(Matchers.any(SolrCallback.class))).thenReturn(
        new PageImpl<ProductBean>(Collections.<ProductBean> emptyList()));
View Full Code Here

  SolrEntityInformationCreator creator;

  @Before
  public void setUp() {
    creator = new SolrEntityInformationCreatorImpl(new SimpleSolrMappingContext());
  }
View Full Code Here

  private MappingSolrConverter converter;
  private SimpleSolrMappingContext mappingContext;

  @Before
  public void setUp() {
    mappingContext = new SimpleSolrMappingContext();

    converter = new MappingSolrConverter(mappingContext);
    converter.afterPropertiesSet();
  }
View Full Code Here

  }

  @Parameters
  public static Collection<Object[]> data() {
    Object[][] data = new Object[][] { { new SolrJConverter() },
        { new MappingSolrConverter(new SimpleSolrMappingContext()) } };
    return Arrays.asList(data);
  }
View Full Code Here

  private MappingContext<SimpleSolrPersistentEntity<?>, SolrPersistentProperty> context;

  @Before
  public void setUp() {
    this.schemaResolver = new SolrSchemaResolver();
    this.context = new SimpleSolrMappingContext();
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.mapping.SimpleSolrMappingContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.