FileDocCategorySizeDatePackage
StaticResource.javaAPI DocGlassfish v2 API5103Fri May 04 22:36:38 BST 2007com.sun.jts.CosTransactions

StaticResource

public abstract class StaticResource extends Object
The StaticResource interface provides operations that allow an object to be informed about changes in transaction associations with threads. The operations are guaranteed to be invoked on the thread on which the association is started or ended. This class is an abstract base class so the behavior here is that which is expected from any subclass.
version
0.01
author
Simon Holdsworth, IBM Corporation
see

Fields Summary
Constructors Summary
Methods Summary
public abstract voidendAssociation(Coordinator coord, boolean complete)
Informs the object that an association has ended.

That is, a thread association has ended on the calling thread for the transaction represented by the given Coordinator object. A flag is passed indicating whether this association is as a result of the transaction completing.

param
coord The transaction whose association is starting.
param
complete Indicates a commit/rollback rather than a suspend.
return
see

protected voidregister()
Registers the StaticResource object.

Until this method is called, the StaticResource object will not receive calls to start/endAssociation.

param
return
see

        CurrentTransaction.registerStatic(this);
    
public abstract voidstartAssociation(Coordinator coord, boolean begin)
Informs the object that an association has started.

That is, a thread association has begun on the calling thread for the transaction represented by the given Coordinator object. A flag is passed indicating whether this association is as a result of a begin operation.

param
coord The transaction whose association is starting.
param
begin Indicates a begin rather than a resume.
return
see