org.objectweb.speedo.query.api
Interface JDOQuery

All Known Implementing Classes:
SpeedoQuery

public interface JDOQuery

Author:
S.Chassande-Barrioz

Method Summary
 void setRange(long first, long last)
          The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query.
 void setResult(java.lang.String result)
          The application wmight want to get results from a query that are not instance of the candidate class.
 void setResultClass(java.lang.Class resultClass)
          The application may have a user-defined class that best represents the results of a query.
 void setUnique(boolean unique)
          If the application knows that there can be exactly zero or one instance returned from a query, the result of the query is most conveniently returned as an instance (possibily null) instead of a Collection.
 

Method Detail

setRange

public void setRange(long first,
                     long last)
The application may want to skip some number of results that may have been previously returned, and additionally may want to limit the number of instances returned from a query. The default range for query execution if this method is not called are (0, Long.MAX_VALUE).

Parameters:
first -
last -

setUnique

public void setUnique(boolean unique)
If the application knows that there can be exactly zero or one instance returned from a query, the result of the query is most conveniently returned as an instance (possibily null) instead of a Collection.

Parameters:
unique -

setResult

public void setResult(java.lang.String result)
The application wmight want to get results from a query that are not instance of the candidate class. The results might be fields of persistent instances, instances of classes other than the candidate class, or aggregates of fields.

Parameters:
result -

setResultClass

public void setResultClass(java.lang.Class resultClass)
The application may have a user-defined class that best represents the results of a query. In this case, the application can specify that instances of this class should be returned.

Parameters:
resultClass -