|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CHAInstanceLocal
Local interface for Enterprise Bean: CHAInstance
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
addElement(java.io.Serializable anElement)
Adds an element to the Context |
void |
clearKeyedCollection()
Clears the context (current level only) by destroying the current keyed collection associated and replacing it with a new one. |
void |
clearKeyedCollection(boolean keepKCollStatus,
boolean clearOnlyValues)
This method clears both the typed and non-typed elements in the context keyed collection. |
Vector |
fields()
Returns all the data fields, which are addressable from this context. |
void |
forChainTo(java.lang.String parentInstanceID)
Chains this context to the context named specified by parentInstanceID. |
void |
forUnchain()
Removes this context and all its children from the context tree. |
java.lang.String |
getAncestorByName(java.lang.String aContextName)
Searches the context tree for an ancestor Context named aContextName and returns the first matching context. |
byte[] |
getContext()
Get accessor for persistent attribute: context |
java.lang.String |
getContextByType(java.lang.String aTypeName)
Returns the instanceID of the first context that matches its type to aTypeName. |
java.io.Serializable |
getElementAt(java.lang.String aCompositeKey,
boolean isReadOnly)
Returns the element of its keyedCollection,or keyedCollections of the upper contexts which is located at aCompositeKey path. |
javax.ejb.EntityContext |
getEntityContext()
getEntityContext |
java.lang.String |
getInstanceID()
Get accessor for persistent attribute: instanceID |
boolean |
getIsRoot()
Get accessor for persistent attribute: isRoot |
KeyedCollection |
getKeyedCollection()
Returns the keyedCollection attribute. |
java.lang.String |
getLevel()
We can define an attribute --level-- in dsectxt.xml file to indicate level of the context. |
java.lang.String |
getName()
Get accessor for persistent attribute: name |
java.lang.String |
getParentID()
Get accessor for persistent attribute: parentID |
Context |
getRealContext()
Returns the _context. |
java.lang.String |
getTypeName()
Get accessor for persistent attribute: typeName |
boolean |
isAddToDynamicKColl()
Returns the value of the addToDynamicKColl property. |
boolean |
isChained()
return true/false based on the existence of a parent ID |
boolean |
isReadOnly()
If the definition of this context in dsetxt.xml has the attribute readonly="true", this method will return true, otherwise, false is returned. |
DataElement |
removeAt(java.lang.String aCompositeKey)
Removes aCompositeKey element of its keyedCollection. |
DataElement |
removeAtAnyLevel(java.lang.String aCompositeKey)
Removes an element of its keyedCollection, or the keyedCollections in the upper contexts, located in the aCompositeKey path. |
void |
setAddToDynamicKColl(boolean newValue)
Sets the value of the addToDynamicKColl property. |
void |
setContext(byte[] newContext)
Set accessor for persistent attribute: context |
void |
setInstanceID(java.lang.String newInstanceID)
Set accessor for persistent attribute: instanceID |
void |
setIsRoot(boolean newIsRoot)
Set accessor for persistent attribute: isRoot |
void |
setKCollDynamic(boolean aValue)
Set the value to the attribute dynamic for the keyedCollection in this context. |
void |
setKeyedCollection(java.io.Serializable akeyedCollection)
set the context's KeyedCollection. |
void |
setName(java.lang.String newName)
Set accessor for persistent attribute: name |
void |
setParentID(java.lang.String newParentID)
Set accessor for persistent attribute: parentID |
void |
setRealContext(Context context)
Sets the _context. |
void |
setTypeName(java.lang.String newTypeName)
Set accessor for persistent attribute: typeName |
int |
setValueAt(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 aKey,
java.io.Serializable aValue)
Adds a value to the Context |
Vector |
toStrings()
Returns a visual representation of this context. |
int |
trySetElementAt(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. |
Methods inherited from interface javax.ejb.EJBLocalObject |
---|
getEJBLocalHome, getPrimaryKey, isIdentical, remove |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
void setName(java.lang.String newName)
void setParentID(java.lang.String newParentID)
void setContext(byte[] newContext)
void setInstanceID(java.lang.String newInstanceID)
void setKeyedCollection(java.io.Serializable akeyedCollection) throws CHAPersistenceException
CHAPersistenceException
void setValueAt(java.lang.String aKey, java.io.Serializable aValue) throws CHAPersistenceException
CHAPersistenceException
void addElement(java.io.Serializable anElement) throws CHAPersistenceException
CHAPersistenceException
void clearKeyedCollection() throws CHAPersistenceException
CHAPersistenceException
void clearKeyedCollection(boolean keepKCollStatus, boolean clearOnlyValues) throws CHAPersistenceException
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)
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
CHAPersistenceException
byte[] getContext()
javax.ejb.EntityContext getEntityContext()
java.lang.String getInstanceID()
java.lang.String getName()
java.lang.String getParentID()
boolean isChained()
Context getRealContext()
void setRealContext(Context context)
KeyedCollection getKeyedCollection() throws CHAPersistenceException
CHAPersistenceException
Vector fields() throws CHAPersistenceException
CHAPersistenceException
java.lang.String getAncestorByName(java.lang.String aContextName) throws CHAPersistenceException
aContextName
- java.lang.String
CHAPersistenceException
java.lang.String getContextByType(java.lang.String aTypeName) throws CHAPersistenceException
CHAPersistenceException
DataElement removeAt(java.lang.String aCompositeKey) throws CHAPersistenceException
CHAPersistenceException
DataElement removeAtAnyLevel(java.lang.String aCompositeKey) throws CHAPersistenceException
CHAPersistenceException
int trySetElementAt(java.lang.String aCompositeKey, java.io.Serializable aValue) throws CHAPersistenceException
CHAPersistenceException
int setValueAt(SortedTable aSortedTable)
aSortedTable
-
boolean isReadOnly() throws CHAPersistenceException
CHAPersistenceException
java.io.Serializable getElementAt(java.lang.String aCompositeKey, boolean isReadOnly) throws CHAPersistenceException
CHAPersistenceException
boolean isAddToDynamicKColl() throws CHAPersistenceException
CHAPersistenceException
void setAddToDynamicKColl(boolean newValue) throws CHAPersistenceException
newValue
- boolean The new value of the property.
CHAPersistenceException
void setKCollDynamic(boolean aValue) throws CHAPersistenceException
aValue
-
CHAPersistenceException
Vector toStrings()
java.lang.String getTypeName()
void setTypeName(java.lang.String newTypeName)
boolean getIsRoot()
void setIsRoot(boolean newIsRoot)
java.lang.String getLevel() throws CHAPersistenceException
CHAPersistenceException
void forChainTo(java.lang.String parentInstanceID) throws CHAPersistenceException
CHAPersistenceException
void forUnchain() throws CHAPersistenceException
CHAPersistenceException
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |