public class DatabaseTableConfigUtil extends Object
DatabaseField
annotation more efficient. In
current (as of 11/2011) versions of Android, Annotations are ghastly slow. This uses reflection on the Android
classes to work around this issue. Gross and a hack but a significant (~20x) performance improvement.
Thanks much go to Josh Guilfoyle for the idea and the code framework to make this happen.
Modifier and Type | Field and Description |
---|---|
static String |
DISABLE_ANNOTATION_HACK_SYSTEM_PROPERTY
Set this system property to any value to disable the annotations hack which seems to cause problems on certain
operating systems.
|
Constructor and Description |
---|
DatabaseTableConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> com.j256.ormlite.table.DatabaseTableConfig<T> |
fromClass(com.j256.ormlite.support.ConnectionSource connectionSource,
Class<T> clazz)
Build our list table config from a class using some annotation fu around.
|
static int |
getWorkedC()
Return the number of fields configured using our reflection hack.
|
public static final String DISABLE_ANNOTATION_HACK_SYSTEM_PROPERTY
public static <T> com.j256.ormlite.table.DatabaseTableConfig<T> fromClass(com.j256.ormlite.support.ConnectionSource connectionSource, Class<T> clazz) throws SQLException
SQLException
public static int getWorkedC()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.