public class SimpleMboSetIterator extends java.lang.Object implements MboSetIterator
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.
|
Constructor and Description |
---|
SimpleMboSetIterator(MboRemote mbo,
java.lang.String relationship)
Constructor - defaults discardable flag to null.
|
SimpleMboSetIterator(MboRemote mbo,
java.lang.String relationship,
boolean discardable)
Constructor
|
SimpleMboSetIterator(MboSetRemote mboSet)
Constructor - discardable flag set to null.
|
SimpleMboSetIterator(MboSetRemote mboSet,
boolean discardable)
Constructor
|
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.
|
protected MboSetRemote mboSet
protected int pos
protected boolean closed
protected MboRemote nextMbo
public SimpleMboSetIterator(MboSetRemote mboSet) throws java.rmi.RemoteException, MXException
mboSet
- This set to visit.java.rmi.RemoteException
MXException
public SimpleMboSetIterator(MboSetRemote mboSet, boolean discardable) throws java.rmi.RemoteException, MXException
mboSet
- This set to visit.discardable
- The value for the discardable flagjava.rmi.RemoteException
MXException
public SimpleMboSetIterator(MboRemote mbo, java.lang.String relationship) throws java.rmi.RemoteException, MXException
mbo
- The owning Mbo.relationship
- The name of the related set to visit.java.rmi.RemoteException
MXException
public SimpleMboSetIterator(MboRemote mbo, java.lang.String relationship, boolean discardable) throws java.rmi.RemoteException, MXException
mbo
- The owning Mbo.relationship
- The name of the related set to visit.discardable
- The value for the discardable flagjava.rmi.RemoteException
MXException
public boolean hasNext() throws MXException, java.rmi.RemoteException
MboSetIterator
hasNext
in interface MboSetIterator
MXException
java.rmi.RemoteException
public MboRemote next() throws java.rmi.RemoteException, MXException
MboSetIterator
next
in interface MboSetIterator
java.rmi.RemoteException
MXException
public void close() throws java.rmi.RemoteException, MXException
MboSetIterator
close
in interface MboSetIterator
java.rmi.RemoteException
MXException