|
IBM Branch 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
This class is the base class for StatefulSingleAction and StatelessSingleAction. It encapsulates some basic functions, such as context operations.
Field Summary | |
---|---|
protected BTTUserWorkArea |
bttUserWorkArea
The BTT user work area. |
static java.lang.String |
COMPID
Component ID for Server Bean used in trace "#SBEAN" |
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,
BTTServiceRequester aServiceRequester)
Assigns the service. |
protected void |
chainTo(Context aContext)
Chains the action context to aContext. |
void |
close()
|
void |
ejbRemove()
This method prunes the action context. |
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 java.lang.String |
getInstanceId()
Returns the instance id. |
protected KeyedCollection |
getKeyedCollection()
Returns the keyed collection of the action context. |
protected 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 BTTServiceRequester |
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. |
void |
initialize()
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(BTTServiceRequester aServiceRequester)
Releases the service. |
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 |
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 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. |
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 transient BTTSystemData systemData
protected transient BTTUserWorkArea bttUserWorkArea
public static final java.lang.String COMPID
Constructor Detail |
public BaseSingleAction()
Method Detail |
public void initialize() throws BTTSAEException
BTTSAEException
public void setupSessionContext() throws BTTSAEException
BTTSAEException
public void setupSessionContext(java.lang.String sessionCtxName) throws BTTSAEException
BTTSAEException
public void close()
public void ejbRemove()
BTTSAEException
protected java.lang.String getName()
protected void setName(java.lang.String aName)
aName
- The actoin name.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 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)
aFormatName
- The format name.
protected BTTServiceRequester getService(java.lang.String aServiceName) throws BTTSAEException
aServiceName
- The name of the service.
BTTSAEException
protected void releaseService(BTTServiceRequester aServiceRequester) throws BTTSAEException
aServiceRequester
- The service.
BTTSAEException
protected void assignService(java.lang.String aServiceName, BTTServiceRequester aServiceRequester) throws BTTSAEException
aServiceName
- The service name.aServiceRequester
- 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.
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |