Preface
This chapter is about android. database. sqlite. SQLiteCursorDriver, version: Android 4.0 r1, translated from "Zhang Yi", welcome to his blog: "http://xiaoy.sinaapp.com/", thank you again "Zhang Yi "! Welcome to join in Android Chinese translation, contact me over140@gmail.com.
Statement
You are welcome to repost, but please keep the original source of the article :)
Blog Garden: http://www.cnblogs.com/
Android Chinese translation group: http://goo.gl/6vJQl
SQLiteCursorDriver
Translator's signature: Zhang Yu
Link: http://xiaoy.sinaapp.com/
Version: Android 4.0 r1
Structure
Inheritance relationship
Public interface SQLiteCursorDriver
Android. database. sqlite. SQLiteCursorDriver
Class Overview
A SQLite cursor driver. It is used to create an SQLite cursor and get the cursor notification. During its lifecycle, A SQLite cursor is created when a useful event occurs.
Common Methods
Public abstract voidCursorClosed()
This object is called by an SQLite cursor when it is closed and destroyed.
Public abstract voidCursorDeactivated()
It is called by an SQLite cursor when it is released
Public abstract voidCursorRequeried(Cursor cursor)
When it is re-queried, it is called by an SQLite cursor.
Public abstract CursorQuery(SQLiteDatabase. CursorFactory factory, String [] bindArgs)
Execute the query and return the cursor of a result set.
Parameters
The cursor factory used to create a cursor. If the standard SQLite cursor is used, null is returned.
Return Value
A result set cursor
Public abstract voidSetBindArguments(String [] bindArgs)
Set new binding parameters. This will affect cursorRequeried ().
Parameters
New bindArgs Parameters