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
|
Known indirect subclasses
|
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 |
From interface
java.io.Closeable
|
From interface
java.lang.AutoCloseable
|
Public methods
bindBlob
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
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
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
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
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
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SupportSQLiteProgram\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \nbelongs to Maven artifact android.arch.persistence:db:1.1.0-beta2 \nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nSupportSQLiteProgram\n====================\n\n| The `android.arch` Architecture Components packages are no longer maintained. They have been superseded by the corresponding [androidx.\\*](/jetpack/androidx/migrate) packages. See [androidx.sqlite.db.SupportSQLiteProgram](/reference/androidx/sqlite/db/SupportSQLiteProgram) instead.\n\n\n`\npublic\n\n\ninterface\nSupportSQLiteProgram\n`\n\n\n`\n\n\nimplements\n\nCloseable\n\n\n`\n\n|--------------------------------------------------|\n| android.arch.persistence.db.SupportSQLiteProgram |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [SupportSQLiteStatement](/reference/android/arch/persistence/db/SupportSQLiteStatement) |-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------| | [SupportSQLiteStatement](/reference/android/arch/persistence/db/SupportSQLiteStatement) | An interface to map the behavior of [SQLiteStatement](https://developer.android.com/reference/android/database/sqlite/SQLiteStatement.html). | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interface to map the behavior of [SQLiteProgram](https://developer.android.com/reference/android/database/sqlite/SQLiteProgram.html).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[bindBlob](/reference/android/arch/persistence/db/SupportSQLiteProgram#bindBlob(int, byte[]))`(int index, byte[] value) ` Bind a byte array value to this statement. |\n| ` abstract void` | ` `[bindDouble](/reference/android/arch/persistence/db/SupportSQLiteProgram#bindDouble(int, double))`(int index, double value) ` Bind a double value to this statement. |\n| ` abstract void` | ` `[bindLong](/reference/android/arch/persistence/db/SupportSQLiteProgram#bindLong(int, long))`(int index, long value) ` Bind a long value to this statement. |\n| ` abstract void` | ` `[bindNull](/reference/android/arch/persistence/db/SupportSQLiteProgram#bindNull(int))`(int index) ` Bind a NULL value to this statement. |\n| ` abstract void` | ` `[bindString](/reference/android/arch/persistence/db/SupportSQLiteProgram#bindString(int, java.lang.String))`(int index, String value) ` Bind a String value to this statement. |\n| ` abstract void` | ` `[clearBindings](/reference/android/arch/persistence/db/SupportSQLiteProgram#clearBindings())`() ` Clears all existing bindings. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` java.io.Closeable ` |------------------|-------------| | ` abstract void` | ` close() ` | ||\n| From interface ` java.lang.AutoCloseable ` |------------------|-------------| | ` abstract void` | ` close() ` | ||\n\nPublic methods\n--------------\n\n### bindBlob\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid bindBlob (int index, \n byte[] value)\n```\n\nBind a byte array value to this statement. The value remains bound until\n[clearBindings()](/reference/android/arch/persistence/db/SupportSQLiteProgram#clearBindings()) is called.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------|\n| `index` | `int`: The 1-based index to the parameter to bind \u003cbr /\u003e |\n| `value` | `byte`: The value to bind, must not be null \u003cbr /\u003e |\n\n### bindDouble\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid bindDouble (int index, \n double value)\n```\n\nBind a double value to this statement. The value remains bound until\n[clearBindings()](/reference/android/arch/persistence/db/SupportSQLiteProgram#clearBindings()) is called.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------|\n| `index` | `int`: The 1-based index to the parameter to bind \u003cbr /\u003e |\n| `value` | `double`: The value to bind \u003cbr /\u003e |\n\n### bindLong\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid bindLong (int index, \n long value)\n```\n\nBind a long value to this statement. The value remains bound until\n[clearBindings()](/reference/android/arch/persistence/db/SupportSQLiteProgram#clearBindings()) is called.\naddToBindArgs\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------|\n| `index` | `int`: The 1-based index to the parameter to bind \u003cbr /\u003e |\n| `value` | `long`: The value to bind \u003cbr /\u003e |\n\n### bindNull\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid bindNull (int index)\n```\n\nBind a NULL value to this statement. The value remains bound until\n[clearBindings()](/reference/android/arch/persistence/db/SupportSQLiteProgram#clearBindings()) is called.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|------------------------------------------------------------------|\n| `index` | `int`: The 1-based index to the parameter to bind null to \u003cbr /\u003e |\n\n### bindString\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid bindString (int index, \n String value)\n```\n\nBind a String value to this statement. The value remains bound until\n[clearBindings()](/reference/android/arch/persistence/db/SupportSQLiteProgram#clearBindings()) is called.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------|\n| `index` | `int`: The 1-based index to the parameter to bind \u003cbr /\u003e |\n| `value` | `String`: The value to bind, must not be null \u003cbr /\u003e |\n\n### clearBindings\n\nadded in [version 1.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid clearBindings ()\n```\n\nClears all existing bindings. Unset bindings are treated as NULL.\n\n\u003cbr /\u003e\n\n-\n\n Interfaces\n ----------\n\n - [SupportSQLiteDatabase](/reference/android/arch/persistence/db/SupportSQLiteDatabase)\n - [SupportSQLiteOpenHelper](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper)\n - [SupportSQLiteOpenHelper.Factory](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Factory)\n - [SupportSQLiteProgram](/reference/android/arch/persistence/db/SupportSQLiteProgram)\n - [SupportSQLiteQuery](/reference/android/arch/persistence/db/SupportSQLiteQuery)\n - [SupportSQLiteStatement](/reference/android/arch/persistence/db/SupportSQLiteStatement)\n-\n\n Classes\n -------\n\n - [SimpleSQLiteQuery](/reference/android/arch/persistence/db/SimpleSQLiteQuery)\n - [SupportSQLiteOpenHelper.Callback](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Callback)\n - [SupportSQLiteOpenHelper.Configuration](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration)\n - [SupportSQLiteOpenHelper.Configuration.Builder](/reference/android/arch/persistence/db/SupportSQLiteOpenHelper.Configuration.Builder)\n - [SupportSQLiteQueryBuilder](/reference/android/arch/persistence/db/SupportSQLiteQueryBuilder)"]]