psdi.mbo.iterator

Class SpecificMboIterator

  • java.lang.Object
    • psdi.mbo.iterator.SpecificMboIterator
  • All Implemented Interfaces:
    MboSetIterator


    public class SpecificMboIterator
    extends java.lang.Object
    implements MboSetIterator
    This "iterator" actually only visits a single Mbo in the set, specified by it's position. At most, a single call to next will return a non-null value. A 2nd call to next will always return null.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SpecificMboIterator(MboRemote mbo, java.lang.String relationship, java.lang.Integer specificMbo)
      Helper Constructor
      SpecificMboIterator(MboRemote mbo, java.lang.String relationship, java.lang.Integer specificMbo, java.lang.Boolean discardable)
      Constructor If specificMbo is negative, this iterator will return nothing.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close()
      Closes the Iterator which usually closes a MboSet.
      boolean hasNext()
      Does the iterator have a next record?
      MboRemote next()
      Returns the next Mbo.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpecificMboIterator

        public SpecificMboIterator(MboRemote mbo,
                                   java.lang.String relationship,
                                   java.lang.Integer specificMbo)
                            throws java.rmi.RemoteException,
                                   MXException
        Helper Constructor
        Parameters:
        mbo -
        relationship -
        specificMbo -
        Throws:
        java.rmi.RemoteException
        MXException
      • SpecificMboIterator

        public SpecificMboIterator(MboRemote mbo,
                                   java.lang.String relationship,
                                   java.lang.Integer specificMbo,
                                   java.lang.Boolean discardable)
                            throws java.rmi.RemoteException,
                                   MXException
        Constructor If specificMbo is negative, this iterator will return nothing.
        Parameters:
        mbo - The parent Mbo
        relationship - The relationship from the parent Mbo
        specificMbo - The position of the Mbo to return
        discardable - What to set the discardable flag to
        Throws:
        java.rmi.RemoteException
        MXException