public Enumeration getPKEnumerationByQuery ( Class primaryKeyClass , Query query ) throws PersistenceBrokerException { if ( logger . isDebugEnabled ( ) ) logger . debug ( "getPKEnumerationByQuery " + query ) ; query . setFetchSize ( 1 ) ; ClassDescriptor cld = getClassDescriptor ( query . getSearchClass ( ) ) ; return new PkEnumeration ( query , cld , primaryKeyClass , this ) ; }
returns an Enumeration of PrimaryKey Objects for objects of class DataClass . The Elements returned come from a SELECT ... WHERE Statement that is defined by the fields and their coresponding values of listFields and listValues . Useful for EJB Finder Methods ...