public class CountQuery<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AbstractDao<T,?> |
dao |
protected de.greenrobot.dao.InternalQueryDaoAccess<T> |
daoAccess |
protected java.lang.Thread |
ownerThread |
protected java.lang.String[] |
parameters |
protected java.lang.String |
sql |
Modifier and Type | Method and Description |
---|---|
protected void |
checkThread() |
long |
count()
Returns the count (number of results matching the query).
|
CountQuery<T> |
forCurrentThread() |
void |
setParameter(int index,
java.lang.Object parameter)
Sets the parameter (0 based) using the position in which it was added during building the query.
|
protected static java.lang.String[] |
toStringArray(java.lang.Object[] values) |
protected final AbstractDao<T,?> dao
protected final de.greenrobot.dao.InternalQueryDaoAccess<T> daoAccess
protected final java.lang.String sql
protected final java.lang.String[] parameters
protected final java.lang.Thread ownerThread
public CountQuery<T> forCurrentThread()
public long count()
protected static java.lang.String[] toStringArray(java.lang.Object[] values)
public void setParameter(int index, java.lang.Object parameter)
protected void checkThread()
Available under the Apache License, Version 2.0 - Copyright © 2011-2015 greenrobot.de. All Rights Reserved.