|
IBM WebSphere Multichannel 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.base.ContextImpl
public abstract class ContextImpl
This class is the basic repository of data and services. Instances of this class can be linked, or chained, in a tree of contexts, and the instances are capable of navigating over this tree, always in the upper direction. The instances of this class also can be passed as parameters of the format() and unformat() methods of a record format.
Field Summary | |
---|---|
protected boolean |
addToDynamicKColl
The value of addToDynamicKColl tag attribute * |
protected int |
bufferSize
|
protected Vector |
childInstanceIDs
The instanceIDs of the children of the current context instance |
protected Vector |
children
|
protected Context |
currentChild
|
static int |
DEFAULT_BUFFER_SIZE
|
static byte |
DEFAULT_COMPRESSION
|
protected boolean |
dirty
|
protected static Externalizer |
externalizer
|
protected java.lang.String |
instanceID
The instanceID of the context instance |
protected KeyedCollection |
keyedCollection
|
protected java.lang.String |
level
We devide the remote contexts into three levels: root, normal |
protected java.lang.Boolean |
localCall
If the current context can use EJB local interface, it can always use it |
protected int |
mode
The mode of the context instance |
protected java.lang.String |
name
|
protected Context |
parent
|
protected java.lang.String |
parentInstanceID
The instanceID of the parent of the current context instance |
protected java.lang.String |
parentName
|
protected boolean |
readOnly
if readOnly = "true", it indicates that this context can be catched in client side. |
protected static Context |
rootContext
|
protected int |
serializableLevel
When a local context is transfered from one JVM to another JVM, not only the current context but also its local parent chain and its local children chain will be transfered if serializeParentsAndChildren = true. |
protected boolean |
serializeParentsAndChildren
When the local context will be serialized, if serializeParentsAndChildren = true, the parents and children of the local context will be serialized. |
protected java.lang.String |
type
|
Constructor Summary | |
---|---|
ContextImpl()
|
Method Summary | |
---|---|
protected static void |
checkObject(java.lang.Object obj,
java.lang.String infoDescription)
Check if the object parameter is null or not. |
protected static void |
checkString(java.lang.String targetString,
java.lang.String infoDescription)
Check if the string parameter is valid or not. |
byte[] |
convertToByte()
Convert this context as an array of bytes. |
static Context |
convertToContext(byte[] serializedObj)
Takes the byte array retrieved from the database and returns an object. |
Externalizer |
externalizer()
Returns the externalizer instance of this class. |
static Externalizer |
getExternalizer()
Gets the externalizer. |
java.lang.String |
getInstanceID()
Returns the instanceID. |
int |
getMode()
Returns the mode. |
java.lang.String |
getTagName()
Returns a String used by the externalizer. |
protected int |
read(byte[] baf,
int off,
int len,
java.io.InputStream in,
java.util.zip.Inflater inf,
byte[] buf)
|
static void |
reset()
Deletes all context instances. |
static void |
setExternalizer(Externalizer anExternalizer)
Sets the externalizer. |
void |
setMode(int mode)
Deprecated. |
void |
setSerializableLevel(int i)
Set the value of variable serializableLevel. |
void |
setSerializeParentsAndChildren(boolean b)
Set the value of variable serializeParentsAndChildren When the local context will be serialized, if serializeParentsAndChildren = true, the parents and children of the local context will be serialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int mode
protected java.lang.String instanceID
protected java.lang.String parentInstanceID
protected Vector childInstanceIDs
protected static Externalizer externalizer
protected Vector children
protected Context currentChild
protected KeyedCollection keyedCollection
protected java.lang.String name
protected Context parent
protected java.lang.String type
protected boolean addToDynamicKColl
public static final byte DEFAULT_COMPRESSION
public static final int DEFAULT_BUFFER_SIZE
protected boolean readOnly
protected java.lang.String level
protected static Context rootContext
protected boolean dirty
protected java.lang.Boolean localCall
protected boolean serializeParentsAndChildren
protected int serializableLevel
protected int bufferSize
protected java.lang.String parentName
Constructor Detail |
---|
public ContextImpl()
Method Detail |
---|
public Externalizer externalizer()
externalizer
in interface Context
public static Externalizer getExternalizer()
public java.lang.String getTagName()
getTagName
in interface Context
protected int read(byte[] baf, int off, int len, java.io.InputStream in, java.util.zip.Inflater inf, byte[] buf) throws java.util.zip.DataFormatException
java.util.zip.DataFormatException
public static void setExternalizer(Externalizer anExternalizer)
anExternalizer
- public static void reset() throws DSEException
DSEException
public java.lang.String getInstanceID()
getInstanceID
in interface Context
public int getMode()
getMode
in interface Context
public void setSerializableLevel(int i) throws DSEInvalidRequestException
setSerializableLevel
in interface Context
i
-
DSEInvalidRequestException
public void setSerializeParentsAndChildren(boolean b)
setSerializeParentsAndChildren
in interface Context
b
- public void setMode(int mode)
setMode
in interface Context
mode
- The mode to set.public byte[] convertToByte() throws java.io.IOException
convertToByte
in interface Context
java.io.IOException
public static Context convertToContext(byte[] serializedObj) throws java.io.IOException, java.lang.ClassNotFoundException
serializedObj
- The Object to rebuild
java.io.IOException
java.lang.ClassNotFoundException
protected static void checkString(java.lang.String targetString, java.lang.String infoDescription) throws DSEInvalidRequestException
targetString
- infoDescription
-
DSEInvalidRequestException
protected static void checkObject(java.lang.Object obj, java.lang.String infoDescription) throws DSEInvalidRequestException
targetString
- infoDescription
-
DSEInvalidRequestException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |