com.sleepycat.je.log.entry
Interface LogEntry

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

public interface LogEntry
extends 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
 Object clone()
           
 StringBuffer dumpEntry(StringBuffer sb, boolean verbose)
          Print out the contents of an entry.
 Object getMainItem()
           
 long getTransactionId()
           
 boolean isTransactional()
           
 void readEntry(ByteBuffer entryBuffer, int entrySize, byte entryTypeVersion, boolean readFullItem)
          Read in an log entry.
 

Method Detail

readEntry

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

Throws:
DatabaseException

dumpEntry

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


getMainItem

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

clone

Object clone()
             throws CloneNotSupportedException
Returns:
a shallow clone.
Throws:
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-2005 Sleepycat, Inc. All Rights Reserved.