public class SingleItemEntry extends BaseEntry implements LogEntry
the Loggable item
| Constructor and Description |
|---|
SingleItemEntry(java.lang.Class<?> logClass)
Construct a log entry for reading.
|
SingleItemEntry(LogEntryType entryType,
Loggable item)
Construct a log entry for writing.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.lang.StringBuffer |
dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
Print out the contents of an entry.
|
java.lang.Object |
getMainItem() |
int |
getSize() |
long |
getTransactionId() |
boolean |
logicalEquals(LogEntry other) |
void |
readEntry(LogEntryHeader header,
java.nio.ByteBuffer entryBuffer,
boolean readFullItem)
Read in a log entry.
|
void |
writeEntry(LogEntryHeader header,
java.nio.ByteBuffer destBuffer)
Serialize this object into the buffer.
|
countAsObsoleteWhenLogged, getLastLoggedSize, getLogType, postLogWork, setLogType, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcountAsObsoleteWhenLogged, getLastLoggedSize, getLogType, postLogWork, setLogTypepublic SingleItemEntry(java.lang.Class<?> logClass)
public SingleItemEntry(LogEntryType entryType, Loggable item)
public void readEntry(LogEntryHeader header, java.nio.ByteBuffer entryBuffer, boolean readFullItem) throws DatabaseException
LogEntryreadEntry in interface LogEntryDatabaseExceptionLogEntry.readEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer, boolean)public java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb,
boolean verbose)
LogEntrydumpEntry in interface LogEntrydumpEntry in class BaseEntryLogEntry.dumpEntry(java.lang.StringBuffer, boolean)public java.lang.Object getMainItem()
getMainItem in interface LogEntryLogEntry.getMainItem()public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in interface LogEntryclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionLogEntry.clone()public long getTransactionId()
getTransactionId in interface LogEntryLogEntry.getTransactionId()public int getSize()
public void writeEntry(LogEntryHeader header, java.nio.ByteBuffer destBuffer)
LogEntrywriteEntry in interface LogEntrydestBuffer - is the destination bufferLogEntry.writeEntry(com.sleepycat.je.log.LogEntryHeader, java.nio.ByteBuffer)public boolean logicalEquals(LogEntry other)
logicalEquals in interface LogEntryLogEntry.logicalEquals(com.sleepycat.je.log.entry.LogEntry)Copyright (c) 2004,2008 Oracle. All rights reserved.