public abstract class SQLiteProgram
extends SQLiteClosable
| java.lang.Object | ||
| android.database.sqlite.SQLiteClosable | ||
| android.database.sqlite.SQLiteProgram | ||
| |
编译后的SQLite程序的基类。
这个类不是线程安全的。
公共方法(Public methods) |
|
|---|---|
void |
bindAllArgsAsStrings(String[] bindArgs) 给定一个String bindArgs数组,此方法在一次调用中将它们全部绑定。 |
void |
bindBlob(int index, byte[] value) 将一个字节数组值绑定到这个语句。 |
void |
bindDouble(int index, double value) 为此声明绑定一个双重值。 |
void |
bindLong(int index, long value) 为此陈述绑定一个长期价值。 |
void |
bindNull(int index) 为此语句绑定一个NULL值。 |
void |
bindString(int index, String value) 为此语句绑定一个字符串值。 |
void |
clearBindings() 清除所有现有的绑定。 |
final int |
getUniqueId() 此方法在API级别11中已弃用。此方法已弃用且不得使用。 |
Protected methods |
|
|---|---|
void |
onAllReferencesReleased() 当通过调用 |
继承方法(Inherited methods) |
|
|---|---|
android.database.sqlite.SQLiteClosable
|
|
java.lang.Object
|
|
java.io.Closeable
|
|
java.lang.AutoCloseable
|
|
void bindAllArgsAsStrings (String[] bindArgs)
给定一个String bindArgs数组,此方法在一次调用中将它们全部绑定。
| 参数(Parameters) | |
|---|---|
bindArgs |
String: the String array of bind args, none of which must be null. |
void bindBlob (int index,
byte[] value)
将一个字节数组值绑定到这个语句。 值保持限制,直到clearBindings() 。
| 参数(Parameters) | |
|---|---|
index |
int: The 1-based index to the parameter to bind |
value |
byte: The value to bind, must not be null |
void bindDouble (int index,
double value)
为此声明绑定一个双重值。 值保持绑定,直到clearBindings() 。
| 参数(Parameters) | |
|---|---|
index |
int: The 1-based index to the parameter to bind |
value |
double: The value to bind |
void bindLong (int index,
long value)
为此陈述绑定一个长期价值。 值保持绑定,直到clearBindings() 。 addToBindArgs
| 参数(Parameters) | |
|---|---|
index |
int: The 1-based index to the parameter to bind |
value |
long: The value to bind |
void bindNull (int index)
为此语句绑定一个NULL值。 该值保持限制,直到clearBindings() 。
| 参数(Parameters) | |
|---|---|
index |
int: The 1-based index to the parameter to bind null to |
void bindString (int index,
String value)
为此语句绑定一个字符串值。 该值保持绑定,直到clearBindings() 。
| 参数(Parameters) | |
|---|---|
index |
int: The 1-based index to the parameter to bind |
value |
String: The value to bind, must not be null |
int getUniqueId ()
此方法在API级别11中已弃用。
此方法已弃用,不得使用。
未实现。
| 返回(Returns) | |
|---|---|
int |
|
void onAllReferencesReleased ()
当通过调用 releaseReference()或 close()释放对象的最后一个引用时调用。