public class FtsOpenHelper extends Object
| Constructor and Description |
|---|
FtsOpenHelper(android.content.Context context,
android.database.sqlite.SQLiteOpenHelper databaseOpenHelper)
Create an FtsOpenHelper object
|
| Modifier and Type | Method and Description |
|---|---|
android.database.sqlite.SQLiteDatabase |
getReadableDatabase()
Get database to be searched - readable only for load operation
|
android.database.sqlite.SQLiteDatabase |
getReadableDictionaryDatabase()
Create and/or open a dictionary database.
|
android.database.sqlite.SQLiteDatabase |
getWritableDictionaryDatabase()
Create and/or open dictionary database that will be used for reading and writing.
|
public FtsOpenHelper(android.content.Context context,
android.database.sqlite.SQLiteOpenHelper databaseOpenHelper)
databaseOpenHelper - Open helper for the database being searchedpublic android.database.sqlite.SQLiteDatabase getWritableDictionaryDatabase()
SQLiteOpenHelper.onCreate(android.database.sqlite.SQLiteDatabase), SQLiteOpenHelper.onUpgrade(android.database.sqlite.SQLiteDatabase, int, int) and/or SQLiteOpenHelper.onOpen(android.database.sqlite.SQLiteDatabase) will be
called.
Once opened successfully, the database is cached, so you can call this method every time you need to write to the database. Errors such as bad permissions or a full disk may cause this method to fail, but future attempts may succeed if the problem is fixed.
SQLiteClosable.close() is calledandroid.database.sqlite.SQLiteException - if the database cannot be opened for writingpublic android.database.sqlite.SQLiteDatabase getReadableDictionaryDatabase()
SQLiteOpenHelper.getWritableDatabase()
or SQLiteClosable.close() is called.android.database.sqlite.SQLiteException - if the database cannot be openedpublic android.database.sqlite.SQLiteDatabase getReadableDatabase()
This documentation is licensed by Andrew Bowley under the GPLv3 License.