# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Methods | Inherited Methods

# 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 `OpenParams`.

### 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
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## 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`.

See also:

- `SQLiteDatabase.OpenParams.Builder.setCursorFactory(CursorFactory)`

### getErrorHandler

    public DatabaseErrorHandler getErrorHandler ()

Returns handler for database corruption errors

Returns
`DatabaseErrorHandler` | This value may be `null`.

See also:

- `SQLiteDatabase.OpenParams.Builder.setErrorHandler(DatabaseErrorHandler)`

### 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. This journal mode will only be used if `SQLiteDatabase#ENABLE_WRITE_AHEAD_LOGGING` flag is not set, otherwise a platform will use "WAL" journal mode.

Returns
`String` | This value may be `null`.

See also:

- `SQLiteDatabase.OpenParams.Builder.setJournalMode(String)`

### 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

See also:

- `SQLiteDatabase.OpenParams.Builder.setLookasideConfig(int, int)`

### getLookasideSlotSize

    public int getLookasideSlotSize ()

Returns size in bytes of each lookaside slot or -1 if not set.

Returns
`int` | Value is -1 or greater

See also:

- `SQLiteDatabase.OpenParams.Builder.setLookasideConfig(int, int)`

### 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`, and `SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING`

See also:

- `SQLiteDatabase.OpenParams.Builder.setOpenFlags(int)`

### getSynchronousMode

    public String getSynchronousMode ()

Returns synchronous mode. If not set, a system wide default will be used.

Returns
`String` | This value may be `null`.

See also:

- `SQLiteDatabase.OpenParams.Builder.setSynchronousMode(String)`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*