站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 transaction API Documentation 英文版文档

GlobalId (JBoss Transaction API) - JBoss 3.2.7 transaction API Documentation 英文版文档


org.jboss.tm
Class GlobalId

java.lang.Object
  extended byorg.jboss.tm.GlobalId
All Implemented Interfaces:
Externalizable, Serializable

public class GlobalId
extends Object
implements Externalizable

This object encapsulates the global transaction ID of a transaction. It is similar to an Xid, but holds only the GlobalId part. This implementation is immutable and always serializable at runtime.

Version:
$Revision: 1.2.2.1 $
Author:
Ole Husgaard
See Also:
XidImpl, Serialized Form

Constructor Summary
GlobalId()
           
GlobalId(int hash, byte[] globalId)
          Create a new instance.
GlobalId(Xid xid)
           
 
Method Summary
 boolean equals(Object obj)
          Compare for equality.
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalId

public GlobalId()

GlobalId

public GlobalId(int hash,
                byte[] globalId)
Create a new instance. This constructor is public only to get around a class loader problem; it should be package-private.


GlobalId

public GlobalId(Xid xid)
Method Detail

equals

public boolean equals(Object obj)
Compare for equality. Instances are considered equal if they both refer to the same global transaction id.


hashCode

public int hashCode()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.