psdi.mbo.iterator

Class SimpleMboSetIterator

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


    public class SimpleMboSetIterator
    extends java.lang.Object
    implements MboSetIterator
    Mbo Iterator for MboSets. This iterator visits every mbo in the set.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected boolean closed
      Is this iterator closed?
      protected MboSetRemote mboSet
      The set we are returning Mbos from.
      protected MboRemote nextMbo
      This is the next Mbo that will be returned by the next method.
      protected int pos
      The current position in the set.
    • 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
    • Field Detail

      • mboSet

        protected MboSetRemote mboSet
        The set we are returning Mbos from.
      • pos

        protected int pos
        The current position in the set.
      • closed

        protected boolean closed
        Is this iterator closed?
      • nextMbo

        protected MboRemote nextMbo
        This is the next Mbo that will be returned by the next method.
    • Constructor Detail

      • SimpleMboSetIterator

        public SimpleMboSetIterator(MboSetRemote mboSet)
                             throws java.rmi.RemoteException,
                                    MXException
        Constructor - discardable flag set to null.
        Parameters:
        mboSet - This set to visit.
        Throws:
        java.rmi.RemoteException
        MXException
      • SimpleMboSetIterator

        public SimpleMboSetIterator(MboSetRemote mboSet,
                                    boolean discardable)
                             throws java.rmi.RemoteException,
                                    MXException
        Constructor
        Parameters:
        mboSet - This set to visit.
        discardable - The value for the discardable flag
        Throws:
        java.rmi.RemoteException
        MXException
      • SimpleMboSetIterator

        public SimpleMboSetIterator(MboRemote mbo,
                                    java.lang.String relationship)
                             throws java.rmi.RemoteException,
                                    MXException
        Constructor - defaults discardable flag to null.
        Parameters:
        mbo - The owning Mbo.
        relationship - The name of the related set to visit.
        Throws:
        java.rmi.RemoteException
        MXException
      • SimpleMboSetIterator

        public SimpleMboSetIterator(MboRemote mbo,
                                    java.lang.String relationship,
                                    boolean discardable)
                             throws java.rmi.RemoteException,
                                    MXException
        Constructor
        Parameters:
        mbo - The owning Mbo.
        relationship - The name of the related set to visit.
        discardable - The value for the discardable flag
        Throws:
        java.rmi.RemoteException
        MXException