SQLiteStatement
public
final
class
SQLiteStatement
extends SQLiteProgram
| java.lang.Object | |||
| ↳ | android.database.sqlite.SQLiteClosable | ||
| ↳ | android.database.sqlite.SQLiteProgram | ||
| ↳ | android.database.sqlite.SQLiteStatement | ||
Represents a statement that can be executed against a database. The statement cannot return multiple rows or columns, but single value (1 x 1) result sets are supported.
This class is not thread-safe.
Summary
Public methods | |
|---|---|
void
|
execute()
Execute this SQL statement, if it is not a SELECT / INSERT / DELETE / UPDATE, for example CREATE / DROP table, view, trigger, index etc. |
long
|
executeInsert()
Execute this SQL statement and return the ID of the row inserted due to this call. |
int
|
executeUpdateDelete()
Execute this SQL statement, if the number of rows affected by execution of this SQL statement is of any importance to the caller - for example, UPDATE / DELETE SQL statements. |
ParcelFileDescriptor
|
simpleQueryForBlobFileDescriptor()
Executes a statement that returns a 1 by 1 table with a blob value. |
long
|
simpleQueryForLong()
Execute a statement that returns a 1 by 1 table with a numeric value. |
String
|
simpleQueryForString()
Execute a statement that returns a 1 by 1 table with a text value. |
String
|
toString()
Returns a string representation of the object. |
Inherited methods | |
|---|---|