use of com.orm.androrm.Where in project androrm by androrm.
the class WhereTest method testHasConstraint.
public void testHasConstraint() {
Where where = new Where();
where.and("foo", "bar").or("bar", "baz");
assertTrue(where.hasConstraint("foo"));
assertTrue(where.hasConstraint("bar"));
}
use of com.orm.androrm.Where in project androrm by androrm.
the class DeleteStatementTest method setUp.
@Override
public void setUp() {
Where where = new Where();
where.setStatement(new Statement("foo", "bar"));
mDelete = new DeleteStatement();
mDelete.from("table").where(where);
}
use of com.orm.androrm.Where in project androrm by androrm.
the class SelectStatementTest method testWhere.
public void testWhere() {
Where where = new Where();
where.setStatement(new Statement("foo", "bar"));
mSelect.where(where);
assertEquals("SELECT * FROM `table` WHERE foo = 'bar'", mSelect.toString());
}
Aggregations