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

LocalId (JBoss Transaction API) - JBoss 4.0.1 sp1 transaction API Documentation 英文版文档


org.jboss.tm
Class LocalId

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

public class LocalId
extends Object
implements Externalizable

LocalId is a wrapper for a long value that identifies a transaction within a JBoss server. This implementation is immutable and serializable at runtime.

Version:
$Revision: 1.1 $
Author:
Francisco Reverbel
See Also:
Serialized Form

Constructor Summary
LocalId()
          No-arg constructor for Externalizable support.
LocalId(long value)
          Create a new instance.
LocalId(XidImpl xid)
           
 
Method Summary
 boolean equals(Object obj)
          Compare for equality.
static long fromByteArray(byte[] src, int srcBegin)
           
 long getValue()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
static void toByteArray(long localIdValue, byte[] dst, int dstBegin)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalId

public LocalId()
No-arg constructor for Externalizable support.


LocalId

public LocalId(long value)
Create a new instance. This constructor is public only to get around a class loader problem; it should be package-private.


LocalId

public LocalId(XidImpl xid)
Method Detail

toByteArray

public static void toByteArray(long localIdValue,
                               byte[] dst,
                               int dstBegin)

fromByteArray

public static long fromByteArray(byte[] src,
                                 int srcBegin)

getValue

public long getValue()

equals

public boolean equals(Object obj)
Compare for equality.


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.