次の方法で共有


SQLiteDatabase.RawQueryWithFactory Method

Definition

Overloads

RawQueryWithFactory(SQLiteDatabase+ICursorFactory, String, String[], String)

Runs the provided SQL and returns a cursor over the result set.

RawQueryWithFactory(SQLiteDatabase+ICursorFactory, String, String[], String, CancellationSignal)

Runs the provided SQL and returns a cursor over the result set.

RawQueryWithFactory(SQLiteDatabase+ICursorFactory, String, String[], String)

Runs the provided SQL and returns a cursor over the result set.

[Android.Runtime.Register("rawQueryWithFactory", "(Landroid/database/sqlite/SQLiteDatabase$CursorFactory;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "GetRawQueryWithFactory_Landroid_database_sqlite_SQLiteDatabase_CursorFactory_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.Database.ICursor? RawQueryWithFactory (Android.Database.Sqlite.SQLiteDatabase.ICursorFactory? cursorFactory, string? sql, string[]? selectionArgs, string? editTable);
[<Android.Runtime.Register("rawQueryWithFactory", "(Landroid/database/sqlite/SQLiteDatabase$CursorFactory;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;", "GetRawQueryWithFactory_Landroid_database_sqlite_SQLiteDatabase_CursorFactory_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Handler")>]
abstract member RawQueryWithFactory : Android.Database.Sqlite.SQLiteDatabase.ICursorFactory * string * string[] * string -> Android.Database.ICursor
override this.RawQueryWithFactory : Android.Database.Sqlite.SQLiteDatabase.ICursorFactory * string * string[] * string -> Android.Database.ICursor

Parameters

cursorFactory
SQLiteDatabase.ICursorFactory

the cursor factory to use, or null for the default factory

sql
String

the SQL query. The SQL string must not be ; terminated

selectionArgs
String[]

You may include ?s in where clause in the query, which will be replaced by the values from selectionArgs. The values will be bound as Strings.

editTable
String

the name of the first table, which is editable

Returns

A Cursor object, which is positioned before the first entry. Note that Cursors are not synchronized, see the documentation for more details.

Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(android.database.sqlite.CursorFactory, java.lang.String, java.lang.String[], java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

RawQueryWithFactory(SQLiteDatabase+ICursorFactory, String, String[], String, CancellationSignal)

Runs the provided SQL and returns a cursor over the result set.

[Android.Runtime.Register("rawQueryWithFactory", "(Landroid/database/sqlite/SQLiteDatabase$CursorFactory;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "GetRawQueryWithFactory_Landroid_database_sqlite_SQLiteDatabase_CursorFactory_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")]
public virtual Android.Database.ICursor? RawQueryWithFactory (Android.Database.Sqlite.SQLiteDatabase.ICursorFactory? cursorFactory, string? sql, string[]? selectionArgs, string? editTable, Android.OS.CancellationSignal? cancellationSignal);
[<Android.Runtime.Register("rawQueryWithFactory", "(Landroid/database/sqlite/SQLiteDatabase$CursorFactory;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "GetRawQueryWithFactory_Landroid_database_sqlite_SQLiteDatabase_CursorFactory_Ljava_lang_String_arrayLjava_lang_String_Ljava_lang_String_Landroid_os_CancellationSignal_Handler")>]
abstract member RawQueryWithFactory : Android.Database.Sqlite.SQLiteDatabase.ICursorFactory * string * string[] * string * Android.OS.CancellationSignal -> Android.Database.ICursor
override this.RawQueryWithFactory : Android.Database.Sqlite.SQLiteDatabase.ICursorFactory * string * string[] * string * Android.OS.CancellationSignal -> Android.Database.ICursor

Parameters

cursorFactory
SQLiteDatabase.ICursorFactory

the cursor factory to use, or null for the default factory

sql
String

the SQL query. The SQL string must not be ; terminated

selectionArgs
String[]

You may include ?s in where clause in the query, which will be replaced by the values from selectionArgs. The values will be bound as Strings.

editTable
String

the name of the first table, which is editable

cancellationSignal
CancellationSignal

A signal to cancel the operation in progress, or null if none. If the operation is canceled, then OperationCanceledException will be thrown when the query is executed.

Returns

A Cursor object, which is positioned before the first entry. Note that Cursors are not synchronized, see the documentation for more details.

Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(android.database.sqlite.CursorFactory, java.lang.String, java.lang.String[], java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to