public class PkEnumeration
extends java.lang.Object
implements java.util.Enumeration
Constructor and Description |
---|
PkEnumeration(Query query,
ClassDescriptor cld,
java.lang.Class primaryKeyClass,
PersistenceBroker broker)
PkEnumeration constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
java.lang.Object |
nextElement()
Returns the next element of this enumeration if this enumeration
object has at least one more element to provide.
|
public PkEnumeration(Query query, ClassDescriptor cld, java.lang.Class primaryKeyClass, PersistenceBroker broker)
query
- the SELECT statement gerating the underlying resultsetcld
- classDescriptor of the target entity class (say Article)primaryKeyClass
- the entity classes PrimaryKey class (say ArticleKey).
this key-class MUST have a constructor with one argument of type org.apache.ojb.broker.Identity !public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
true
if and only if this enumeration object
contains at least one more element to provide;
false
otherwise.public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- if no more elements exist.(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30