Package com.inmobi.media.storage.db
Class InMobiSQLiteOpenHelper
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class InMobiSQLiteOpenHelper extends SQLiteOpenHelper
This class is responsible for handling the SQLiteOpenHelper instance.
-
-
Constructor Summary
Constructors Constructor Description InMobiSQLiteOpenHelper(DatabaseConfig databaseConfig)
-
Method Summary
Modifier and Type Method Description UnitonCreate(SQLiteDatabase db)Creates the database tables based on the provided table information in the configuration. UnitonUpgrade(SQLiteDatabase db, Integer oldVersion, Integer newVersion)StringgetDatabaseName()UnitonConfigure(SQLiteDatabase db)-
Methods inherited from class android.database.sqlite.SQLiteOpenHelper
close, getReadableDatabase, getWritableDatabase, onDowngrade, onOpen, setIdleConnectionTimeout, setLookasideConfig, setOpenParams, setWriteAheadLoggingEnabled -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
InMobiSQLiteOpenHelper
InMobiSQLiteOpenHelper(DatabaseConfig databaseConfig)
-
-
Method Detail
-
onCreate
Unit onCreate(SQLiteDatabase db)
Creates the database tables based on the provided table information in the configuration.
- Parameters:
db- The SQLite database.
-
onUpgrade
Unit onUpgrade(SQLiteDatabase db, Integer oldVersion, Integer newVersion)
-
getDatabaseName
String getDatabaseName()
- Returns:
The name of the database.
-
onConfigure
Unit onConfigure(SQLiteDatabase db)
-
-
-
-