Package org.springframework.cassandra.core

Examples of org.springframework.cassandra.core.QueryOptions


  @Test
  public void deleteAsynchronouslyTest() {

    insertTest();

    QueryOptions options = new QueryOptions();
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    /*
     * Test Single Insert with entity
     */
    Book b1 = new Book();
View Full Code Here


    select.setConsistencyLevel(ConsistencyLevel.ONE);
    List<CorrelationEntity> correlationEntities = t.select(select, CorrelationEntity.class);

    assertEquals(2, correlationEntities.size());

    QueryOptions qo = new QueryOptions();
    qo.setConsistencyLevel(org.springframework.cassandra.core.ConsistencyLevel.ONE);
    ArrayList<CorrelationEntity> entities = new ArrayList<CorrelationEntity>();
    entities.add(c1);
    entities.add(c2);
    t.delete(entities, qo);
View Full Code Here

TOP

Related Classes of org.springframework.cassandra.core.QueryOptions

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.