-
Notifications
You must be signed in to change notification settings - Fork 16
@BindDataSource
xcesco edited this page Jan 23, 2017
·
8 revisions
This annotation decorate an interface to define a datasource associated to a database schema. Between its attributes there is a DAO collection. Every DAO is defined by an interface annotated with @BindDao. Every DAO and is associated to a specific Java class which is associated to a specific table.
A data source class name have to finish with 'DataSource' suffix.
List of attributes is:
- dao: collection of DAO associated to data source.
- fileName: filename used to store database
- version: database version. Default version is 1.
- log: controls generation of log of SQL on logcat.
- tableNamePrefix: rapresents a prefix of table name.
-
asyncTask: if true, generate async task name
Bind<data source name without DataSource prefix>AsyncTask -
cursor: if true, generate a wrapped cursor for every Java class managed by data source. Cursor's name is
Bind<data source name without DataSource prefix>Cursor.
- 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