Package com.ibm.di.api.local.impl
Class AssemblyLineHandlerImpl
- java.lang.Object
-
- com.ibm.di.api.local.impl.AssemblyLineHandlerImpl
-
- All Implemented Interfaces:
AssemblyLineHandler
public class AssemblyLineHandlerImpl extends java.lang.Object implements AssemblyLineHandler
This class implements several methods to handle an AssemblyLine.
-
-
Constructor Summary
Constructors Constructor Description AssemblyLineHandlerImpl(AssemblyLine aAssemblyLine, AssemblyLine aRawAssemblyLine, SessionImpl aSession)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes an AssemblyLine.java.io.Serializable
eval(java.lang.String script)
Evaluates the passed in as parameter script in the context of this AssemblyLine.Entry
executeCycle()
Executes an AssemblyLine cycle with null work Entry attribute.Entry
executeCycle(Entry aEntry)
Executes an AssemblyLine cycle.Entry
executeCycle(Entry aEntry, boolean aProcessTCB)
Executes an AssemblyLine cycle.AssemblyLine
getAssemblyLine()
Returns an AssemblyLine instance.
-
-
-
Constructor Detail
-
AssemblyLineHandlerImpl
public AssemblyLineHandlerImpl(AssemblyLine aAssemblyLine, AssemblyLine aRawAssemblyLine, SessionImpl aSession) throws DIException
Constructor- Parameters:
aAssemblyLine
-AssemblyLine
instanceaRawAssemblyLine
-AssemblyLine
instanceaSession
-SessionImpl
instance- Throws:
DIException
- if some of the parameters isnull
.
-
-
Method Detail
-
getAssemblyLine
public AssemblyLine getAssemblyLine() throws DIException
Returns an AssemblyLine instance.- Specified by:
getAssemblyLine
in interfaceAssemblyLineHandler
- Returns:
this
AssemblyLine.- Throws:
DIException
- if an error occurs while retrieving the AssemblyLine.
-
executeCycle
public Entry executeCycle(Entry aEntry, boolean aProcessTCB) throws DIException
Executes an AssemblyLine cycle. If an Entry is provided then it becomes the work entry.- Specified by:
executeCycle
in interfaceAssemblyLineHandler
- Parameters:
aEntry
- the work entry to use, or null to use an empty work entry/iterator entry.aProcessTCB
- if true, the AL's call/return attribute maps are applied to the provided entry and returned entry.- Returns:
- the work entry at the end of the cycle.
- Throws:
DIException
- if an error occurs while executing the AssemblyLine.
-
executeCycle
public Entry executeCycle(Entry aEntry) throws DIException
Executes an AssemblyLine cycle. If an Entry is provided then it becomes the work entry.- Specified by:
executeCycle
in interfaceAssemblyLineHandler
- Parameters:
aEntry
- the work entry to use, or null to use an empty work entry/iterator entry.- Returns:
- the work entry at the end of the cycle.
- Throws:
DIException
- if an error occurs while executing the AssemblyLine.
-
executeCycle
public Entry executeCycle() throws DIException
Executes an AssemblyLine cycle with null work Entry attribute.- Specified by:
executeCycle
in interfaceAssemblyLineHandler
- Returns:
- the work entry at the end of the cycle
- Throws:
DIException
- if an error occurs while executing the AssemblyLine.
-
close
public void close() throws DIException
Closes an AssemblyLine.- Specified by:
close
in interfaceAssemblyLineHandler
- Throws:
DIException
- if an error occurs while closing the AssemblyLine.
-
eval
public java.io.Serializable eval(java.lang.String script) throws DIException
Evaluates the passed in as parameter script in the context of this AssemblyLine. You can access all the script beans defined in the scope of this AssemblyLine.- Specified by:
eval
in interfaceAssemblyLineHandler
- Parameters:
script
- the script to evaluate.- Returns:
- the serializable object returned by the script or null if no return statement.
- Throws:
DIException
- if an error occurs while evaluating the script
-
-