use of org.jnosql.diana.api.column.ColumnDeleteQuery in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldSelectWhereNameLt.
@Test
public void shouldSelectWhereNameLt() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Person.class).where("id").lt(10).build();
ColumnDeleteQuery queryExpected = delete().from("Person").where("_id").lt(10L).build();
assertEquals(queryExpected, query);
}
use of org.jnosql.diana.api.column.ColumnDeleteQuery in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldSelectWhereNameNot.
@Test
public void shouldSelectWhereNameNot() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Person.class).where("name").not().like("Ada").build();
ColumnDeleteQuery queryExpected = delete().from("Person").where("name").not().like("Ada").build();
assertEquals(queryExpected, query);
}
use of org.jnosql.diana.api.column.ColumnDeleteQuery in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldSelectWhereNameGt.
@Test
public void shouldSelectWhereNameGt() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Person.class).where("id").gt(10).build();
ColumnDeleteQuery queryExpected = delete().from("Person").where("_id").gt(10L).build();
assertEquals(queryExpected, query);
}
use of org.jnosql.diana.api.column.ColumnDeleteQuery in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldSelectWhereNameBetween.
@Test
public void shouldSelectWhereNameBetween() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Person.class).where("id").between(10, 20).build();
ColumnDeleteQuery queryExpected = delete().from("Person").where("_id").between(10L, 20L).build();
assertEquals(queryExpected, query);
}
use of org.jnosql.diana.api.column.ColumnDeleteQuery in project jnosql-artemis by eclipse.
the class DefaultColumnMapperDeleteBuilderTest method shouldSelectWhereNameLike.
@Test
public void shouldSelectWhereNameLike() {
ColumnDeleteQuery query = mapperBuilder.deleteFrom(Person.class).where("name").like("Ada").build();
ColumnDeleteQuery queryExpected = delete().from("Person").where("name").like("Ada").build();
assertEquals(queryExpected, query);
}
Aggregations