-
Notifications
You must be signed in to change notification settings - Fork 16
JQL
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
- Introduction
- Goals & Features
- Kotlin
- Immutable or Mutable Pojo
- Annotation Processor Args
- Credits
- Articles
- Benchmarks
- Setup
- Tutorial
- Usage
- Dependencies and inspirations
- Stackoverflow
- Documentation
- SQL logging
- Data source options
- Indices
- SQL Type adapter
- Global SQL Type adapter
- Constraints
- Live data: welcome Architectural components!!
- Paged Live data
- Dynamic parts
- Transactional and batch operations
- Async Transactional and batch operations
- Global transaction
- Support for immutable POJO
- Generate Content provider
- Generate Database schema generation
- Database migration
- BindSqlColumn
- BindContentProvider
- BindContentProviderEntry
- BindContentProviderPath
- BindDao
- BindDaoMany2Many
- BindDataSource
- BindDataSourceOptions
- BindDataSourceUpdateTask
- BindIndex
- BindSqlRelation
- BindSqlAdapter
- BindSqlChildSelect
- BindSqlDelete
- BindSqlDynamicOrderBy
- BindSqlDynamicWhere
- BindSqlDynamicWhereParams
- BindSqlInsert
- BindSqlPageSize
- BindSqlParam
- BindSqlSelect
- BindSqlUpdate
- BindSqlType
- BindSqlTransaction