added in version 1.1.0
belongs to Maven artifact android.arch.persistence:db:1.1.0-beta2

SupportSQLiteProgram

public interface SupportSQLiteProgram
implements Closeable

android.arch.persistence.db.SupportSQLiteProgram
SupportSQLiteStatement An interface to map the behavior of SQLiteStatement


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

abstract void close()
abstract void close()

Public methods

bindBlob

added in version 1.1.0
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 1.1.0
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 1.1.0
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 1.1.0
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 1.1.0
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 1.1.0
void clearBindings ()

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