public interface OpenHelperCallbacks
| 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.
|
void |
setDatabaseAdmin(DatabaseAdmin databaseAdmin) |
void |
setPersistenceAdmin(PersistenceAdmin persistenceAdmin) |
void setDatabaseAdmin(DatabaseAdmin databaseAdmin)
void setPersistenceAdmin(PersistenceAdmin persistenceAdmin)
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.
connectionSource - To use get connections to the database to be created.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.
connectionSource - 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.