Modifier and Type | Method and Description |
---|---|
ListenerToken |
addChangeListener(QueryChangeListener listener) |
ResultSet |
execute()
Executes the query.
|
String |
explain()
Returns a string describing the implementation of the compiled query.
|
Database |
getDatabase() |
Parameters |
getParameters()
Returns a copies of the current parameters.
|
void |
removeChangeListener(ListenerToken token) |
static Select |
select(SelectResult... results)
Create a SELECT ALL (*) query.
|
static Select |
selectDistinct(SelectResult... results)
Create a SELECT DISTINCT ALL (*) query.
|
void |
setParameters(Parameters parameters)
Set parameters should copy the given parameters.
|
String |
toString() |
public static Select select(SelectResult... results)
public static Select selectDistinct(SelectResult... results)
public Parameters getParameters()
public void setParameters(Parameters parameters)
public ResultSet execute() throws CouchbaseLiteException
The results come from a snapshot of the database taken at the moment the run() method is called, so they will not reflect any changes made to the database afterwards.
CouchbaseLiteException
- if there is an error when running the query.public String explain() throws CouchbaseLiteException
CouchbaseLiteException
- if an error occurspublic ListenerToken addChangeListener(QueryChangeListener listener)
public void removeChangeListener(ListenerToken token)
public Database getDatabase()