SupportSQLiteProgram

public interface SupportSQLiteProgram extends Closeable

Known direct subclasses

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

Summary

Public methods

abstract void
bindBlob(int index, @NonNull byte[] value)

Bind a byte array value to this statement.

abstract void
bindDouble(int index, double value)

Bind a double value to this statement.

abstract void
bindLong(int index, long value)

Bind a long value to this statement.

abstract void
bindNull(int index)

Bind a NULL value to this statement.

abstract void
bindString(int index, @NonNull String value)

Bind a String value to this statement.

abstract void

Clears all existing bindings.

Inherited methods

From java.io.Closeable
abstract void

Public methods

bindBlob

Added in 2.0.0
abstract void bindBlob(int index, @NonNull byte[] value)

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

Parameters
int index

The 1-based index to the parameter to bind

@NonNull byte[] value

The value to bind, must not be null

bindDouble

Added in 2.0.0
abstract void bindDouble(int index, double value)

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

Parameters
int index

The 1-based index to the parameter to bind

double value

The value to bind

bindLong

Added in 2.0.0
abstract void bindLong(int index, long value)

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

Parameters
int index

The 1-based index to the parameter to bind

long value

The value to bind

bindNull

Added in 2.0.0
abstract void bindNull(int index)

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

Parameters
int index

The 1-based index to the parameter to bind null to

bindString

Added in 2.0.0
abstract void bindString(int index, @NonNull String value)

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

Parameters
int index

The 1-based index to the parameter to bind

@NonNull String value

The value to bind, must not be null

clearBindings

Added in 2.0.0
abstract void clearBindings()

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