|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.raw.xact.XactId
public class XactId
Use this class for a short hand representation of the transaction. This value is only guarentee to be unique within one continuous operation of the raw store, in other words, every reboot may reuse the same value. Whereas GlobalXactId is unique for all times across all raw store, a XactId is only unique within a particular rawstore and may be reused. XactId keeps track of the outstanding transactionId and is responsible for dispensing new transactionIds
Field Summary | |
---|---|
private long |
id
|
Constructor Summary | |
---|---|
XactId()
|
|
XactId(long id)
|
Method Summary | |
---|---|
static long |
compare(TransactionId a,
TransactionId b)
Return 0 if a == b, +ve number if a > b -ve number if a < b |
boolean |
equals(java.lang.Object other)
|
protected long |
getId()
|
int |
getMaxStoredSize()
TransactionId method |
int |
getTypeFormatId()
Return my format identifier. |
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput in)
Read this in |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Write this out. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long id
Constructor Detail |
---|
public XactId(long id)
public XactId()
Method Detail |
---|
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
- error writing to log streampublic void readExternal(java.io.ObjectInput in) throws java.io.IOException
readExternal
in interface java.io.Externalizable
java.io.IOException
- error reading from log streampublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
public int getMaxStoredSize()
getMaxStoredSize
in interface TransactionId
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static long compare(TransactionId a, TransactionId b)
protected long getId()
public java.lang.String toString()
toString
in class java.lang.Object
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |