de.greenrobot.dao
Class CountQuery<T>

java.lang.Object
  extended by de.greenrobot.dao.CountQuery<T>

public class CountQuery<T>
extends java.lang.Object


Method Summary
 long count()
          Returns the count (number of results matching the query).
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

count

public long count()
Returns the count (number of results matching the query). Uses SELECT COUNT (*) sematics.


setParameter

public 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.



Copyright © 2011-2012 greenrobot.de. All Rights Reserved.