psdi.app.pm.virtual

Class KeyDataCollector

  • java.lang.Object
    • psdi.app.pm.virtual.KeyDataCollector
  • All Implemented Interfaces:
    java.util.Enumeration


    public class KeyDataCollector
    extends java.lang.Object
    implements java.util.Enumeration
    This class reads identifer information from a Mbo or MboSet and creates an Enumeration from it.
    • Constructor Detail

      • KeyDataCollector

        public KeyDataCollector(MboRemote singleton)
                         throws MXException,
                                java.rmi.RemoteException
        Builds a list of key data consists of a single Mbo's key.
        Parameters:
        singleton - The Mbo to get the key data from.
        Throws:
        MXException
        java.rmi.RemoteException
      • KeyDataCollector

        public KeyDataCollector(MboSetRemote set)
                         throws MXException,
                                java.rmi.RemoteException
        Builds the list of key data from all the selected Mbo's in the MboSet. If the MboSet has no selected records, all records are considered selected, and the set will be trashed & reset if so that memory can be conserved.
        Parameters:
        set - The MboSet to get the key data from.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • hasMoreElements

        public boolean hasMoreElements()
        Tests if this enumeration contains more elements.
        Specified by:
        hasMoreElements in interface java.util.Enumeration
        Returns:
        true if and only if this enumeration object contains at least one more element to provide; false otherwise.
      • nextElement

        public java.lang.Object nextElement()
        Returns the next element of this enumeration if this enumeration object has at least one more element to provide. This enumeration always returns an array of String, representing the values for the keys that identify the next Mbo record.
        Specified by:
        nextElement in interface java.util.Enumeration
        Returns:
        the next element of this enumeration.
        Throws:
        java.util.NoSuchElementException - - if no more elements exist.
        See Also:
        Passing the return of this method to this method will fetch the matching record into the MboSet.