当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 transaction API Documentation 英文版文档
GlobalId (JBoss Transaction API) - JBoss 4.0.1 sp1 transaction API Documentation 英文版文档
org.jboss.tm
Class GlobalId
java.lang.Object
org.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.6 $
- Author:
- Ole Husgaard, Francisco Reverbel
- See Also:
XidImpl
,
Serialized Form
GlobalId
public GlobalId()
GlobalId
public GlobalId(int formatId,
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)
GlobalId
public GlobalId(int formatId,
int bqual_length,
byte[] tid)
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()
toString
public String toString()
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.