|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.OperationStep
@ATTR(value={"id#String#REQUIRED","implClass#String#IMPLIED"}) public abstract class OperationStep
This class enables you to break an operation into a set of operation steps. This provides an opportunity to reuse code when performing the same specific tasks within different operations. This class accepts the main Operation protocol so that pieces of code can be moved from the main operation flow to a specific operation step and the other way around without changing the code. Customized operation steps can be defined as children of this class for multiple purposes.
Field Summary | |
---|---|
static int |
RC_ERROR
|
static int |
RC_OK
|
Constructor Summary | |
---|---|
OperationStep()
|
Method Summary | |
---|---|
DataElement |
addElement(DataElement aDataElement)
Adds the element aDataElement to the keyed collection of the operation. |
abstract int |
execute()
This is an abstract method. |
java.lang.String |
getApplicationId()
Returns the operation applicationId. |
Context |
getContext()
Returns the operation context. |
DataElement |
getElementAt(java.lang.String aCompositeKey)
Returns the DataElement identified by aCompositeKey. |
java.lang.Object |
getFormat(java.lang.String aFormatName)
Returns the operation format named FormatName. |
Hashtable |
getFormats()
Returns the operation formats Hashtable. |
KeyedCollection |
getKeyedCollection()
Returns the context keyedCollection. |
java.lang.String |
getName()
Returns the operation step name. |
Operation |
getOperation()
Returns the operation attribute of operationStep. |
KeyedCollection |
getParams()
Returns the parameters of the operation step. |
Context |
getParent()
Returns the Context object defined as the parent context of the operation context. |
Service |
getService(java.lang.String aServiceName)
Returns the service named aServiceName. |
java.lang.Object |
getValueAt(java.lang.String aCompositeKey)
Returns the value of the data element identified by aConpositeKey. |
void |
postExecute(java.lang.Object object)
execute the method after excuting this opstep |
java.lang.Object |
preExecute()
execute this method before excuting this opstep |
DataElement |
removeAt(java.lang.String aCompositeKey)
Removes the data element identified by aCompositeKey from the context data collection. |
void |
setApplicationId(java.lang.String appId)
Sets the operation application id to applicationId. |
void |
setContext(Context aContext)
Sets the operation context to aContext. |
void |
setKeyedCollection(KeyedCollection kColl)
Sets the operation KeyedCollection |
void |
setName(java.lang.String aName)
Sets the operation step name to name. |
void |
setOperation(Operation anOperation)
Sets the operation attribute of operationStep. |
void |
setParams(KeyedCollection kc)
Sets the parameters of the operation step. |
void |
setValueAt(java.lang.String aCompositeKey,
java.lang.Object aDataValue)
Sets the value of the data identified by aCompositeKey to aDataValue. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RC_OK
public static final int RC_ERROR
Constructor Detail |
---|
public OperationStep()
Method Detail |
---|
public abstract int execute() throws java.lang.Exception
execute
in interface OperationStepInterface
java.lang.Exception
public Context getContext()
getContext
in interface OperationStepInterface
public java.lang.Object getFormat(java.lang.String aFormatName)
getFormat
in interface OperationStepInterface
aFormatName
- java.lang.String
public Operation getOperation()
getOperation
in interface OperationStepInterface
public KeyedCollection getParams()
getParams
in interface OperationStepInterface
public java.lang.Object getValueAt(java.lang.String aCompositeKey) throws DSEObjectNotFoundException
getValueAt
in interface OperationStepInterface
aCompositeKey
- java.lang.String
DSEObjectNotFoundException
public void setOperation(Operation anOperation)
setOperation
in interface OperationStepInterface
anOperation
- com.ibm.btt.base.Operationpublic void setParams(KeyedCollection kc)
setParams
in interface OperationStepInterface
kc
- com.ibm.btt.base.KeyedCollectionpublic void setValueAt(java.lang.String aCompositeKey, java.lang.Object aDataValue) throws DSEObjectNotFoundException, DSEInvalidArgumentException
setValueAt
in interface OperationStepInterface
aCompositeKey
- java.lang.StringaDataValue
- java.lang.Object
DSEObjectNotFoundException
DSEInvalidArgumentException
public void setContext(Context aContext)
setContext
in interface OperationStepInterface
aContext
- com.ibm.btt.base.Contextpublic Service getService(java.lang.String aServiceName) throws DSEObjectNotFoundException
getService
in interface OperationStepInterface
aServiceName
- The name of the service.
java.io.IOException
DSEObjectNotFoundException
public Hashtable getFormats()
getFormats
in interface OperationStepInterface
public Context getParent() throws DSEInvalidRequestException
getParent
in interface OperationStepInterface
DSEInvalidRequestException
public java.lang.String getApplicationId()
getApplicationId
in interface OperationStepInterface
public void setApplicationId(java.lang.String appId)
setApplicationId
in interface OperationStepInterface
name
- java.lang.Stringpublic java.lang.String getName()
getName
in interface OperationStepInterface
public void setName(java.lang.String aName) throws DSEInvalidArgumentException
setName
in interface OperationStepInterface
name
- java.lang.String
DSEInvalidArgumentException
public DataElement addElement(DataElement aDataElement) throws DSEInvalidRequestException
addElement
in interface OperationStepInterface
aDataElement
- com.ibm.btt.base.DataElement
DSEInvalidRequestException
public DataElement removeAt(java.lang.String aCompositeKey) throws DSEInvalidRequestException, DSEObjectNotFoundException
removeAt
in interface OperationStepInterface
aCompositeKey
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public KeyedCollection getKeyedCollection() throws DSEInvalidRequestException
getKeyedCollection
in interface OperationStepInterface
DSEInvalidRequestException
public void setKeyedCollection(KeyedCollection kColl) throws DSEInvalidRequestException
setKeyedCollection
in interface OperationStepInterface
DSEInvalidRequestException
public java.lang.Object preExecute()
preExecute
in interface OperationStepInterface
public void postExecute(java.lang.Object object)
postExecute
in interface OperationStepInterface
object
- public DataElement getElementAt(java.lang.String aCompositeKey) throws DSEObjectNotFoundException
getElementAt
in interface OperationStepInterface
aFormatName
- java.lang.String
DSEObjectNotFoundException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |