| java.lang.Object org.apache.ojb.broker.accesslayer.PkEnumeration
PkEnumeration | public class PkEnumeration implements Enumeration(Code) | | this class can be used to create enumerations of PrimaryKey objects.
This is interesting for EJB finder methods
in BMP entity beans which must return such enumerations.
author: Thomas Mahler version: $Id: PkEnumeration.java,v 1.17.2.3 2005/12/21 22:22:59 tomdz Exp $ |
Method Summary | |
protected void | finalize() protection just in case someone leaks. | public boolean | hasMoreElements() Tests if this enumeration contains more elements. | public Object | nextElement() Returns the next element of this enumeration if this enumeration
object has at least one more element to provide. |
classDescriptor | protected ClassDescriptor classDescriptor(Code) | | descriptor for the class of which items are to be found
|
constructor | protected Constructor constructor(Code) | | the Constructor that is needed to build the PrimaryKey Objects
|
hasCalledCheck | protected boolean hasCalledCheck(Code) | | |
hasNext | protected boolean hasNext(Code) | | |
resultSetAndStatment | protected ResultSetAndStatement resultSetAndStatment(Code) | | The underlying jdbc resultset produced by select statement
|
serialVersionUID | final static long serialVersionUID(Code) | | |
PkEnumeration | public PkEnumeration(Query query, ClassDescriptor cld, Class primaryKeyClass, PersistenceBroker broker)(Code) | | PkEnumeration constructor.
Parameters: query - the SELECT statement gerating the underlying resultset Parameters: cld - classDescriptor of the target entity class (say Article) Parameters: 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 ! |
finalize | protected void finalize()(Code) | | protection just in case someone leaks.
|
hasMoreElements | public boolean hasMoreElements()(Code) | | Tests if this enumeration contains more elements.
true if and only if this enumeration objectcontains at least one more element to provide;false otherwise. |
nextElement | public Object nextElement()(Code) | | Returns the next element of this enumeration if this enumeration
object has at least one more element to provide.
the next element of this enumeration. exception: NoSuchElementException - if no more elements exist. |
|
|