Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 2.0.0
belongs to Maven artifact androidx.sqlite:sqlite:2.0.0-rc01

SupportSQLiteProgram

public interface SupportSQLiteProgram
implements Closeable

androidx.sqlite.db.SupportSQLiteProgram


An interface to map the behavior of SQLiteProgram.

Summary

Public methods

abstract void bindBlob(int index, 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, String value)

Bind a String value to this statement.

abstract void clearBindings()

Clears all existing bindings.

Inherited methods

Public methods

bindBlob

added in version 2.0.0
public abstract void bindBlob (int index, 
                byte[] value)

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 byte: The value to bind, must not be null

bindDouble

added in version 2.0.0
public abstract void bindDouble (int index, 
                double value)

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 double: The value to bind

bindLong

added in version 2.0.0
public abstract void bindLong (int index, 
                long value)

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 long: The value to bind

bindNull

added in version 2.0.0
public abstract void bindNull (int index)

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

added in version 2.0.0
public abstract void bindString (int index, 
                String value)

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 String: The value to bind, must not be null

clearBindings

added in version 2.0.0
public abstract void clearBindings ()

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