public class DatabaseId extends java.lang.Object implements java.lang.Comparable<DatabaseId>, Loggable
Constructor and Description |
---|
DatabaseId()
Uninitialized database id, for logging.
|
DatabaseId(int id) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DatabaseId o)
see Comparable#compareTo
|
void |
dumpLog(java.lang.StringBuffer sb,
boolean verbose)
Write the object into the string buffer for log dumping.
|
boolean |
equals(java.lang.Object obj)
Compare two DatabaseImpl Id's.
|
byte[] |
getBytes() |
int |
getId() |
int |
getLogSize() |
long |
getTransactionId() |
int |
hashCode() |
boolean |
logicalEquals(Loggable other) |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryVersion)
Initialize this object from the data in itemBuf.
|
java.lang.String |
toString() |
void |
writeToLog(java.nio.ByteBuffer logBuffer)
Serialize this object into the buffer.
|
public DatabaseId(int id)
public DatabaseId()
public int getId()
public byte[] getBytes() throws DatabaseException
DatabaseException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(DatabaseId o)
compareTo
in interface java.lang.Comparable<DatabaseId>
public int getLogSize()
getLogSize
in interface Loggable
Loggable.getLogSize()
public void writeToLog(java.nio.ByteBuffer logBuffer)
Loggable
writeToLog
in interface Loggable
logBuffer
- is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)
public void readFromLog(java.nio.ByteBuffer itemBuffer, byte entryVersion)
Loggable
readFromLog
in interface Loggable
Loggable.readFromLog(java.nio.ByteBuffer, byte)
public void dumpLog(java.lang.StringBuffer sb, boolean verbose)
Loggable
dumpLog
in interface Loggable
sb
- destination string bufferverbose
- if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)
public long getTransactionId()
getTransactionId
in interface Loggable
Loggable.getTransactionId()
public boolean logicalEquals(Loggable other)
logicalEquals
in interface Loggable
Loggable.logicalEquals(com.sleepycat.je.log.Loggable)