SQLiteDatabase.OpenParams
public
static
final
class
SQLiteDatabase.OpenParams
extends Object
java.lang.Object | |
↳ | android.database.sqlite.SQLiteDatabase.OpenParams |
Wrapper for configuration parameters that are used for opening SQLiteDatabase
Summary
Nested classes | |
---|---|
class |
SQLiteDatabase.OpenParams.Builder
Builder for |
Public methods | |
---|---|
SQLiteDatabase.CursorFactory
|
getCursorFactory()
Returns an optional factory class that is called to instantiate a cursor when query is called |
DatabaseErrorHandler
|
getErrorHandler()
Returns handler for database corruption errors |
long
|
getIdleConnectionTimeout()
Returns maximum number of milliseconds that SQLite connection is allowed to be idle before it is closed and removed from the pool. |
String
|
getJournalMode()
Returns journal mode. |
int
|
getLookasideSlotCount()
Returns total number of lookaside memory slots per database connection or -1 if not set. |
int
|
getLookasideSlotSize()
Returns size in bytes of each lookaside slot or -1 if not set. |
int
|
getOpenFlags()
Returns flags to control database access mode. |
String
|
getSynchronousMode()
Returns synchronous mode. |
Inherited methods | |
---|---|
Public methods
getCursorFactory
public SQLiteDatabase.CursorFactory getCursorFactory ()
Returns an optional factory class that is called to instantiate a cursor when query is called
Returns | |
---|---|
SQLiteDatabase.CursorFactory |
This value may be null . |
getErrorHandler
public DatabaseErrorHandler getErrorHandler ()
Returns handler for database corruption errors
Returns | |
---|---|
DatabaseErrorHandler |
This value may be null . |
getIdleConnectionTimeout
public long getIdleConnectionTimeout ()
Returns maximum number of milliseconds that SQLite connection is allowed to be idle before it is closed and removed from the pool.
If the value isn't set, the timeout defaults to the system wide timeout
Returns | |
---|---|
long |
timeout in milliseconds or -1 if the value wasn't set. |
getJournalMode
public String getJournalMode ()
Returns journal mode.
set via Builder.setJournalMode(String)
.
Returns | |
---|---|
String |
This value may be null . |
getLookasideSlotCount
public int getLookasideSlotCount ()
Returns total number of lookaside memory slots per database connection or -1 if not set.
Returns | |
---|---|
int |
Value is -1 or greater |
getLookasideSlotSize
public int getLookasideSlotSize ()
Returns size in bytes of each lookaside slot or -1 if not set.
Returns | |
---|---|
int |
Value is -1 or greater |
getOpenFlags
public int getOpenFlags ()
Returns flags to control database access mode. Default value is 0.
Returns | |
---|---|
int |
Value is either 0 or a combination of SQLiteDatabase.OPEN_READWRITE , SQLiteDatabase.OPEN_READONLY , SQLiteDatabase.CREATE_IF_NECESSARY , SQLiteDatabase.NO_LOCALIZED_COLLATORS , android.database.sqlite.SQLiteDatabase.NO_DOUBLE_QUOTED_STRS, and SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING |
getSynchronousMode
public String getSynchronousMode ()
Returns synchronous mode. If not set, a system wide default will be used.
Returns | |
---|---|
String |
This value may be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
TMZ Celebrity News – Breaking Stories, Videos & Gossip
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
🎥 Watch TMZ Live
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.
- Exclusive TMZ interviews and court updates
- Viral celebrity videos and candid photos
- Trending gossip and entertainment news