-
Notifications
You must be signed in to change notification settings - Fork 16
@BindSqlColumn
xcesco edited this page May 5, 2018
·
1 revision
This annotation allows customizing binding from Java bean's field to SQLite table's columns.
- columnType: specify if column is a PRIMARY_KEY, UNIQUE, or STANDARD. The default value is STANDARD.
-
enabled: if
false
means that associated field is not bonded to SQLite database table. The default value istrue
. - parentEntity: link to entity/class linked by this field if it is a foreign key. It can be used only on long/Long column type.
-
nullable: if
true
, column can be set tonull
. The default value istrue
. - onDelete: Action to take on foreign key constraint during a DELETE operation. It's used only if foreignKey is defined.
- onUpdate: Action to take on foreign key constraint during an UPDATE operation. It's used only if foreignKey is defined.
- value: name of the column. If not present, the column name is the field name. It must be specified in java style naming conventions.
Just an example:
@BindType
public class User {
@BindColumn(columnType=ColumnType.PRIMARY_KEY)
public long id;
@Bind(enabled=false)
public int index;
@BindColumn("picture")
public String pictureUrl;
}
- 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