Skip to content

SQL Parameters

xcesco edited this page Dec 24, 2018 · 3 revisions

Have a look to the following query definition:

// select student#name by id
@BindSqlSelect(jql="select name from CollegeStudent where id=:uid")
Student getStudent(int uid);

// select student#name by id
@BindSqlSelect(where="id=:uid")
Student getStudentById(int uid);

As you can notice, methods have a parameter named uid. This parameter is referred into the query by :uid placeholder. This can be done with all kind of query.

You can also use the format ${uid} or :{uid}.

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