Package com.pardot.rhombus.cobject.statement

Examples of com.pardot.rhombus.cobject.statement.CQLStatement


    for(CQLStatement s: insertStatements){
      om.getCqlExecutor().executeSync(s);
    }

    //manually record those incorrect values in the update table
    CQLStatement cql = om.getCqlGenerator_ONLY_FOR_TESTING().makeInsertUpdateIndexStatement(
        keyspace,
        def1,
        key, def1.makeIndexValues(testObject));
    om.getCqlExecutor().executeSync(cql);
View Full Code Here


  private static final String[] values = {"value1", "value2"};
  private static final String[] values2 = {"value1", "value2", "value3"};
  private static final String objectName = "object";

  public void testMake() {
    CQLStatement statement = CQLStatement.make(query, objectName);
    assertEquals(query, statement.getQuery());
    assertEquals(objectName, statement.getObjectName());
    assertNull(statement.getValues());
  }
View Full Code Here

    assertEquals(objectName, statement.getObjectName());
    assertNull(statement.getValues());
  }

  public void testMakeWithValues() {
    CQLStatement statement = CQLStatement.make(query, objectName, values);
    assertEquals(query, statement.getQuery());
    assertEquals(objectName, statement.getObjectName());
    assertEquals(values, statement.getValues());
  }
View Full Code Here

    assertEquals(objectName, statement.getObjectName());
    assertEquals(values, statement.getValues());
  }

  public void testSetGetQuery() {
    CQLStatement statement = CQLStatement.make(null, null);
    statement.setQuery(query);
    assertEquals(statement.getQuery(), query);
  }
View Full Code Here

    statement.setQuery(query);
    assertEquals(statement.getQuery(), query);
  }

  public void testSetGetValues() {
    CQLStatement statement = CQLStatement.make(null, null);
    statement.setValues(values);
    assertEquals(statement.getValues(), values);
  }
View Full Code Here

    statement.setValues(values);
    assertEquals(statement.getValues(), values);
  }

  public void testIsPreparableFalse() {
    CQLStatement statement = CQLStatement.make(query, null);
    assertFalse(statement.isPreparable());
  }
View Full Code Here

    CQLStatement statement = CQLStatement.make(query, null);
    assertFalse(statement.isPreparable());
  }

  public void testIsPreparableTrue() {
    CQLStatement statement = CQLStatement.make(query, objectName, values);
    assertTrue(statement.isPreparable());
  }
View Full Code Here

    CQLStatement statement = CQLStatement.make(query, objectName, values);
    assertTrue(statement.isPreparable());
  }

  public void testCompareToEquals() {
    CQLStatement statement1 = CQLStatement.make(query, objectName);
    CQLStatement statement2 = CQLStatement.make(query, objectName);
    assertEquals(0, statement1.compareTo(statement2));
  }
View Full Code Here

    CQLStatement statement2 = CQLStatement.make(query, objectName);
    assertEquals(0, statement1.compareTo(statement2));
  }

  public void testCompareToLess() {
    CQLStatement statement1 = CQLStatement.make(query, objectName, values);
    CQLStatement statement2 = CQLStatement.make(query, objectName, values2);
    assertEquals(-1, statement1.compareTo(statement2));
  }
View Full Code Here

    CQLStatement statement2 = CQLStatement.make(query, objectName, values2);
    assertEquals(-1, statement1.compareTo(statement2));
  }

  public void testCompareToGreater() {
    CQLStatement statement1 = CQLStatement.make(query, objectName);
    CQLStatement statement2 = CQLStatement.make(query2, objectName);
    assertEquals(1, statement1.compareTo(statement2));
  }
View Full Code Here

TOP

Related Classes of com.pardot.rhombus.cobject.statement.CQLStatement

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.