Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

SupportSQLiteProgram

interface SupportSQLiteProgram : Closeable
androidx.sqlite.db.SupportSQLiteProgram

An interface to map the behavior of android.database.sqlite.SQLiteProgram.

Summary

Public methods
abstract Unit
bindBlob(index: Int, value: ByteArray!)

Bind a byte array value to this statement.

abstract Unit
bindDouble(index: Int, value: Double)

Bind a double value to this statement.

abstract Unit
bindLong(index: Int, value: Long)

Bind a long value to this statement.

abstract Unit
bindNull(index: Int)

Bind a NULL value to this statement.

abstract Unit
bindString(index: Int, value: String!)

Bind a String value to this statement.

abstract Unit

Clears all existing bindings.

Public methods

bindBlob

abstract fun bindBlob(index: Int, value: ByteArray!): Unit

Bind a byte array value to this statement. The value remains bound until clearBindings is called.

Parameters
index Int: The 1-based index to the parameter to bind
value Int: The value to bind, must not be null

bindDouble

abstract fun bindDouble(index: Int, value: Double): Unit

Bind a double value to this statement. The value remains bound until clearBindings is called.

Parameters
index Int: The 1-based index to the parameter to bind
value Int: The value to bind

bindLong

abstract fun bindLong(index: Int, value: Long): Unit

Bind a long value to this statement. The value remains bound until clearBindings is called. addToBindArgs

Parameters
index Int: The 1-based index to the parameter to bind
value Int: The value to bind

bindNull

abstract fun bindNull(index: Int): Unit

Bind a NULL value to this statement. The value remains bound until clearBindings is called.

Parameters
index Int: The 1-based index to the parameter to bind null to

bindString

abstract fun bindString(index: Int, value: String!): Unit

Bind a String value to this statement. The value remains bound until clearBindings is called.

Parameters
index Int: The 1-based index to the parameter to bind
value Int: The value to bind, must not be null

clearBindings

abstract fun clearBindings(): Unit

Clears all existing bindings. Unset bindings are treated as NULL.