|
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.cha.ejb.CHASessionBean
public class CHASessionBean
Bean implementation class for Enterprise Bean: CHASession
Constructor Summary | |
---|---|
CHASessionBean()
|
Method Summary | |
---|---|
void |
addChild(java.lang.String childInstanceID,
java.lang.String instanceID)
Add the child-parent relationship |
void |
addElement(java.lang.String instanceID,
java.io.Serializable anElement)
Adds an element to the Context |
void |
chainTo(java.lang.String instanceID,
java.lang.String parentInstanceID)
Chains this context to the context named specified by parentInstanceID. |
void |
clearKeyedCollection(java.lang.String instanceID)
Clears the context (current level only) by destroying the current keyed collection associated and replacing it with a new one. |
void |
clearKeyedCollection(java.lang.String instanceID,
boolean keepKCollStatus,
boolean clearOnlyValues)
This method clears both the typed and non-typed elements in the context keyed collection. |
void |
commit(java.lang.String instanceID)
Commit a context and all its children and childrenĄŻ children into db, and remove these contexts from memory. |
boolean |
containsChild(java.lang.String instanceID,
java.lang.String aContextName)
Returns true if this context has a child with the name aContextName . |
void |
ejbActivate()
ejbActivate |
void |
ejbCreate()
ejbCreate |
void |
ejbPassivate()
ejbPassivate |
void |
ejbRemove()
ejbRemove |
Vector |
fields(java.lang.String instanceID)
Returns all the data fields, which are addressable from this context. |
java.lang.String |
getAncestorByName(java.lang.String instanceID,
java.lang.String aContextName)
Searches the context tree for an ancestor Context named aContextName and returns the first matching context. |
Vector |
getChildren(java.lang.String parentInstanceID)
Get the children of the context specified by parameter parentInstanceID |
Vector |
getChildrenAtAnyLevel(java.lang.String currentInstanceID)
Get the children of a remote context at any level from the context tree. |
Context |
getContext(java.lang.String instanceID)
Get the context object according to the instanceID. |
java.lang.String |
getContextByType(java.lang.String instanceID,
java.lang.String aTypeName)
Returns the instanceID of the first context that matches its type to aTypeName. |
java.lang.String |
getContextNamed(java.lang.String contextName)
Searches the context tree from the root context for a context named aContextName |
Vector |
getContextTable()
Get the context table which is a hashtable. |
java.io.Serializable |
getElementAt(java.lang.String instanceID,
java.lang.String aCompositeKey,
boolean isReadOnly)
Returns the element of its keyedCollection,or keyedCollections of the upper contexts which is located at aCompositeKey path. |
KeyedCollection |
getKeyedCollection(java.lang.String instanceID)
Returns the keyedCollection attribute. |
java.lang.String |
getLevel(java.lang.String instanceID)
We can define an attribute --level-- in dsectxt.xml file to indicate level of the context. |
java.lang.String |
getName(java.lang.String instanceID)
|
java.lang.String |
getNextContextHorizontal(java.lang.String currentInstanceID)
The method used to iterate over the context tree. |
java.lang.String |
getNextContextVertical(java.lang.String parentInstanceID,
java.lang.String childInstanceID)
The method used to iterate over the context tree. |
java.lang.String |
getParentID(java.lang.String childInstanceID)
|
java.lang.String |
getParentName(java.lang.String instanceID)
|
java.lang.String |
getRoot()
Returns the instanceID of root context of the context tree. |
Context |
getRootContext()
Get the root context |
javax.ejb.SessionContext |
getSessionContext()
getSessionContext |
java.lang.String |
getTagName(java.lang.String instanceID)
Returns a String used by the externalizer. |
java.lang.String |
getTypeName(java.lang.String instanceID)
|
DataElement |
getTypePackages()
Get the packages info for type data from CHA server side dse.ini |
Hashtable |
getTypeTagClassTable()
Get the tag class table for type data from CHA server side dse.ini |
DataElement |
getTypeTagClassTableDefinition()
Get definition for tag class table in server side dse.ini file |
Vector |
getTypeTags()
Get type tags from CHA server side dsetype.xml |
boolean |
isAddToDynamicKColl(java.lang.String instanceID)
Returns the value of the addToDynamicKColl property. |
boolean |
isChained(java.lang.String instanceID)
return true/false based on the existence of a parent ID |
boolean |
isDirty(java.lang.String instanceID)
|
boolean |
isReadOnly(java.lang.String instanceID)
If the definition of this context in dsetxt.xml has the attribute readonly="true", this method will return true, otherwise, false is returned. |
boolean |
isRoot(java.lang.String instanceID)
|
void |
mapContents(java.lang.String formatName,
Context inputContext,
Context outputContext)
Maps two contexts, map the content of inputContext into outputContext. |
java.lang.String |
newContext(java.lang.String contextName,
java.lang.String typeName,
Context parentContext)
Creates a new CHAInstanceMemoryFactory Entity based on a context name, and the following optional params: type name parent CHAInstanceMemoryFactory remote interface The name specified in the context name must exist in the external XML definiton files. |
java.lang.String |
newContext(java.lang.String contextName,
java.lang.String typeName,
Context parentContext,
KeyedCollection aKeyedCollection)
Creates a new CHAInstanceMemoryFactory Entity based on a context name, and the following optional params: type name parent CHAInstanceMemoryFactory remote interface The name specified in the context name must exist in the external XML definiton files. |
Context |
newDynamicContext(java.lang.String contextName)
Creates a new dynamic Local context with a supplied name. |
java.lang.String |
newRemoteContext(java.lang.String contextName,
java.lang.String typeName,
Context parentContext,
KeyedCollection aKeyedCollection)
Create a remote Context with settings from facade side |
void |
prune(java.lang.String currentInstanceID)
Removes this context and its children from the context tree. |
void |
pruneFromMemory(java.lang.String currentInstanceID)
Removes this context and its children from the context tree. |
DataElement |
removeAt(java.lang.String instanceID,
java.lang.String aCompositeKey)
Removes aCompositeKey element of its keyedCollection. |
DataElement |
removeAtAnyLevel(java.lang.String instanceID,
java.lang.String aCompositeKey)
Removes an element of its keyedCollection, or the keyedCollections in the upper contexts, located in the aCompositeKey path. |
void |
removeChild(java.lang.String childInstanceID)
Remove the child-parent relationship |
void |
removeInstance(java.lang.String currentInstanceID)
Removes this context and its children from the context tree. |
void |
setAddToDynamicKColl(java.lang.String instanceID,
boolean newValue)
Sets the value of the addToDynamicKColl property. |
void |
setContext(java.lang.String instanceID,
Context aContext)
Set a context object into the hashtable or DB. |
void |
setDirty(java.lang.String instanceID,
boolean dirty)
|
void |
setKCollDynamic(java.lang.String instanceID,
boolean aValue)
Set the value to the attribute dynamic for the keyedCollection in this context. |
void |
setKeyedCollection(java.lang.String instanceID,
java.io.Serializable akeyedCollection)
set the context's KeyedCollection. |
void |
setName(java.lang.String instanceID,
java.lang.String aContextName)
|
void |
setParentID(java.lang.String childInstanceID,
java.lang.String parentInstanceID)
Establish the child-parent relationship |
void |
setRoot(java.lang.String instanceID)
|
void |
setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext |
void |
setTypeName(java.lang.String instanceID,
java.lang.String aContextType)
|
int |
setValueAt(java.lang.String instanceID,
SortedTable aSortedTable)
The function is similiar to setValueAt(String, Object) except that set pairs of keys and values stored in aSortedTable via one method. |
void |
setValueAt(java.lang.String instanceID,
java.lang.String aKey,
java.io.Serializable aValue)
|
Vector |
toStrings(java.lang.String instanceID)
Returns a visual representation of this context. |
int |
trySetElementAt(java.lang.String instanceID,
java.lang.String aCompositeKey,
java.io.Serializable aValue)
Set the value of the element of its keyedCollection, or keyedCollections of the upper contexts which is located at aCompositeKey path. |
void |
unchain(java.lang.String instanceID)
Remove the child-parent relationship of the current context and its parent |
DataElement |
unformat(java.lang.String formatName,
java.lang.String aString,
java.lang.String instanceID)
|
DataElement |
unformatHashtable(java.lang.String formatName,
Hashtable aHashtable,
java.lang.String instanceID)
|
void |
unformatIndexedCollection(java.lang.String formatName,
Vector aVectorOfHashtables,
java.lang.String instanceID)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CHASessionBean()
Method Detail |
---|
public javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
public void ejbCreate() throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public java.lang.String newContext(java.lang.String contextName, java.lang.String typeName, Context parentContext) throws CHARemoteProcessException
CHARemoteProcessException
public java.lang.String newRemoteContext(java.lang.String contextName, java.lang.String typeName, Context parentContext, KeyedCollection aKeyedCollection) throws CHARemoteProcessException
CHARemoteProcessException
public java.lang.String newContext(java.lang.String contextName, java.lang.String typeName, Context parentContext, KeyedCollection aKeyedCollection) throws CHARemoteProcessException
CHARemoteProcessException
public Context newDynamicContext(java.lang.String contextName) throws CHARemoteProcessException
CHARemoteProcessException
public java.lang.String getRoot() throws CHARemoteProcessException
CHARemoteProcessException
public void prune(java.lang.String currentInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void pruneFromMemory(java.lang.String currentInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void removeInstance(java.lang.String currentInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public Vector getChildrenAtAnyLevel(java.lang.String currentInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public java.lang.String getContextNamed(java.lang.String contextName) throws CHARemoteProcessException
CHARemoteProcessException
public Context getRootContext() throws CHARemoteProcessException
CHAException
CHARemoteProcessException
public java.lang.String getNextContextHorizontal(java.lang.String currentInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public java.lang.String getNextContextVertical(java.lang.String parentInstanceID, java.lang.String childInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void addChild(java.lang.String childInstanceID, java.lang.String instanceID) throws CHARemoteProcessException
childInstanceID
-
CHAException
CHARemoteProcessException
public void removeChild(java.lang.String childInstanceID) throws CHARemoteProcessException
childInstanceID
-
CHAException
CHARemoteProcessException
public Vector getChildren(java.lang.String parentInstanceID) throws CHARemoteProcessException
CHAException
CHARemoteProcessException
public boolean containsChild(java.lang.String instanceID, java.lang.String aContextName) throws CHARemoteProcessException
CHARemoteProcessException
public Context getContext(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHAException
CHARemoteProcessException
public void chainTo(java.lang.String instanceID, java.lang.String parentInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void unchain(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHAException
CHARemoteProcessException
public Vector getTypeTags()
public DataElement getTypePackages()
public Hashtable getTypeTagClassTable()
public DataElement getTypeTagClassTableDefinition()
public void addElement(java.lang.String instanceID, java.io.Serializable anElement) throws CHARemoteProcessException
CHARemoteProcessException
public void setContext(java.lang.String instanceID, Context aContext) throws CHARemoteProcessException
instanceID
- aContext
-
CHAException
CHARemoteProcessException
public boolean isRoot(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHAException
CHARemoteProcessException
public java.lang.String getParentID(java.lang.String childInstanceID) throws CHARemoteProcessException
childInstanceID
-
CHARemoteProcessException
public void setParentID(java.lang.String childInstanceID, java.lang.String parentInstanceID) throws CHARemoteProcessException
CHARemoteProcessException
public boolean isChained(java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void setAddToDynamicKColl(java.lang.String instanceID, boolean newValue) throws CHARemoteProcessException
newValue
- boolean The new value of the property.
CHARemoteProcessException
public void setValueAt(java.lang.String instanceID, java.lang.String aKey, java.io.Serializable aValue) throws CHARemoteProcessException
CHARemoteProcessException
public int trySetElementAt(java.lang.String instanceID, java.lang.String aCompositeKey, java.io.Serializable aValue) throws CHARemoteProcessException
CHARemoteProcessException
public java.io.Serializable getElementAt(java.lang.String instanceID, java.lang.String aCompositeKey, boolean isReadOnly) throws CHARemoteProcessException
CHARemoteProcessException
public void setKeyedCollection(java.lang.String instanceID, java.io.Serializable akeyedCollection) throws CHARemoteProcessException
CHARemoteProcessException
public void clearKeyedCollection(java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public Vector fields(java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public KeyedCollection getKeyedCollection(java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public java.lang.String getAncestorByName(java.lang.String instanceID, java.lang.String aContextName) throws CHARemoteProcessException
aContextName
- java.lang.String
CHARemoteProcessException
public java.lang.String getTypeName(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHARemoteProcessException
public java.lang.String getContextByType(java.lang.String instanceID, java.lang.String aTypeName) throws CHARemoteProcessException
CHARemoteProcessException
public boolean isAddToDynamicKColl(java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public Vector toStrings(java.lang.String instanceID)
public java.lang.String getTagName(java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void setKCollDynamic(java.lang.String instanceID, boolean aValue) throws CHARemoteProcessException
aValue
-
CHARemoteProcessException
public DataElement removeAt(java.lang.String instanceID, java.lang.String aCompositeKey) throws CHARemoteProcessException
CHARemoteProcessException
public DataElement removeAtAnyLevel(java.lang.String instanceID, java.lang.String aCompositeKey) throws CHARemoteProcessException
CHARemoteProcessException
public int setValueAt(java.lang.String instanceID, SortedTable aSortedTable)
aSortedTable
-
public boolean isReadOnly(java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public java.lang.String getLevel(java.lang.String instanceID) throws CHARemoteProcessException
CHAException
CHARemoteProcessException
public void clearKeyedCollection(java.lang.String instanceID, boolean keepKCollStatus, boolean clearOnlyValues) throws CHARemoteProcessException, java.io.IOException
keepKCollStatus
- boolean (false - clear also the context kColl attributes; true -
keep the context kColl attributes and clear only the kColl data
elements)clearOnlyValues
- boolean (false - clear all attributes of the context kColl data
elements; true - clear only kColl data elements values)
java.io.IOException
- -
If keepKCollStatus or clearOnlyValues are false and the keyed
collection has not been defined in the generic data file or in
the generic types file
CHARemoteProcessException
public java.lang.String getName(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHAException
CHARemoteProcessException
public void setName(java.lang.String instanceID, java.lang.String aContextName) throws CHARemoteProcessException
instanceID
- aContextName
-
CHAException
CHARemoteProcessException
public void setRoot(java.lang.String instanceID) throws CHARemoteProcessException
string
-
CHARemoteProcessException
public void setTypeName(java.lang.String instanceID, java.lang.String aContextType) throws CHARemoteProcessException
instanceID
- aContextType
-
CHAException
CHARemoteProcessException
public Vector getContextTable()
public void commit(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHAException
CHARemoteProcessException
public DataElement unformat(java.lang.String formatName, java.lang.String aString, java.lang.String instanceID) throws CHARemoteProcessException
formatName
- aString
- aContext
-
DSEInvalidRequestException
DSEInvalidArgumentException
CHARemoteProcessException
public DataElement unformatHashtable(java.lang.String formatName, Hashtable aHashtable, java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void unformatIndexedCollection(java.lang.String formatName, Vector aVectorOfHashtables, java.lang.String instanceID) throws CHARemoteProcessException
CHARemoteProcessException
public void mapContents(java.lang.String formatName, Context inputContext, Context outputContext) throws CHARemoteProcessException
inputContext
- outputContext
- formatName
-
DSEInvalidRequestException
CHARemoteProcessException
public java.lang.String getParentName(java.lang.String instanceID) throws CHARemoteProcessException, DSEInvalidRequestException
CHAException
DSEInvalidRequestException
CHARemoteProcessException
public boolean isDirty(java.lang.String instanceID) throws CHARemoteProcessException
instanceID
-
CHAException
CHAException
CHARemoteProcessException
public void setDirty(java.lang.String instanceID, boolean dirty) throws CHARemoteProcessException
instanceID
- dirty
-
CHAException
CHARemoteProcessException
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |