-
Notifications
You must be signed in to change notification settings - Fork 16
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}
.
- 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