当前页面:
在线文档首页 >
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
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.2.2.1 $
- Author:
- Ole Husgaard
- See Also:
XidImpl
,
Serialized Form
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)
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.