Package org.springframework.data.cassandra.convert

Examples of org.springframework.data.cassandra.convert.MappingCassandraConverter


  /**
   * Return the {@link CassandraConverter} instance to convert Rows to Objects, Objects to BuiltStatements
   */
  @Bean
  public CassandraConverter cassandraConverter() throws Exception {
    return new MappingCassandraConverter(cassandraMapping());
  }
View Full Code Here


  @Produces
  public CassandraOperations createCassandraOperations() throws Exception {
    String keySpace = AbstractEmbeddedCassandraIntegrationTest.randomKeyspaceName();

    MappingCassandraConverter cassandraConverter = new MappingCassandraConverter();
    CassandraAdminTemplate cassandraTemplate = new CassandraAdminTemplate(AbstractEmbeddedCassandraIntegrationTest
        .cluster().connect(), cassandraConverter);

    CreateKeyspaceSpecification createKeyspaceSpecification = new CreateKeyspaceSpecification(keySpace).ifNotExists();
    cassandraTemplate.execute(createKeyspaceSpecification);
View Full Code Here

   * Default Constructor for wiring in the required components later
   */
  public CassandraTemplate() {}

  public CassandraTemplate(Session session) {
    this(session, new MappingCassandraConverter());
  }
View Full Code Here

  @Before
  public void setUp() {

    when(operations.getConverter()).thenReturn(converter);

    this.converter = new MappingCassandraConverter(new BasicCassandraMappingContext());
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.cassandra.convert.MappingCassandraConverter

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.