org.jboss.tm
Class LocalId

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

public class LocalId
extends java.lang.Object
implements java.io.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.

See Also:
Serialized Form

Constructor Summary
LocalId()
          No-arg constructor for Externalizable support.
LocalId(long value)
          Create a new instance.
LocalId(XidImpl (src)  xid)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare for equality.
static long fromByteArray(byte[] src, int srcBegin)
           
 long getValue()
           
 int hashCode()
           
 void readExternal(java.io.ObjectInput in)
           
static void toByteArray(long localIdValue, byte[] dst, int dstBegin)
           
 void writeExternal(java.io.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 (src)  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(java.lang.Object obj)
Compare for equality.


hashCode

public int hashCode()

writeExternal

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

readExternal

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