SQLiteQuerypublic final class SQLiteQuery extends SQLiteProgram Represents a query that reads the resulting rows into a {@link SQLiteQuery}.
This class is used by {@link SQLiteCursor} and isn't useful itself.
This class is not thread-safe.
|
Fields Summary |
---|
private static final String | TAG | private final android.os.CancellationSignal | mCancellationSignal |
Methods Summary |
---|
int | fillWindow(android.database.CursorWindow window, int startPos, int requiredPos, boolean countAllRows)Reads rows into a buffer.
acquireReference();
try {
window.acquireReference();
try {
int numRows = getSession().executeForCursorWindow(getSql(), getBindArgs(),
window, startPos, requiredPos, countAllRows, getConnectionFlags(),
mCancellationSignal);
return numRows;
} catch (SQLiteDatabaseCorruptException ex) {
onCorruption();
throw ex;
} catch (SQLiteException ex) {
Log.e(TAG, "exception: " + ex.getMessage() + "; query: " + getSql());
throw ex;
} finally {
window.releaseReference();
}
} finally {
releaseReference();
}
| public java.lang.String | toString()
return "SQLiteQuery: " + getSql();
|
|