|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.maximo.core.AbstractMxConnMode
com.ibm.di.connector.maximo.core.MxConnIterator
public class MxConnIterator
Connector support for Iterator mode.
AbstractMxConnMode
Field Summary | |
---|---|
protected boolean |
returnHierarchicalEntries
Flag indicating whether flat or hierarchical entries will be returned. |
static String |
XML_QUERY_TAG
|
static String |
XML_RESPONSE_TAG
|
static String |
XML_RSSTART_ATTR
|
static String |
XML_RSTOTAL_ATTR
|
Fields inherited from class com.ibm.di.connector.maximo.core.AbstractMxConnMode |
---|
ACTION_ATTR, ACTION_ATTR_PREFIXED, ADD_ACTION, ADDCHANGE_ACTION, CHANGE_ACTION, CHANGED_ATTR, DELETE_ACTION, logger, REPLACE_ACTION |
Constructor Summary | |
---|---|
MxConnIterator(MxConnConfiguration cfg,
Log log)
Constructs a MxConnIterator . |
|
MxConnIterator(MxConnConfiguration cfg,
Log log,
boolean returnHierarchicalEntries)
Constructs a MxConnIterator . |
Method Summary | |
---|---|
void |
executeQuery()
Sends the query request to Maximo. |
Entry |
getNext()
Returns the next entry found in the query result. |
Methods inherited from class com.ibm.di.connector.maximo.core.AbstractMxConnMode |
---|
getCfg, post, setCreation, setMessageId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XML_RSSTART_ATTR
public static final String XML_RSTOTAL_ATTR
public static final String XML_QUERY_TAG
public static final String XML_RESPONSE_TAG
protected boolean returnHierarchicalEntries
Constructor Detail |
---|
public MxConnIterator(MxConnConfiguration cfg, Log log)
MxConnIterator
.
cfg
- the connector configuration objectlog
- logger of the connectorpublic MxConnIterator(MxConnConfiguration cfg, Log log, boolean returnHierarchicalEntries)
MxConnIterator
.
cfg
- the connector configuration objectlog
- logger of the connectorreturnHierarchicalEntries
- if true
hierarchical entries will be usedMethod Detail |
---|
public final void executeQuery() throws MxConnectorException
MxConnectorException
- if any of the required parameters (page size and query
enterprise service) is missing
MxConnectorException
- if any sort of comctMxmunication problem occursMxConnConfiguration.checkIterator()
public final Entry getNext() throws MxConnectorException
null
if there is no more
entries
MxConnectorException
- if the query result can not be converted into an
Entry
objectexecuteQuery()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |