com.sleepycat.je.log.entry
Interface LogEntry

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
NodeLogEntry
All Known Implementing Classes:
BINDeltaLogEntry, DeletedDupLNLogEntry, INLogEntry, LNLogEntry, SingleItemLogEntry

public interface LogEntry
extends java.lang.Cloneable

A Log entry allows you to read, write and dump a database log entry. Each entry may be made up of one or more loggable items.


Method Summary
 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()
           
 long getTransactionId()
           
 boolean isTransactional()
           
 void readEntry(java.nio.ByteBuffer entryBuffer, int entrySize, byte entryTypeVersion, boolean readFullItem)
          Read in an log entry.
 

Method Detail

readEntry

void readEntry(java.nio.ByteBuffer entryBuffer,
               int entrySize,
               byte entryTypeVersion,
               boolean readFullItem)
               throws DatabaseException
Read in an log entry.

Throws:
DatabaseException

dumpEntry

java.lang.StringBuffer dumpEntry(java.lang.StringBuffer sb,
                                 boolean verbose)
Print out the contents of an entry.


getMainItem

java.lang.Object getMainItem()
Returns:
the first item of the log entry

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns:
a shallow clone.
Throws:
java.lang.CloneNotSupportedException

isTransactional

boolean isTransactional()
Returns:
true if the LogEntry is a transactional log entry type.

getTransactionId

long getTransactionId()
Returns:
return the transaction id if this log entry is transactional, 0 otherwise.


Copyright 2004-2006 Sleepycat, Inc. All Rights Reserved.