| Constructor and Description |
|---|
DatabaseId()
Uninitialized database id, for logging.
|
DatabaseId(int id) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object 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() |
void |
readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryTypeVersion)
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
DatabaseExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic int getLogSize()
getLogSize in interface LoggableLoggable.getLogSize()public void writeToLog(java.nio.ByteBuffer logBuffer)
LoggablewriteToLog in interface LoggablelogBuffer - is the destination bufferLoggable.writeToLog(java.nio.ByteBuffer)public void readFromLog(java.nio.ByteBuffer itemBuffer,
byte entryTypeVersion)
LoggablereadFromLog in interface LoggableLoggable.readFromLog(java.nio.ByteBuffer, byte)public void dumpLog(java.lang.StringBuffer sb,
boolean verbose)
LoggabledumpLog in interface Loggablesb - destination string bufferverbose - if true, dump the full, verbose versionLoggable.dumpLog(java.lang.StringBuffer, boolean)public long getTransactionId()
getTransactionId in interface LoggableLoggable.getTransactionId()