Język

DatabaseUtils.BlobFileDescriptorForQuery Method

Definition

Overloads

Name Description
BlobFileDescriptorForQuery(SQLiteStatement, String[])

Utility method to run the pre-compiled query and return the blob value in the first column of the first row.

BlobFileDescriptorForQuery(SQLiteDatabase, String, String[])

Utility method to run the query on the db and return the blob value in the first column of the first row.

BlobFileDescriptorForQuery(SQLiteStatement, String[])

Utility method to run the pre-compiled query and return the blob value in the first column of the first row.

[Android.Runtime.Register("blobFileDescriptorForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")]
public static Android.OS.ParcelFileDescriptor? BlobFileDescriptorForQuery(Android.Database.Sqlite.SQLiteStatement? prog, string[]? selectionArgs);
[<Android.Runtime.Register("blobFileDescriptorForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")>]
static member BlobFileDescriptorForQuery : Android.Database.Sqlite.SQLiteStatement * string[] -> Android.OS.ParcelFileDescriptor

Parameters

prog
SQLiteStatement

The compiled query to execute. The caller retains responsibility for closing the statement.

selectionArgs
String[]

Values to bind as strings in parameter order, or null to leave existing bindings unchanged. Array elements must not be null.

Returns

A read-only file descriptor for a copy of the blob value.

Attributes

Remarks

Utility method to run the pre-compiled query and return the blob value in the first column of the first row.

The caller must close the returned file descriptor. The result can be null if the value is null or cannot be read. A query with no rows throws SQLiteDoneException.

Java documentation for android.database.DatabaseUtils.blobFileDescriptorForQuery(android.database.sqlite.SQLiteStatement, 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

BlobFileDescriptorForQuery(SQLiteDatabase, String, String[])

Utility method to run the query on the db and return the blob value in the first column of the first row.

[Android.Runtime.Register("blobFileDescriptorForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")]
public static Android.OS.ParcelFileDescriptor? BlobFileDescriptorForQuery(Android.Database.Sqlite.SQLiteDatabase? db, string? query, string[]? selectionArgs);
[<Android.Runtime.Register("blobFileDescriptorForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;", "")>]
static member BlobFileDescriptorForQuery : Android.Database.Sqlite.SQLiteDatabase * string * string[] -> Android.OS.ParcelFileDescriptor

Parameters

db
SQLiteDatabase

The database on which to execute the query. The database is not closed by this method.

query
String

The SQL query whose first row and first column supply the BLOB value.

selectionArgs
String[]

Values to bind as strings in parameter order, or null if no values are supplied. Array elements must not be null.

Returns

A read-only file descriptor for a copy of the blob value.

Attributes

Remarks

Utility method to run the query on the db and return the blob value in the first column of the first row.

The temporary query statement is closed before this method returns. The caller must close the returned file descriptor. The result can be null if the value is null or cannot be read. A query with no rows throws SQLiteDoneException.

Java documentation for android.database.DatabaseUtils.blobFileDescriptorForQuery(android.database.sqlite.SQLiteDatabase, 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