|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.database.sqlite.SQLiteClosable
android.database.sqlite.SQLiteProgram
android.database.sqlite.SQLiteQuery
public class SQLiteQuery
A SQLite program that represents a query that reads the resulting rows into a CursorWindow. This class is used by SQLiteCursor and isn't useful itself.
| Field Summary |
|---|
| Fields inherited from class android.database.sqlite.SQLiteProgram |
|---|
mDatabase, nHandle, nStatement, TAG |
| Constructor Summary | |
|---|---|
SQLiteQuery(SQLiteDatabase db,
String query,
int offsetIndex,
String[] bindArgs)
Create a persistent query object. |
|
| Method Summary | |
|---|---|
void |
bindDouble(int index,
double value)
Bind a double value to this statement. |
void |
bindLong(int index,
long value)
Bind a long value to this statement. |
void |
bindNull(int index)
Bind a NULL value to this statement. |
void |
bindString(int index,
String value)
Bind a String value to this statement. |
void |
close()
Release this program's resources, making it invalid. |
(package private) int |
columnCountLocked()
Get the column count for the statement. |
(package private) String |
columnNameLocked(int columnIndex)
Retrieves the column name for the given column index. |
(package private) int |
fillWindow(CursorWindow window,
int startPos)
Reads rows into a buffer. |
(package private) void |
requery()
Called by SQLiteCursor when it is requeried. |
| Methods inherited from class android.database.sqlite.SQLiteProgram |
|---|
bindBlob, clearBindings, compile, finalize, getUniqueId, native_bind_blob, native_bind_double, native_bind_long, native_bind_null, native_bind_string, native_compile, native_finalize, onAllReferencesReleased, onAllReferencesReleasedFromContainer |
| Methods inherited from class android.database.sqlite.SQLiteClosable |
|---|
acquireReference, releaseReference, releaseReferenceFromContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SQLiteQuery(SQLiteDatabase db,
String query,
int offsetIndex,
String[] bindArgs)
db - The database that this query object is associated withquery - The SQL string for this query. It must include "INDEX -1
OFFSET ?" at the endoffsetIndex - The 1-based index to the OFFSET parameter| Method Detail |
|---|
int fillWindow(CursorWindow window,
int startPos)
window - The window to fill intostartPos - The position to start reading rows from
int columnCountLocked()
String columnNameLocked(int columnIndex)
columnIndex - the index of the column to get the name for
public void close()
SQLiteProgram
close in class SQLiteProgramvoid requery()
public void bindNull(int index)
SQLiteProgramSQLiteProgram.clearBindings() is called.
bindNull in class SQLiteProgramindex - The 1-based index to the parameter to bind null to
public void bindLong(int index,
long value)
SQLiteProgramSQLiteProgram.clearBindings() is called.
bindLong in class SQLiteProgramindex - The 1-based index to the parameter to bindvalue - The value to bind
public void bindDouble(int index,
double value)
SQLiteProgramSQLiteProgram.clearBindings() is called.
bindDouble in class SQLiteProgramindex - The 1-based index to the parameter to bindvalue - The value to bind
public void bindString(int index,
String value)
SQLiteProgramSQLiteProgram.clearBindings() is called.
bindString in class SQLiteProgramindex - The 1-based index to the parameter to bindvalue - The value to bind
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||