wt.container.batch.impl
Class TransactionContainerImpl

java.lang.Object
  extended bywt.container.batch.impl.TransactionContainerImpl
All Implemented Interfaces:
Externalizable, Serializable, TransactionContainer

public class TransactionContainerImpl
extends Object
implements TransactionContainer, Externalizable

A reference implementation of a TransactionContainer.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  Vector assertions
           
private  com.objectspace.jgl.HashMap batchContainerMap
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Fields inherited from interface wt.container.batch.TransactionContainer
ASSERTIONS, BATCH_CONTAINER_MAP
 
Constructor Summary
TransactionContainerImpl()
          

Supported API: false
 
Method Summary
 boolean addAssertion(Assertion assertion)
          

Supported API: false
 boolean addBatchContainer(String name, BatchContainer batchContainer)
          

Supported API: false
 boolean clearAll()
          

Supported API: false
 Enumeration getAssertions()
          

Supported API: false
 Enumeration getAssertionTargets()
          Return the set of assertion targets.
 BatchContainer getBatchContainer(String name)
          

Supported API: false
 Enumeration getBatchContainerNames()
          

Supported API: false
 Enumeration getBatchContainers()
          

Supported API: false
private  Assertion getLastAssertion(BatchContainer container, Object target)
          Return the last assertion for the container and target object.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(TransactionContainerImpl thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 boolean setTransactionResults(TransactionResult[] results)
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

batchContainerMap

private com.objectspace.jgl.HashMap batchContainerMap

assertions

private Vector assertions

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values
Constructor Detail

TransactionContainerImpl

public TransactionContainerImpl()


Supported API: false

Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(TransactionContainerImpl thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

addBatchContainer

public boolean addBatchContainer(String name,
                                 BatchContainer batchContainer)


Supported API: false

Specified by:
addBatchContainer in interface TransactionContainer
Parameters:
name -
batchContainer -
Returns:
boolean

getBatchContainers

public Enumeration getBatchContainers()


Supported API: false

Specified by:
getBatchContainers in interface TransactionContainer
Returns:
Enumeration

getBatchContainerNames

public Enumeration getBatchContainerNames()


Supported API: false

Specified by:
getBatchContainerNames in interface TransactionContainer
Returns:
Enumeration

getBatchContainer

public BatchContainer getBatchContainer(String name)


Supported API: false

Specified by:
getBatchContainer in interface TransactionContainer
Parameters:
name -
Returns:
BatchContainer

addAssertion

public boolean addAssertion(Assertion assertion)


Supported API: false

Parameters:
assertion -
Returns:
boolean

getAssertions

public Enumeration getAssertions()


Supported API: false

Specified by:
getAssertions in interface TransactionContainer
Returns:
Enumeration

setTransactionResults

public boolean setTransactionResults(TransactionResult[] results)


Supported API: false

Specified by:
setTransactionResults in interface TransactionContainer
Parameters:
results -
Returns:
boolean

clearAll

public boolean clearAll()


Supported API: false

Specified by:
clearAll in interface TransactionContainer
Returns:
boolean

getAssertionTargets

public Enumeration getAssertionTargets()
Return the set of assertion targets. Targets of multiple assertions will not be replicated.

Supported API: false

Specified by:
getAssertionTargets in interface TransactionContainer
Returns:
Enumeration

getLastAssertion

private Assertion getLastAssertion(BatchContainer container,
                                   Object target)
Return the last assertion for the container and target object.

Parameters:
container - The container involved in the assertion.
target - The target of the assertion.
Returns:
the last assertion for the container and target, may be null.