[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/arch/persistence/db/SupportSQLiteProgram [Back]  [Original]

SupportSQLiteProgram  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
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


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 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.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page