|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.server.AssemblyLineComponent
com.ibm.di.server.BranchingComponent
com.ibm.di.server.LoopComponent
public class LoopComponent
This class is used by an AssemblyLine to mark the beginning of a loop
Field Summary |
---|
Fields inherited from class com.ibm.di.server.BranchingComponent |
---|
parent, psc, value |
Fields inherited from class com.ibm.di.server.AssemblyLineComponent |
---|
addmap, CHECKPOINT_GETS, connConfig, connector, connPool, handler, imap, INITIALIZE, log, modmap, name, pooledConnector, restartCycle, reusingConnector, SELECT, stats |
Constructor Summary | |
---|---|
LoopComponent(AssemblyLine parent,
String name,
LoopConfig config)
Constructor for the LoopComponent object |
Method Summary | |
---|---|
void |
add(Entry meta)
If necessary, move a value from the stored Attribute values to the work Entry |
void |
checkConnectorInit(Entry work)
Check what to do with our connector when we enter the loop. |
void |
checkLoopAttribute(Entry work)
Copy values from work entry attribute |
void |
close()
Releases resource |
int |
componentCount()
Returns the number of components contained in this branch. |
ConnectorInterface |
getConnector()
Returns the Connector we are working with if this is a Connector loop |
int |
getLoopType()
Returns the source for this loop component (e.g. |
Entry |
getNextEntry(Entry meta)
Returns the next Entry if this is a Connector loop |
int |
getType()
Returns the type of this component. |
void |
initialize()
This method initializes the LoopComponent |
void |
setConnectorParams(Entry work)
Executes the attribute map for the connector params |
void |
setFirstLoop(boolean value)
Set the internal firstLoop variable to the parameter value. |
boolean |
willExecute(Entry work)
This method will execute the Loop condition/connector and determine whether there are more loops to do. |
Methods inherited from class com.ibm.di.server.BranchingComponent |
---|
add1, checkWillExecute, evaluateCondition, evaluateConditions, getBaseConfiguration, getBranchType, getConfiguration, isExecuted, trigger, trigger, trigger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoopComponent(AssemblyLine parent, String name, LoopConfig config) throws Exception
parent
- The AssemblyLine this LoopComponent belongs inname
- The name of this LoopComponentconfig
- The configuration for this LoopComponent
Exception
- Any Exception that might be thrownMethod Detail |
---|
public void initialize() throws Exception
initialize
in class BranchingComponent
Exception
- If this is a Collection Loop, and attribute names are missingpublic ConnectorInterface getConnector()
getConnector
in class AssemblyLineComponent
public Entry getNextEntry(Entry meta) throws Exception
meta
- The work Entry
Exception
- Any Exception thrown by the Connectorpublic int componentCount()
componentCount
in class BranchingComponent
public void setFirstLoop(boolean value)
value
- The value to setpublic int getLoopType()
public boolean willExecute(Entry work) throws Exception
willExecute
in class BranchingComponent
work
- The work Entry
Exception
- Any Exception that might be thrownpublic int getType()
getType
in class BranchingComponent
public void checkLoopAttribute(Entry work)
work
- The work Entrypublic void checkConnectorInit(Entry work) throws Exception
work
- The work Entry
Exception
public void setConnectorParams(Entry work) throws Exception
work
- The work Entry
Exception
public void add(Entry meta) throws Exception
add
in class BranchingComponent
meta
- The work Entry
Exception
- the component is not initialized or
the underlying Connector raised an error or
some of the user-defined hooks raised an errorpublic void close() throws Exception
close
in class BranchingComponent
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |