java.lang.Object | ||
↳ | android.database.sqlite.SQLiteClosable | |
↳ | android.database.sqlite.SQLiteProgram |
Known Direct Subclasses |
A base class for compiled SQLite programs.
SQLiteProgram is NOT internally synchronized so code using a SQLiteProgram from multiple threads should perform its own synchronization when using the SQLiteProgram.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mDatabase | This field is deprecated. do not use this | ||||||||||
nHandle | This field is deprecated. do not use this | ||||||||||
nStatement | This field is deprecated. do not use this |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Given an array of String bindArgs, this method binds all of them in one single call.
| |||||||||||
Bind a byte array value to this statement.
| |||||||||||
Bind a double value to this statement.
| |||||||||||
Bind a long value to this statement.
| |||||||||||
Bind a NULL value to this statement.
| |||||||||||
Bind a String value to this statement.
| |||||||||||
Clears all existing bindings.
| |||||||||||
Release this program's resources, making it invalid.
| |||||||||||
This method is deprecated.
do not use this method. it is not guaranteed to be the same across executions of
the SQL statement contained in this object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
This method is deprecated and must not be used.
| |||||||||||
This method is deprecated.
This method is deprecated and must not be used.
Compiles SQL into a SQLite program.
The database lock must be held when calling this method. | |||||||||||
This method is deprecated.
This method is deprecated and must not be used.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.database.sqlite.SQLiteClosable
| |||||||||||
From class
java.lang.Object
|
This field is deprecated.
do not use this
The database this program is compiled against.
This field is deprecated.
do not use this
Native linkage, do not modify. This comes from the database and should not be modified in here or in the native code.
This field is deprecated.
do not use this
SQLiteCompiledSql statement id is populated with the corresponding object from the above member. This member is used by the native_bind_* methods
Given an array of String bindArgs, this method binds all of them in one single call.
bindArgs | the String array of bind args. |
---|
Bind a byte array value to this statement. The value remains bound until
clearBindings()
is called.
index | The 1-based index to the parameter to bind |
---|---|
value | The value to bind |
Bind a double value to this statement. The value remains bound until
clearBindings()
is called.
index | The 1-based index to the parameter to bind |
---|---|
value | The value to bind |
Bind a long value to this statement. The value remains bound until
clearBindings()
is called.
addToBindArgs
index | The 1-based index to the parameter to bind |
---|---|
value | The value to bind |
Bind a NULL value to this statement. The value remains bound until
clearBindings()
is called.
index | The 1-based index to the parameter to bind null to |
---|
Bind a String value to this statement. The value remains bound until
clearBindings()
is called.
index | The 1-based index to the parameter to bind |
---|---|
value | The value to bind |
Clears all existing bindings. Unset bindings are treated as NULL.
This method is deprecated.
do not use this method. it is not guaranteed to be the same across executions of
the SQL statement contained in this object.
Returns a unique identifier for this program.
This method is deprecated.
This method is deprecated and must not be used.
sql | the SQL string to compile |
---|---|
forceCompilation | forces the SQL to be recompiled in the event that there is an existing compiled SQL program already around |
This method is deprecated.
This method is deprecated and must not be used.
Compiles SQL into a SQLite program.
The database lock must be held when calling this method.
sql | The SQL to compile. |
---|
This method is deprecated.
This method is deprecated and must not be used.