|
IBM 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.server.bean.BaseSingleAction
public abstract class BaseSingleAction
This class is the base class for StatefulSingleAction and StatelessSingleAction. It encapsulates some basic functions, such as context operations.
Field Summary | |
---|---|
protected Context |
actionContext
The action context. |
protected BTTUserWorkArea |
bttUserWorkArea
The BTT user work area. |
static java.lang.String |
COMPID
Component ID for Server Bean used in trace "#SBEAN" |
protected java.lang.String |
id
The action id. |
protected boolean |
isDistributedContext
Indicates if the action context is disrtibuted. |
protected java.lang.String |
originWorkstation
The origin workstation. |
protected BTTSystemData |
systemData
The system data for this action. |
Constructor Summary | |
---|---|
BaseSingleAction()
|
Method Summary | |
---|---|
protected DataElement |
addElement(DataElement aDataElement)
Adds a data element to the context. |
protected void |
assignService(java.lang.String aServiceName,
java.lang.Object aServiceRequester)
Assigns the service. |
protected void |
chainTo(Context aContext)
Chains the action context to aContext. |
void |
close()
|
protected void |
doSessionPropagation()
This method implements session propagation |
protected java.lang.String |
getApplicationId()
Returns the application id. |
protected Context |
getContext()
Returns the action context. |
protected Context |
getContextByType(java.lang.String aContextType)
Returns the first context of type aContextType in the chain of contexts. |
protected java.lang.String |
getContextName()
Returns the action context name. |
protected DataElement |
getElementAt(java.lang.String aCompositeKey)
Returns the data element identified by aCompositeKey. |
protected FormatElement |
getFormat(java.lang.String aFormatName)
Returns the format named aFormatName. |
protected static javax.naming.InitialContext |
getInitialContext()
Get the InitialContext from dse.ini |
protected java.lang.String |
getInstanceId()
Returns the instance id. |
protected KeyedCollection |
getKeyedCollection()
Returns the keyed collection of the action context. |
protected abstract java.lang.String |
getName()
Returns the action name. |
protected java.lang.String |
getOriginWorkstation()
Returns the origin workstation. |
protected Context |
getParent()
Returns the parent context of the action context. |
protected java.lang.Object |
getService(java.lang.String aServiceName)
Returns the service named aServiceName. |
protected java.lang.String |
getSessionId()
Returns the session id. |
protected java.lang.String |
getType()
Returns the type of the action context. |
protected java.lang.Object |
getValueAt(java.lang.String aCompositeKey)
Returns the value of the data element identified by aCompositeKey. |
protected static java.lang.String |
getWorkAreaJNDI()
|
void |
initialize()
This method performs EJB initialization operation: 1. |
void |
initialize(BTTSystemData sys)
This method performs EJB initialization operation: 1. |
protected boolean |
isChained()
Returns true if the action context has parent. |
protected boolean |
isDistributedContext()
Returns true if the action context is distributed context. |
protected java.util.Hashtable |
mapResponseFromCHA(java.util.Vector fieldNames)
Mapping response data from CHA. |
protected void |
prune()
Prunes the action context from the hierarchy. |
protected void |
releaseService(java.lang.Object aServiceRequester)
Deprecated. do thing in BTT5.2 |
protected DataElement |
removeAt(java.lang.String aCompositeKey)
Removes the data element identified by aCompositeKey. |
protected boolean |
runInSession(java.lang.String tid)
Set the origin workstation identifier. |
protected void |
setApplicationId(java.lang.String appId)
Sets the application id. |
protected void |
setContext(Context aContext)
Sets the action context. |
protected void |
setContextName(java.lang.String aContextName)
Sets the action context name to aContextName. |
protected void |
setInstanceId(java.lang.String insid)
Sets the instance id. |
protected void |
setIsDistributedContext(boolean isDistributed)
Sets true if the action context is distributed context. |
protected void |
setKeyedCollection(KeyedCollection aKeyedCollection)
Sets the keyed collection of the action context to aKeyedCollection. |
protected abstract void |
setName(java.lang.String aName)
Sets the action name. |
protected void |
setOriginWorkstation(java.lang.String aOriginWorkstation)
Sets the origin workstation. |
protected void |
setSessionId(java.lang.String sid)
Sets the session id. |
protected void |
setType(java.lang.String aContextType)
Sets the type of the action context to aContextType. |
void |
setupSessionContext()
Setup session context: 1. |
void |
setupSessionContext(java.lang.String sessionCtxName)
Setup session context: 1. |
protected void |
setValueAt(java.lang.String aCompositeKey,
java.lang.Object aDataValue)
Sets the value of the data elmement identified by aCompositeKey. |
protected void |
unassignService(java.lang.String aServiceName)
Unassigns the service,releases the service from action context. |
protected void |
unchain()
Unchains the action context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String id
protected Context actionContext
protected boolean isDistributedContext
protected java.lang.String originWorkstation
protected BTTSystemData systemData
protected BTTUserWorkArea bttUserWorkArea
public static final java.lang.String COMPID
Constructor Detail |
---|
public BaseSingleAction()
Method Detail |
---|
public void initialize() throws BTTSAEException
BTTSAEException
public void initialize(BTTSystemData sys) throws BTTSAEException
BTTSAEException
public void setupSessionContext() throws DSEInvalidRequestException, BTTSAEException
BTTSAEException
DSEInvalidRequestException
public void setupSessionContext(java.lang.String sessionCtxName) throws BTTSAEException
BTTSAEException
public void close() throws BTTSAEException
BTTSAEException
protected abstract java.lang.String getName() throws BTTSAEException
BTTSAEException
protected abstract void setName(java.lang.String aName) throws BTTSAEException
aName
- The actoin name.
BTTSAEException
protected Context getContext()
protected void setContext(Context aContext)
aContext
- The action context.protected boolean isDistributedContext()
protected void setIsDistributedContext(boolean isDistributed)
isDistributed
- If the action context is distributed context.protected java.lang.String getSessionId()
protected void setSessionId(java.lang.String sid)
sid
- The session id.protected java.lang.String getApplicationId()
protected void setApplicationId(java.lang.String appId)
appId
- The application id.protected java.lang.String getInstanceId()
protected void setInstanceId(java.lang.String insid)
sid
- The instance id.protected java.lang.String getOriginWorkstation()
protected void setOriginWorkstation(java.lang.String aOriginWorkstation)
aOriginWorkstation
- The origin workstation.protected DataElement addElement(DataElement aDataElement) throws BTTSAEException
aDataElement
- The data element.
BTTSAEException
protected DataElement getElementAt(java.lang.String aCompositeKey) throws BTTSAEException
aCompositeKey
- The composite key.
BTTSAEException
protected DataElement removeAt(java.lang.String aCompositeKey) throws BTTSAEException
aCompositeKey
- The composite key.
BTTSAEException
protected java.lang.Object getValueAt(java.lang.String aCompositeKey) throws BTTSAEException
aCompositeKey
- The composite key.
BTTSAEException
protected void setValueAt(java.lang.String aCompositeKey, java.lang.Object aDataValue) throws BTTSAEException
aCompositeKey
- The composite key.aDataValue
- The value.
BTTSAEException
protected KeyedCollection getKeyedCollection() throws BTTSAEException
BTTSAEException
protected void setKeyedCollection(KeyedCollection aKeyedCollection) throws BTTSAEException
aKeyedCollection
- The keyed collection.
BTTSAEException
protected java.lang.String getType() throws BTTSAEException
BTTSAEException
protected void setType(java.lang.String aContextType) throws BTTSAEException
aContextType
- The type.
BTTSAEException
protected void chainTo(Context aContext) throws BTTSAEException
aContext
- The context.
BTTSAEException
protected boolean isChained() throws BTTSAEException
BTTSAEException
protected Context getContextByType(java.lang.String aContextType) throws BTTSAEException
aContextType
- The context type.
BTTSAEException
protected java.lang.String getContextName()
protected void setContextName(java.lang.String aContextName)
aContextName
- The action context name.protected Context getParent() throws BTTSAEException
BTTSAEException
protected void unchain() throws BTTSAEException
BTTSAEException
protected void prune() throws BTTSAEException
BTTSAEException
protected FormatElement getFormat(java.lang.String aFormatName) throws java.io.IOException
aFormatName
- The format name.
java.io.IOException
protected java.lang.Object getService(java.lang.String aServiceName) throws BTTSAEException
aServiceName
- The name of the service.
BTTSAEException
protected void releaseService(java.lang.Object aServiceRequester) throws BTTSAEException
aServiceRequester
- The service.
BTTSAEException
protected void assignService(java.lang.String aServiceName, java.lang.Object aServiceRequester) throws BTTSAEException
aServiceName
- The service name.Object
- The service.
BTTSAEException
protected void unassignService(java.lang.String aServiceName) throws BTTSAEException
aServiceName
- The service name.
BTTSAEException
protected java.util.Hashtable mapResponseFromCHA(java.util.Vector fieldNames) throws BTTSAEException
fieldNames
- The field names.
BTTSAEException
protected boolean runInSession(java.lang.String tid)
tid
- The origin workstation.
protected void doSessionPropagation() throws BTTSAEException
BTTSAEException
protected static javax.naming.InitialContext getInitialContext() throws DSEInvalidRequestException, BTTSAEException
DSEInvalidRequestException
BTTSAEException
protected static java.lang.String getWorkAreaJNDI() throws BTTSAEException
BTTSAEException
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |