Skip to content
xcesco edited this page May 22, 2019 · 2 revisions

JQL is Java Query Language. It allows defining a SQL query, using class and field name instead of table and columns name. Kripton annotation processor parses JQL at compile time and after a syntax validation, translate JQL in the equivalent SQL code.

Suppose we have the following POJO and DAO definition (DataSource definition is omitted because it is not useful).

@BindSqlTable("ws_person")
public class Person {
  public String nameAndSurname;
}

@BindSqlDao(Person.class)
public interface DaoPerson {
   @BindSqlSelect(jql="select nameAndSurname from Person")
   List<Person> selectListPerson();
}

The attribute jql contains select nameAndSurname from Person. This is the JQL code: a SQL language that use class and field name instead of SQLite associated table and fields. Kripton will translate this JQL statement in SQL statement:

select name_and_surname from ws_person

Table of Contents

Query definition

Features

Relations

Multithread supports

Modularization

Annotations for data convertion

Annotations for SQLite ORM

Annotations for shared preferences

Clone this wiki locally