belongs to Maven artifact android.arch.persistence:db:1.1.0-beta2
SupportSQLiteQuery
public
interface
SupportSQLiteQuery
SupportSQLiteQuery which receives a query and its args and
binds args based on the passed in Object type.
A query with typed bindings. It is better to use this API instead of
rawQuery(String, String[]) because it allows
binding type safe parameters.
Summary
Public methods | |
|---|---|
abstract
void
|
bindTo(SupportSQLiteProgram statement)
Callback to bind the query parameters to the compiled statement. |
abstract
int
|
getArgCount()
Returns the number of arguments in this query. |
abstract
String
|
getSql()
The SQL query. |
Public methods
bindTo
void bindTo (SupportSQLiteProgram statement)
Callback to bind the query parameters to the compiled statement.
| Parameters | |
|---|---|
statement |
SupportSQLiteProgram: The compiled statement
|
getArgCount
int getArgCount ()
Returns the number of arguments in this query. This is equal to the number of placeholders in the query string. See: https://www.sqlite.org/c3ref/bind_blob.html for details.
| Returns | |
|---|---|
int |
The number of arguments in the query. |
getSql
String getSql ()
The SQL query. This query can have placeholders(?) for bind arguments.
| Returns | |
|---|---|
String |
The SQL query to compile |
Interfaces
Classes
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 2025年02月10日 UTC.