Sdílet prostřednictvím


SQLiteCursor Constructors

Definition

Overloads

SQLiteCursor(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SQLiteCursor(ISQLiteCursorDriver, String, SQLiteQuery)

Execute a query and provide access to its result set through a Cursor interface.

SQLiteCursor(SQLiteDatabase, ISQLiteCursorDriver, String, SQLiteQuery)
Obsolete.

Execute a query and provide access to its result set through a Cursor interface.

SQLiteCursor(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SQLiteCursor (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Database.Sqlite.SQLiteCursor : nativeint * Android.Runtime.JniHandleOwnership -> Android.Database.Sqlite.SQLiteCursor

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

SQLiteCursor(ISQLiteCursorDriver, String, SQLiteQuery)

Execute a query and provide access to its result set through a Cursor interface.

[Android.Runtime.Register(".ctor", "(Landroid/database/sqlite/SQLiteCursorDriver;Ljava/lang/String;Landroid/database/sqlite/SQLiteQuery;)V", "")]
public SQLiteCursor (Android.Database.Sqlite.ISQLiteCursorDriver? driver, string? editTable, Android.Database.Sqlite.SQLiteQuery? query);
[<Android.Runtime.Register(".ctor", "(Landroid/database/sqlite/SQLiteCursorDriver;Ljava/lang/String;Landroid/database/sqlite/SQLiteQuery;)V", "")>]
new Android.Database.Sqlite.SQLiteCursor : Android.Database.Sqlite.ISQLiteCursorDriver * string * Android.Database.Sqlite.SQLiteQuery -> Android.Database.Sqlite.SQLiteCursor

Parameters

editTable
String

the name of the table used for this query

query
SQLiteQuery

the SQLiteQuery object associated with this cursor object.

Attributes

Remarks

Execute a query and provide access to its result set through a Cursor interface. For a query such as: SELECT name, birth, phone FROM myTable WHERE ... LIMIT 1,20 ORDER BY... the column names (name, birth, phone) would be in the projection argument and everything from FROM onward would be in the params argument.

Java documentation for android.database.sqlite.SQLiteCursor.SQLiteCursor(android.database.sqlite.SQLiteCursorDriver, java.lang.String, android.database.sqlite.SQLiteQuery).

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

SQLiteCursor(SQLiteDatabase, ISQLiteCursorDriver, String, SQLiteQuery)

Caution

deprecated

Execute a query and provide access to its result set through a Cursor interface.

[Android.Runtime.Register(".ctor", "(Landroid/database/sqlite/SQLiteDatabase;Landroid/database/sqlite/SQLiteCursorDriver;Ljava/lang/String;Landroid/database/sqlite/SQLiteQuery;)V", "")]
[System.Obsolete("deprecated")]
public SQLiteCursor (Android.Database.Sqlite.SQLiteDatabase? db, Android.Database.Sqlite.ISQLiteCursorDriver? driver, string? editTable, Android.Database.Sqlite.SQLiteQuery? query);
[<Android.Runtime.Register(".ctor", "(Landroid/database/sqlite/SQLiteDatabase;Landroid/database/sqlite/SQLiteCursorDriver;Ljava/lang/String;Landroid/database/sqlite/SQLiteQuery;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Database.Sqlite.SQLiteCursor : Android.Database.Sqlite.SQLiteDatabase * Android.Database.Sqlite.ISQLiteCursorDriver * string * Android.Database.Sqlite.SQLiteQuery -> Android.Database.Sqlite.SQLiteCursor

Parameters

db
SQLiteDatabase

a reference to a Database object that is already constructed and opened. This param is not used any longer

editTable
String

the name of the table used for this query

query
SQLiteQuery

the rest of the query terms cursor is finalized

Attributes

Remarks

Execute a query and provide access to its result set through a Cursor interface. For a query such as: SELECT name, birth, phone FROM myTable WHERE ... LIMIT 1,20 ORDER BY... the column names (name, birth, phone) would be in the projection argument and everything from FROM onward would be in the params argument.

This member is deprecated. use #SQLiteCursor(SQLiteCursorDriver, String, SQLiteQuery) instead

Java documentation for android.database.sqlite.SQLiteCursor.SQLiteCursor(android.database.sqlite.SQLiteDatabase, android.database.sqlite.SQLiteCursorDriver, java.lang.String, android.database.sqlite.SQLiteQuery).

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