IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.ajax
Class DefaultPaginationOp

java.lang.Object
  extended by com.ibm.btt.base.BTTOperation
      extended by com.ibm.btt.base.BTTServerOperation
          extended by com.ibm.btt.cs.ajax.AbstractPaginationOp
              extended by com.ibm.btt.cs.ajax.DefaultPaginationOp
All Implemented Interfaces:
Cacheable, Operation, ServerOperation, java.io.Externalizable, java.io.Serializable

public class DefaultPaginationOp
extends AbstractPaginationOp

this class is used to handle the ajax table pagination request. Functional developer should implement this class to do real work. Main fuction: 1. chain the paginition operation context into parent context. e.g processor context 2. map necessary paginiation context info into invoked biz operation context as input 3. chain biz operation context into parent context. e.g processor context 4. invoke the biz operation for retrieve data into biz context 5. map the biz operation output context data into processor context. 6. unchain biz operaiton context

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.btt.cs.ajax.AbstractPaginationOp
AbstractPaginationOp.InternalOperationRepliedListener
 
Field Summary
 
Fields inherited from class com.ibm.btt.base.BTTOperation
aOperationRepliedListener, COMPID, externalizer
 
Constructor Summary
DefaultPaginationOp()
           
 
Method Summary
protected  void afterExecuteBizOp()
          This logic wll be implemented on the project level to handle the result from the business operation and put the necessary data into the operation context if necessary.
protected  void beforeExecuteBizOp()
          The logic will be implemented on the project-level to get some required parameters from the request data and put the parameter into the biz operation context and chain the biz operation context into parent(processor) context this is occurred before the biz operation instanced.
protected  void handleBizOpInputMapping()
          the alpha developer who create a new Technical operation can extends this method for adding some data mapping from biz operation context into parent/processor context.
protected  void handleBizOpOutputMapping()
          the alpha developer who create a new Technical operation can extends this method for adding some data mapping from parent/processor context to the biz operation context.
protected  void handleException(java.lang.Exception e)
          When an exception occurred in the operation executing process, how to handle the exception. maybe update the errMsg field or just throw the exception out
 
Methods inherited from class com.ibm.btt.cs.ajax.AbstractPaginationOp
execute, getBizOp, getTableData, performBizOpInputMapper
 
Methods inherited from class com.ibm.btt.base.BTTServerOperation
createOperation, fireExitEvent, getCSReplyFormat, getCSRequestFormat, getOriginWorkstation, runInSession, setCSReplyFormat, setCSRequestFormat, setOriginWorkstation, updateContext, updateContext, validate, validate
 
Methods inherited from class com.ibm.btt.base.BTTOperation
addElement, addOperationRepliedListener, chainTo, clearKeyedCollection, close, externalizer, fireHandleOperationRepliedEvent, getApplicationId, getContext, getContextByType, getContextName, getContextNamed, getElementAt, getExternalizer, getFormat, getFormats, getHostReceiveFormat, getHostSendFormat, getInstanceOfOperationStep, getKeyedCollection, getName, getOperationStep, getOperationStepRC, getOperationSteps, getParent, getSelfDefinedOpTagInputStream, getService, getSessionId, getSgmlSelfDefinedOpFileName, getType, getValueAt, getXValidator, initializeFormatFrom, initializeFrom, initializeKeyedCollectionValueFrom, initializeOpStep, initializeOpStepsFrom, isCacheable, isChained, postExecute, preExecute, prune, readExternal, readExternal, readObject, reinitialize, removeAt, removeExternal, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setDefinedContext, setExternalizer, setHostReceiveFormat, setHostSendFormat, setKeyedCollection, setName, setSessionId, setType, setValueAt, setXValidator, toString, toStrings, toTags, unchain, writeExternal, writeExternal, xValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.base.Operation
addElement, addOperationRepliedListener, chainTo, close, getApplicationId, getContext, getContextName, getElementAt, getFormat, getFormats, getKeyedCollection, getName, getParent, getService, getType, getValueAt, isChained, prune, removeAt, removeOperationRepliedListener, setApplicationId, setContext, setContextName, setKeyedCollection, setName, setType, setValueAt, unchain, xValidate
 
Methods inherited from interface com.ibm.btt.base.Cacheable
isCacheable, reinitialize
 

Constructor Detail

DefaultPaginationOp

public DefaultPaginationOp()
Method Detail

handleBizOpOutputMapping

protected void handleBizOpOutputMapping()
                                 throws DSEException
the alpha developer who create a new Technical operation can extends this method for adding some data mapping from parent/processor context to the biz operation context.

Specified by:
handleBizOpOutputMapping in class AbstractPaginationOp
Throws:
DSEException

handleBizOpInputMapping

protected void handleBizOpInputMapping()
                                throws DSEException
the alpha developer who create a new Technical operation can extends this method for adding some data mapping from biz operation context into parent/processor context.

Specified by:
handleBizOpInputMapping in class AbstractPaginationOp
Throws:
DSEException

handleException

protected void handleException(java.lang.Exception e)
                        throws java.lang.Exception
Description copied from class: AbstractPaginationOp
When an exception occurred in the operation executing process, how to handle the exception. maybe update the errMsg field or just throw the exception out

Specified by:
handleException in class AbstractPaginationOp
Throws:
java.lang.Exception

beforeExecuteBizOp

protected void beforeExecuteBizOp()
                           throws DSEException
Description copied from class: AbstractPaginationOp
The logic will be implemented on the project-level to get some required parameters from the request data and put the parameter into the biz operation context and chain the biz operation context into parent(processor) context this is occurred before the biz operation instanced.

Specified by:
beforeExecuteBizOp in class AbstractPaginationOp
Throws:
DSEException

afterExecuteBizOp

protected void afterExecuteBizOp()
                          throws DSEException
Description copied from class: AbstractPaginationOp
This logic wll be implemented on the project level to handle the result from the business operation and put the necessary data into the operation context if necessary. some data can be updated here when biz operation finished. you can ref DefaultPaginationOp for a sample

Specified by:
afterExecuteBizOp in class AbstractPaginationOp
Throws:
DSEException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011