@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 {value() attribute, will be used the associated BindDao definition.
| Modifier and Type | Required Element and Description |
|---|---|
String |
fileName
Name of database file
|
Class<?>[] |
value
DAOs to include in the database schema
|
| 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<?>[] value
public abstract String fileName
public abstract int version
public abstract boolean log
public abstract String tableNamePrefix
public abstract boolean asyncTask
public abstract boolean cursor
Copyright © 2016. All rights reserved.