The Android Developer Challenge is back! Submit your idea before December 2.

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

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

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

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

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

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

public abstract void clearBindings ()

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