class SQLiteQuery : SQLiteProgram
kotlin.Any
   ↳ android.database.sqlite.SQLiteClosable
   ↳ android.database.sqlite.SQLiteProgram
   ↳ android.database.sqlite.SQLiteQuery

Represents a query that reads the resulting rows into a SQLiteQuery. This class is used by SQLiteCursor and isn't useful itself.

This class is not thread-safe.

Summary

Public methods
String

toString()

Returns a string representation of the object.

Inherited functions

From class SQLiteClosable

Unit acquireReference()

Acquires a reference to the object.

Unit close()

Releases a reference to the object, closing the object if the last reference was released. Calling this method is equivalent to calling releaseReference.

Unit onAllReferencesReleasedFromContainer()

Called when the last reference to the object was released by a call to releaseReferenceFromContainer().

Unit releaseReference()

Releases a reference to the object, closing the object if the last reference was released.

Unit releaseReferenceFromContainer()

Releases a reference to the object that was owned by the container of the object, closing the object if the last reference was released.

From class SQLiteProgram

Unit bindAllArgsAsStrings(bindArgs: Array<String!>!)

Given an array of String bindArgs, this method binds all of them in one single call.

Unit bindBlob(index: Int, value: ByteArray!)

Bind a byte array value to this statement. The value remains bound until clearBindings is called.

Unit bindDouble(index: Int, value: Double)

Bind a double value to this statement. The value remains bound until clearBindings is called.

Unit bindLong(index: Int, value: Long)

Bind a long value to this statement. The value remains bound until clearBindings is called. addToBindArgs

Unit bindNull(index: Int)

Bind a NULL value to this statement. The value remains bound until clearBindings is called.

Unit bindString(index: Int, value: String!)

Bind a String value to this statement. The value remains bound until clearBindings is called.

Unit clearBindings()

Clears all existing bindings. Unset bindings are treated as NULL.

Int getUniqueId()

Unimplemented.

Unit onAllReferencesReleased()

Called when the last reference to the object was released by a call to releaseReference() or #close().

Public methods

toString

fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-13 UTC.