ObjectDB ObjectDB

setClass(cls) - JDO Query's method

Method
javax.jdo.Query
void setClass(
  Class cls
)

Set the class of the candidate instances of the query.

The class specifies the class of the candidates of the query. Elements of the candidate collection that are of the specified class are filtered before being put into the result Collection.

Parameters:
cls - the Class of the candidate instances.
Since:
JDO 1.0