资 源 简 介
sql query and materialized views in java
What is jacle?
Jacle is a library that allows you to query java collections.
Its fluent interface is easy and intuitive and allow to write SQL like queries on java collections.
It allows you to specify conditions, sorting and grouping.
Its is possible also to specify bind variables ( String only at the moment)
With jacle can be created read only beans on the fly (materialized views)
Stable version available.
Start using queries
Simple Query
```
...
import static org.gft.jacle.Jacle.*;
...
// prepare the statement
Query query = from(Sale.class).select(distinct(on(Sale.class).getSeller().getBirthday()));
// execute with a source
List birthdays = query.execute(db.getSales());
...
Query query = from(Sale.class).select(first(on(Sale.class).getCar()));
Car car = query.execute(db.getSales());