Most visited

Recently visited

Added in API level 1

SQLiteCursorDriver

public interface SQLiteCursorDriver

android.database.sqlite.SQLiteCursorDriver


SQLiteCursors的驱动程序,用于创建它们并获取游标通知它在其有生命期内的重大事件中创建的。

Summary

Public methods

abstract void cursorClosed()

由SQLiteCursor在关闭时调用,以销毁该对象。

abstract void cursorDeactivated()

SQLiteCursor在发布时调用。

abstract void cursorRequeried(Cursor cursor)

当它被重新查询时,由SQLiteCursor调用。

abstract Cursor query(SQLiteDatabase.CursorFactory factory, String[] bindArgs)

执行查询返回结果集上的Cursor。

abstract void setBindArguments(String[] bindArgs)

设置新的绑定参数。

Public methods

cursorClosed

Added in API level 1
void cursorClosed ()

由SQLiteCursor在关闭时调用,以销毁该对象。

cursorDeactivated

Added in API level 1
void cursorDeactivated ()

SQLiteCursor在发布时调用。

cursorRequeried

Added in API level 1
void cursorRequeried (Cursor cursor)

当它被重新查询时,由SQLiteCursor调用。

Parameters
cursor Cursor

query

Added in API level 1
Cursor query (SQLiteDatabase.CursorFactory factory, 
                String[] bindArgs)

执行查询返回结果集上的Cursor。

Parameters
factory SQLiteDatabase.CursorFactory: The CursorFactory to use when creating the Cursors, or null if standard SQLiteCursors should be returned.
bindArgs String
Returns
Cursor a Cursor over the result set

setBindArguments

Added in API level 1
void setBindArguments (String[] bindArgs)

设置新的绑定参数。 这些将在cursorRequeried()中生效。

Parameters
bindArgs String: the new arguments

Hooray!