public class SimpleOpenHelperCallbacks extends OpenHelperCallbacksImpl
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_SIMPLE_DATA
Named query to find all SimpleData objects
|
| Constructor and Description |
|---|
SimpleOpenHelperCallbacks() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCreate(com.j256.ormlite.support.ConnectionSource connectionSource)
What to do when your database needs to be created.
|
void |
onUpgrade(com.j256.ormlite.support.ConnectionSource connectionSource,
int oldVersion,
int newVersion)
What to do when your database needs to be updated.
|
public static final String ALL_SIMPLE_DATA
public void onCreate(com.j256.ormlite.support.ConnectionSource connectionSource)
NOTE: You should use the connectionSource argument that is passed into this method call or the one returned by getConnectionSource(). If you use your own, a recursive call or other unexpected results may result.
onCreate in interface OpenHelperCallbacksonCreate in class OpenHelperCallbacksImplconnectionSource - To use get connections to the database to be created.public void onUpgrade(com.j256.ormlite.support.ConnectionSource connectionSource,
int oldVersion,
int newVersion)
NOTE: You should use the connectionSource argument that is passed into this method call or the one returned by getConnectionSource(). If you use your own, a recursive call or other unexpected results may result.
onUpgrade in interface OpenHelperCallbacksonUpgrade in class OpenHelperCallbacksImplconnectionSource - To use get connections to the database to be updated.oldVersion - The version of the current database so we can know what to do to the database.newVersion - The version that we are upgrading the database to.This documentation is licensed by Andrew Bowley under the GPLv3 License.