@Retention(value=RUNTIME) @Target(value=TYPE) public @interface BindDataSource
Decorate an database schema definition interface. This definition is needed to generate a AbstractDataSource instance.
For every managed entity referred in {dao() attribute, will be used the associated BindDao definition.
| Modifier and Type | Required Element and Description |
|---|---|
Class<?>[] |
dao
DAOs to include in the database schema
|
String |
fileName
Name of database file
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
asyncTask
if true, generate async task
|
boolean |
cursor
if true, generate cursor wrapper
|
boolean |
log
if true, generate log info
|
String |
tableNamePrefix
TODO
options.tablePrefix("TD_");
|
int |
version
Database version
|
public abstract Class<?>[] dao
public abstract String fileName
public abstract boolean log
public abstract String tableNamePrefix
Copyright © 2017. All rights reserved.